trema-tech / moodle-theme_trema

Theme trema, a Moodle LMS plugin.
https://moodle.org/plugins/theme_trema
GNU General Public License v3.0
40 stars 20 forks source link

How to change font for the entire site #170

Closed snack753 closed 4 months ago

snack753 commented 10 months ago

I would like to use a different font for the entire site.

Chose to go for openSans.

What we did is to add the following CSS code to the theme settings: @font-face { font-family: "OpenSans"; src: url([[font:theme|OpenSans-Regular.ttf]]) format("truetype"); }

This works pretty well with one exception: Buttons that use FA icons: image

Here the classes fa and e.g. fa-download seem to override the global font definition for the entire tag instead of just the icon part.

From my point of view the code needs to be changed to separate the .fa class from the button/ section to the icon only.

image

Is there any workaround solve this?

michael-milette commented 4 months ago

The next major release of Trema will see the addition of 3 new theme settings to change the base font, the front page banner title, and the hx headings to any of the following font families below:

Feel free to try it out in the experimental "dev" branch.

Best regards,

Michael Milette