Skip to content

Conversation

katshann-raspberry
Copy link
Contributor

No description provided.

background: transparent;
}

h2 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want to be a bit defensive here, is it worth scoping to #docs-header or even putting this on #docs-header-title directly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've put it on docs-header. I didn't want to be too specific as there is an overriding 1.9em on the more specific item that I want to apply, but my browser was multiplying this with a 1.5em from somewhere. I think I needed the initial to clear that 1.5em.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, em is a relative unit so it is affected by the parent font size, see https://developer.mozilla.org/en-US/docs/Learn_web_development/Core/Styling_basics/Values_and_units#numbers_lengths_and_percentages. (This is why we prefer using rem for the rest of the site.)

@katshann-raspberry katshann-raspberry merged commit 8ac282a into develop Oct 7, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants