Closed abias closed 1 year ago
As an alternative approach, we could also:
a) add a dedicated text area (similar to the RAW SCSS textarea) where you can write your Mobile CSS code in the theme settings b) ship this CSS code with a script similar to https://github.com/moodle-an-hochschulen/moodle-theme_boost_union/blob/master/flavours/styles.php c) set the URL in $CFG->mobilecssurl automatically to the script as soon as some CSS code is added to the textarea.
Nina implemented the alternative approach in #205
Moodle Core offers a setting
$CFG->mobilecssurl
which is used to provide additional CSS for the Moodle Mobile App. Unfortunately, this setting only takes a full URL and you have to host this CSS file elsewhere.Within Boost Union, you can use the
theme_boost_union | additionalresources
to host this CSS file. However, you will still have to paste the URL over to the$CFG->mobilecssurl
setting.It would be worthwhile
a) to add a dedicated filearea for the Moodle Mobile App in Boost Union and b) to set the URL in
$CFG->mobilecssurl
automatically as soon as a CSS file is uploaded.