moodle_local_treestudyplan/scss/readme-moodle.txt

20 lines
945 B
Plaintext
Raw Normal View History

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.
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
'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.
2024-06-03 23:24:16 +02:00
styles.css is used in production environtments and css/devstyles.css as an override in
production environments, in order to avoid having to clear the theme
cache every time a style rule is changed during development.
2023-08-26 17:07:42 +02:00
2024-06-03 23:24:16 +02:00
The grunt command to compile is 'grunt scssplugin', but 'grunt watch' or just 'grunt' will
include these scss files in compilation too