sass
Is it possible to overload mixins in sass?
Let say you have a mixin for shadow like such: @mixin box-shadow($offset, $blur, $color) { -moz-box-shadow: $offset $offset $blur $color;[详细]
2023-04-11 16:41 分类:问答Why is Asset Pipeline trying to compress my CSS twice (or not compressing at all)?
After upgrading our Compass-powered app to Rails 3.1.1.rc1 and Asset Pipeline, I\'ve started getting \"regexp buffer overflow\" error when trying to precompile stylesheets locally. I\'ve discovered th[详细]
2023-04-11 13:04 分类:问答How to use SCSS with Express ? (Node.js)
Is there any way to use SCSS with Express ? I tried with : app.use(express.compiler({ src: __dirname + \'/publi开发者_运维技巧c\', enable: [\'scss\'] }));[详细]
2023-04-11 09:36 分类:问答Sass and rounding down numbers. Can this be configured?
Is there any way for me to modify the way that Sass will handle decimal places? I saw a few people saying that Sass will dynamically do the (target/parent)*100 calculation needed for responsive layout[详细]
2023-04-11 07:38 分类:问答Is it possible to use CSS nested rules without installing anything on the server?
LESS and SASS allow us to use CSS nested rules; however, they require us to install their components on the web servers.[详细]
2023-04-11 05:51 分类:问答How to "repeat-x" a sprite, generated by Compass
I have a gradient directory in my assets/images in a Rails 3.1 application. Here\'s the code I use to create a sprite from those images using Compass:[详细]
2023-04-10 22:49 分类:问答Changing colors in Twitter Bootstrap on Rails 3.1 with SASS
Twitter Bootstrap is a cool stylesheet toolkit by Twitter based on LESS. I don\'t use LESS however I am using the twitter-bootstrap-rails gem and it 开发者_如何学Pythonseems to be all working fine. Ho[详细]
2023-04-10 17:31 分类:问答Asset Pipeline Cacheing CSS?
I am working on a Rails 3.1 app. I have created an application.css.scss.erb file. The .erb is in the end because I want to load a variable from the config file as the color variable in the css:[详细]
2023-04-10 12:37 分类:问答getting error after ugrading to sass-3.1.8
after upgrading to sass-3.开发者_开发技巧1.8 form sass-3.1.7 I get this error: Functions may only be defined at the root of a document.[详细]
2023-04-10 10:45 分类:问答How can I use Ruby/Rails variables inside Sass?
Is there a way to use vari开发者_运维知识库ables from my Ruby application inside a Sass file?You can add .erb extention to your .sass file and then add your variables just like in regular .erb file:[详细]
2023-04-10 10:12 分类:问答