MDL-56959 theme: SCSS file is inherited from parent

Also added support for the SCSS property to be a Closure
and return content rather than simply being the name of a file.
This commit is contained in:
Frederic Massart
2016-11-17 15:18:29 +08:00
parent b4d6669dd0
commit 41b973bcbb
4 changed files with 117 additions and 53 deletions
+3 -1
View File
@@ -27,9 +27,11 @@ defined('MOODLE_INTERNAL') || die();
require_once(__DIR__ . '/lib.php');
$THEME->name = 'boost';
$THEME->scssfile = 'preset';
$THEME->sheets = [];
$THEME->editor_sheets = [];
$THEME->scss = function($theme) {
return theme_boost_get_main_scss_content($theme);
};
$THEME->layouts = [
// Most backwards compatible layout without the blocks - this is the layout used by default.