https://github.com/cca/moodle-styles
frontend assets (HTML, JS, CSS) for CCA's Moodle LMS
https://github.com/cca/moodle-styles
Last synced: over 1 year ago
JSON representation
frontend assets (HTML, JS, CSS) for CCA's Moodle LMS
- Host: GitHub
- URL: https://github.com/cca/moodle-styles
- Owner: cca
- License: other
- Created: 2020-08-19T21:21:51.000Z (almost 6 years ago)
- Default Branch: main
- Last Pushed: 2025-04-11T04:35:33.000Z (over 1 year ago)
- Last Synced: 2025-04-11T16:36:53.954Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 703 KB
- Stars: 1
- Watchers: 7
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# CCA Moodle Styles
Front-end Moodle files (images, JS, styles). There are npm scripts to apply the changes from the local project to our remote Moodle instances. They rely on a `NS` namespace variable set to either our staging or production namespace. See `npm run` for the list of commands.
## Theme Assets
### Styles
SCSS which you insert this code in the text area under Site Administration > Appearance > Themes > Boost > Advanced Settings.
### Scripts
We insert custom scripts into the `additionalhtml > footer` settings area. Our scripts are all under the additionalhtml directory.
### HTML blocks
These are custom HTML blocks which we keep a copy of for efficient editing. You can create blocks in Moodle easily enough, and edit their HTML there, but it can be hard to copy and keep them consistent without an external file like this. It is best to refer to image assets _outside of Moodle_ because Moodle does some peculiar handling of file paths that can break if you copy/paste the source of an HTML block.
## LICENSE
[ECL Version 2.0](https://opensource.org/licenses/ECL-2.0)