Homec4science

assets: less flavor of bootstrap

Authored by Yoan Blanc <yoan.blanc@cern.ch> on May 12 2014, 14:39.

Description

assets: less flavor of bootstrap

  • Installing less and grunt-contrib-less.
  • Adding the filters parameter on the assets. {% css "foo.css", "00-bundle", "less" %}
  • Adding some configuration keys. LESS_BIN which must be pointing to lessc. CLEANCSS_BIN ditto for CleanCSS LESS_RUN_IN_DEBUG (default True) to enable or disable the less bundling in DEBUG. ASSETS_DEBUG must be also set to True for it to work.
  • Renamed base.css to base.less and it includes the less files from Bootstrap and Font-Awesome.

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>

Details

Committed
kuncarJun 4 2014, 16:05
Parents
R3600:6e4999d29119: search: jinja base templates renaming
Branches
Unknown
Tags
Unknown

Event Timeline

Jiri Kuncar <jiri.kuncar@cern.ch> committed R3600:bf28b62b2920: assets: less flavor of bootstrap (authored by Yoan Blanc <yoan.blanc@cern.ch>).Jun 4 2014, 16:05