moodle_local_treestudyplan/scss/readme-moodle.txt

21 lines
867 B
Plaintext
Raw Normal View History

2023-08-26 17:07:42 +02:00
The amount of css rules required for this plugin is quite high. To accomodate the
moodle plugin practice of plugin specific css selectors, this makes the css rules
quite hard to maintain.
Unfortunately, moodle does not extend the sass/scss compiler support to plugins
that are not a theme.
To alleviate this, this plugin includes it's own scss compiler script that compiles
all scss files in this directory into one css file - css/devstyles.css
This files is used instead of styles.css in order to avoid having to clear the theme
cache every time a style rule is changed during development.
Once I devise a method to use styles.css in production environtments and css/devstyles.css
production environments, the compiler will compile it into both css/devstyles.css
and styles.css
Call the plugin's scss compiler by running scssbuild.sh in the plugin's root.