Wednesday, 18 June 2014

HOW TO LOAD TWITTER BOOTSTRAP LESS FILES


step 1:Add

gem 'less-rails'

to your Gemfile

step 2:  Add bootstrap bootstrap_override.css.less file in your style sheets folder.

import .less files in bootstrap_override.css.less 

Example: /stylesheets/bootstrap_override.css.less 

@import "/twitter/bootstrap/less/bootstrap.less";
@import "/vars/variables.less";

@import "04-variables.less";

add <%= stylesheet_link_tag :bootstrap_override %>


Now it will works fine.............



@@@@@@@@@@@@Happy Rails Coding @@@@@@@@@@@@@@@






No comments:

Post a Comment