The stylesheet in this repo contains some basic CSS that improves the appearance and usability of the Moodle learning management systems (LMS).
The stylesheet was created by instructional designer and frontend web developer Amy Spielmaker as part of a conference session: "Hacking the LMS" at NWeLearn 2023. The stylesheet has been tested with standard Moodle installations (version 4.x) and default Boost theme. If your LMS has other customizations, you may need to do some tweaking.
Copy and paste the CSS from the stylesheet into your LMSs global stylesheet or a specific stylesheet that's linked in your theme. You will need the ability to add custom CSS in your LMS to do this. I also recommend you are familiar with CSS and feel comfortable modifying CSS as needed (usually necessary when your LMS updates to a new version).
- Navigate to Site administration > Appearance > Themes > Boost
- Click the 'Advanced settings' tab.
- In the 'Raw initial SCSS' field, paste the CSS from the Moodle stylesheet in this repo.
I recommend first doing a test with Chrome Developer Tools to see how the styles will be applied.
- In Chrome, open a course page in your LMS.
- Right-click anywhere and then select Inspect from the context menu. This will open Chrome Developer Tools.
- Make sure the 'Elements' tab is selected.
- Click the plus icon in the top right corner of the styles panel. This will create a local stylesheet called
inspector-stylesheet
you can use for testing. - Click the
inspector-stylesheet
link beside the style. This will open the stylesheet in the source editor. - Paste the CSS from the stylesheet you're testing into the
inspector-stylesheet
stylesheet. The styles will be applied and you can see how it looks. - Repeat the steps above for any other pages you want to test.