Fonts in Moodle

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: 
0
0
Supporter votes Members of the Supporter Network can vote for feature requests. When the supporter network has generated sufficient funding for the top voted feature request it will normally be implemented and released. More about the H5P Supporter Network
thomasmars's picture

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