From e473358ef17c4b3031c9feec6febfbdd44d04ac1 Mon Sep 17 00:00:00 2001 From: Jason Fowler Date: Fri, 12 Apr 2013 13:07:30 +0800 Subject: [PATCH 1/2] MDL-39003 - Bootstrap Theme - Changing less README to point to the dev docs for LESS --- theme/bootstrapbase/less/README | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/theme/bootstrapbase/less/README b/theme/bootstrapbase/less/README index 9899bc11919..9b44ab64b6f 100644 --- a/theme/bootstrapbase/less/README +++ b/theme/bootstrapbase/less/README @@ -1,7 +1,12 @@ If you want to make changes to the .css generated from these .less files then you -need to install recess (https://github.com/twitter/recess) to compile the .less files, -then run these commands in the bootstrapbase/less/ folder: +need to use a LESS Compiler. Details on specific compilers and how to install them +can be found at http://docs.moodle.org/dev/LESS +At present, recess is the official tool for developers to compile LESS in to CSS, as +other tools give different results in the generated CSS. + +Once recess has been installed you can compile and compress the LESS in to CSS using +the following command: recess --compile --compress moodle.less > ../style/moodle.css You can add --watch to make sure it updates every time you make a change. @@ -10,10 +15,12 @@ And for the subset of styles of interest to the TinyMCE editor: recess --compile --compress editor.less > ../style/editor.css -Non-command line options for .less compilation are available, see their github for more info. - If the compilation is failing and you're not getting any useful error message, try using lessc instead i.e.: lessc moodle.less This is the same tool that's getting called by recess, but the errors seems better if you go direct. + +Additional information about the Moodle bootstrap base theme can be found at +http://docs.moodle.org/dev/Bootstrap + From 38398bebc3d18816f8477e4a98e6462e5c10494c Mon Sep 17 00:00:00 2001 From: Damyon Wiese Date: Thu, 9 May 2013 09:15:07 +0800 Subject: [PATCH 2/2] MDL-39003 README for bootstrap less - more clarification and details --- theme/bootstrapbase/less/README | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/theme/bootstrapbase/less/README b/theme/bootstrapbase/less/README index 9b44ab64b6f..7c95371bea3 100644 --- a/theme/bootstrapbase/less/README +++ b/theme/bootstrapbase/less/README @@ -6,15 +6,18 @@ At present, recess is the official tool for developers to compile LESS in to CSS other tools give different results in the generated CSS. Once recess has been installed you can compile and compress the LESS in to CSS using -the following command: -recess --compile --compress moodle.less > ../style/moodle.css +the following commands from the "theme/bootstrapbase/less" directory: -You can add --watch to make sure it updates every time you make a change. +For the main Moodle styles: + +recess --compile --compress moodle.less > ../style/moodle.css And for the subset of styles of interest to the TinyMCE editor: recess --compile --compress editor.less > ../style/editor.css +You can add --watch to make sure it updates every time you make a change. + If the compilation is failing and you're not getting any useful error message, try using lessc instead i.e.: lessc moodle.less