2023-09-08 12:47:29 +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
|
2023-08-26 17:07:42 +02:00
|
|
|
quite hard to maintain.
|
|
|
|
|
|
|
|
Unfortunately, moodle does not extend the sass/scss compiler support to plugins
|
|
|
|
that are not a theme.
|
|
|
|
|
2023-08-26 23:37:36 +02:00
|
|
|
To alleviate this, this plugin extends moodle's Gruntfile.js scripts
|
|
|
|
to compile 'scss/styles.scss' into 'css/devstyles.css' (and 'styles.css')
|
2023-08-26 17:07:42 +02:00
|
|
|
|
2023-08-26 23:37:36 +02:00
|
|
|
'css/devstyles.css' is used instead of styles.css in order to avoid having to clear the theme
|
2023-08-26 17:07:42 +02:00
|
|
|
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
|
2023-09-08 12:47:29 +02:00
|
|
|
production environments, the compiler will compile it into both css/devstyles.css
|
2023-08-26 17:07:42 +02:00
|
|
|
and styles.css
|
|
|
|
|
2023-08-26 23:37:36 +02:00
|
|
|
The grunt command to compile is 'grunt scssplugin'
|