public
Last active

application.css.less example overriding Twitter Bootstrap variable (using less-rails-bootstrap)

  • Download Gist
application.css.less
Less
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
*
* application.css.less
*= require_self
*/
 
@import "twitter/bootstrap/reset.less";
 
@import "twitter/bootstrap/variables.less";
 
// Override link color for my app:
@linkColor: #F00;
 
@import "twitter/bootstrap/mixins.less";
 
// Grid system and page structure
@import "twitter/bootstrap/scaffolding.less";
 
// Styled patterns and elements
@import "twitter/bootstrap/type.less";
@import "twitter/bootstrap/forms.less";
@import "twitter/bootstrap/tables.less";
@import "twitter/bootstrap/patterns.less";

Hi, when I place something below the import statement of variables.less like you did, it's not working. The only way I got it working is to change the variables.less itself. Do you what I do wrong?

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.