compass-sass

Sass: Using two @each lists in SCSS

本秂侑毒 提交于 2019-12-01 01:01:01
In my CSS I have to create classes that make reference to a 'hair colour' and 'hairstyle' I have written a mixin to help make my CSS writing more efficient: @mixin hair($hair, $colour) { .hair-#{$colour} .#{$hair} { background:image-url("xsppsfhair#{$hair}#{$colour}.svg") center top no-repeat, image-url("xsppsheadgrey.svg") center top no-repeat, image-url("xsppsbhair#{$hair}#{$colour}.svg") center top no-repeat; } } @include hair(spikyboy, blonde); @include hair(curlyafroboy, blonde); This produces the following CSS .hair-blonde .spikyboy { background: url('../images/xsppsfhairspikyboyblonde

“NoMethodError: undefined method `specificity' for [:not(.block-layered-nav)]:Array”

萝らか妹 提交于 2019-12-01 00:31:53
问题 This is in addition to this post: Can't compile rwd skin SCSS in Magento CE 1.9 Windows 8.1 / PowerShell Compass 1.0.1 (Polaris) Sass 3.4.6 (Selective Steve) ruby 2.1.3p242 (2014-09-19 revision 47630) [x64-mingw32] I removed the " from a:not(".button") > a:not(.button) New error: "NoMethodError: undefined method `specificity' for [:not(.block-layered-nav)]:Array"; Commented out the block then I get: "NoMethodError: undefined method `specificity' for [:not(:last-child)]:Array" 回答1: This

Using Compass on Heroku: /tmp for stylesheets remotely and locally

半腔热情 提交于 2019-11-30 21:24:05
I'm currently using Compass with Heroku using this configuration recommended on the Heroku knowledge base. Heroku has a read-only file system, and so the compiled stylesheets need to be stored in /tmp. This works fine remotely on Heroku; locally, however, Rails expects to find stylesheets in /public/stylesheets (when called through = stylesheet_link_tag 'screen.css', :media => 'screen, projection' ). In order to solve the problem, I have created symbolic links in /public/stylesheets using ln -s tmp/stylesheets/screen.css public/stylesheets/screen.css and that seems to work. Is there a way to

Running multiple compass-sass watch operations automatically [duplicate]

跟風遠走 提交于 2019-11-30 21:22:45
问题 This question already has an answer here : SCSS/SASS Multiple Sites in Multiple Directories (1 answer) Closed 4 years ago . I am trying to determine the best possible approach for compass (sass) to watch multiple directories at once. Each directory represents an individual customer and their website. /var/www/customers/domain1.com /var/www/customers/domain2.com /var/www/customers/domain3.com I've come to understand it might require single processes for each watch command, what would be best

Replace broccoli-sass with broccoli-compass in broccoli-sample-app

◇◆丶佛笑我妖孽 提交于 2019-11-30 19:20:39
问题 I'm attempting to replace broccoli-sass with broccoli-compass, in the Broccoli Ember Sample. My app structure looks like: app public styles app.scss Brocfile: ... var compileSass = require('broccoli-compass') ... var appNamespace = 'my-app-name'; function preprocess (tree) { tree = filterTemplates(tree, { extensions: ['hbs', 'handlebars'], compileFunction: 'Ember.Handlebars.compile' }) return tree } var app = 'app' app = pickFiles(app, { srcDir: '/', destDir: appNamespace // move under app

Using Compass on Heroku: /tmp for stylesheets remotely and locally

泪湿孤枕 提交于 2019-11-30 17:16:01
问题 I'm currently using Compass with Heroku using this configuration recommended on the Heroku knowledge base. Heroku has a read-only file system, and so the compiled stylesheets need to be stored in /tmp. This works fine remotely on Heroku; locally, however, Rails expects to find stylesheets in /public/stylesheets (when called through = stylesheet_link_tag 'screen.css', :media => 'screen, projection' ). In order to solve the problem, I have created symbolic links in /public/stylesheets using ln

Compass, adding import path

☆樱花仙子☆ 提交于 2019-11-30 15:33:14
To compile .scss files in multiple directories we need to use "add_import_path" (http://compass-style.org/help/tutorials/configuration-reference/), but i dont get how. I've tried to add additional_import_paths add_import_path "_themes" add_import_path = "_themes" additional_import_paths = "_themes" in my config.rb, but no luck, Compass compiling only from sass_dir = "_modules" Update: Yes, this line add_import_path "_themes" doesnt gives us "no folder found" error, but compass still not compiling .scss in it What am i doing wrong? To compile multiple .scss files you should import the "child"

Add timestamps to compiled sass/scss

梦想的初衷 提交于 2019-11-30 12:41:43
Is it possible to automatically add a timestamp on the compiled CSS file using SASS? e.g. /* CSS Compiled on: {date+time} */ ...compiled css goes here... I've checked the SASS and Compass docs but no mention of such a feature. hopper I don't know of any built-in SASS or Compass feature for this, but it's not too hard to add a custom Ruby function to do it. (See the section entitled " Adding Custom Functions " in the SASS reference here .) Your file with the Ruby function would look like this (let's call it "timestamp.rb"): module Sass::Script::Functions def timestamp() return Sass::Script:

“Errno::EACCESS…permission denied” running compass watch

不问归期 提交于 2019-11-30 12:09:46
问题 I just migrated my project files onto a new PC on the D: drive whilst my programs (Git, Node Js, Ruby, etc) are on the C: drive. I have tried to run compass watch after editing a SASS file, but encounter this error: Errno::EACCES on line ["897"] of C: Permission denied - <D:/project_dir/stylesheets/app.css20140323-10532-gziux, D:/project_dir/stylesheets/app.css> Run with --trace to see the full backtrace I'm a novice with Ruby at the command line (as I only use it for web development purposes

What is the value of Compass for Rails 3.1?

不羁岁月 提交于 2019-11-30 11:22:38
问题 I'm trying to decide if I should include Compass when starting a new Rails 3.1 project. I haven't used Compass before. Rails 3.1 now supports SCSS directly. The Rails 3.1 asset pipeline (via sprockets) now compiles stylesheets automatically. And I can use a SCSS version of a CSS framework such as Blueprint directly. What benefits will I get from using Compass with Rails 3.1? 回答1: Bourbon (by Thoughtbot) is a light alternative to compass that integrates well with rails 3.1. It has the main