From 239fd05cc9afc169fc8da2ec2e3f9de6514210b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Massart?= Date: Mon, 19 Sep 2016 10:34:23 +0200 Subject: [PATCH] MDL-56016 theme_boost: Add plain preset for plain Moodle & Bootstrap --- theme/boost/lang/en/theme_boost.php | 1 + theme/boost/scss/preset-plain.scss | 12 ++++++++++++ theme/boost/settings.php | 1 + 3 files changed, 14 insertions(+) create mode 100644 theme/boost/scss/preset-plain.scss diff --git a/theme/boost/lang/en/theme_boost.php b/theme/boost/lang/en/theme_boost.php index ccc3ff199b598..d237dac645af0 100644 --- a/theme/boost/lang/en/theme_boost.php +++ b/theme/boost/lang/en/theme_boost.php @@ -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.'; diff --git a/theme/boost/scss/preset-plain.scss b/theme/boost/scss/preset-plain.scss new file mode 100644 index 0000000000000..383aa650eae5d --- /dev/null +++ b/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"; diff --git a/theme/boost/settings.php b/theme/boost/settings.php index d124414310c42..70ac01587c900 100644 --- a/theme/boost/settings.php +++ b/theme/boost/settings.php @@ -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'),