[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/theme/bootstrapbase/less/ -> README (source)

   1  About bootstrap in Moodle
   2  -------------------------
   3  If you want to make changes to the .css generated from these .less files then you
   4  need to use a LESS Compiler. Details on specific compilers and how to install them
   5  can be found at http://docs.moodle.org/dev/LESS
   6  
   7  At present, recess is the official tool for developers to compile LESS in to CSS, as
   8  other tools give different results in the generated CSS.
   9  
  10  Once recess has been installed you can compile and compress the LESS in to CSS using
  11  the following commands from the "theme/bootstrapbase/less" directory:
  12  
  13  For the main Moodle styles:
  14  
  15      recess --compile --compress moodle.less > ../style/moodle.css
  16  
  17  And for the subset of styles of interest to the TinyMCE editor:
  18  
  19      recess --compile --compress editor.less >  ../style/editor.css
  20  
  21  You can add --watch to make sure it updates every time you make a change.
  22  
  23  If the compilation is failing and you're not getting any useful error message, try using lessc instead i.e.:
  24  
  25      lessc moodle.less
  26  
  27  This is the same tool that's getting called by recess, but the errors seems better if you go direct.
  28  
  29  More information
  30  ----------------
  31  Additional information about the Moodle bootstrap base theme can be found at
  32  http://docs.moodle.org/dev/Bootstrap
  33  


Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1