Fonts in Moodle
Submitted by Wullie on Tue, 01/24/2017 - 13:13
Forums:
Hi,
I am aware of css workarounds for WordPress and Drupal (https://h5p.org/documentation/for-developers/visual-changes), but nothing for Moodle.
I have an accordion that I see uses https://h5p.org/sites/default/files/h5p/libraries/H5P.Accordion-1.0/h5p-... and I have created a .h5p-accordion class in both <moodle>/mod/hvp/styles.css and <moodle>/mod/hvp/library/styles/h5p.css, but I can't get my embedded accordion to pickup the style locally.
Could you suggest where in the moodle plugin code that I need to add/change to override the css to pick up locally?
Thanks
Content types:
thomasmars
Wed, 01/25/2017 - 08:59
Permalink
Hi,Unfortunately there is no
Hi,
Unfortunately there is no css hooks for Moodle yet, however there is an issue for fixing exactly this in the next release. You can follow along the progress of the issue at: https://h5ptechnology.atlassian.net/browse/HFP-556. I would suggest waiting for this issue to be implemented instead of hard-coding anything within the plugin.
The '/mod/hvp/styles.css' is only used when showing the results of an H5P, and the 'h5p.css' may be cached or overwritten by the .sass file.
- Thomas