moodle-an-hochschulen / moodle-theme_boost_union

Theme Boost Union is an enhanced child theme of Boost which is intended, on the one hand, to make Boost simply more configurable and, on the other hand, to provide helpful additional features for the daily Moodle operation of admins, teachers and students.
GNU General Public License v3.0
68 stars 60 forks source link

Hardcoded font and color for h2 and p #731

Closed anna-sparkfore closed 2 weeks ago

anna-sparkfore commented 1 month ago

Describe the bug We're running theme_boost_union v4.3-r16 2023102043 where the html tags h2 and p are hardcoded with Roboto font-family, a fixed font-size and color that conflicts with our preferred layout.

Maybe this is solved in newer versions?!

To Reproduce Steps to reproduce the behavior:

  1. Go to admin/settings.php?section=theme_boost_union_look#theme_boost_union_look_scss
  2. See the header on the page which is blue image

Expected behavior The header should inherit the font-family, size and color from other stylesheets.

Desktop (please complete the following information):

HsH-Wolf commented 4 weeks ago

Hello @anna-sparkfore,

I tried to reproduce this behaviour, but everything worked fine (also in Boost Union 4.3).

Did you apply your font to certain elements or to the whole body and could you please provide the CSS code you used? - e. g.

body{
font-family: 'Barlow-Regular';
}

Best regard Yvonne

HsH-Wolf commented 2 weeks ago

The style is not "hardcoded", for example you can apply your uploaded font only to h2 with this code:

font-h2