Skip to content

Commit

Permalink
MDL-56016 theme_boost: Add plain preset for plain Moodle & Bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric Massart committed Sep 29, 2016
1 parent ddd8dc0 commit 239fd05
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions theme/boost/lang/en/theme_boost.php
Expand Up @@ -38,6 +38,7 @@
$string['presetdefault'] = 'Default';
$string['presetflatly'] = 'Flatly';
$string['presetpaper'] = 'Paper';
$string['presetplain'] = 'Plain';
$string['presetreadable'] = 'Readable';
$string['rawscss'] = 'Raw SCSS';
$string['rawscss_desc'] = 'Use this field to provide SCSS code which will be injected at the end of the the stylesheet.';
Expand Down
12 changes: 12 additions & 0 deletions theme/boost/scss/preset-plain.scss
@@ -0,0 +1,12 @@
/**
* Plain preset file.
*
* This preset is plain Moodle & Bootstrap and must not contain anything else.
*
* To create your own preset file:
* - Duplicate this file and rename it, for instance to preset-apple.scss.
* - In settings.php, find the references to 'plain', duplicate them and rename
* them to 'apple'. (Look around the choices for 'theme_boost/preset').
*/

@import "moodle";
1 change: 1 addition & 0 deletions theme/boost/settings.php
Expand Up @@ -32,6 +32,7 @@
$description = get_string('preset_desc', 'theme_boost');
$choices = [
// A file named 'preset-' . key . '.scss' is expected.
'plain' => get_string('presetplain', 'theme_boost'),
'default' => get_string('presetdefault', 'theme_boost'),
'flatly' => get_string('presetflatly', 'theme_boost'),
'paper' => get_string('presetpaper', 'theme_boost'),
Expand Down

0 comments on commit 239fd05

Please sign in to comment.