Skip to content

Conversation

@auge8472
Copy link
Contributor

@auge8472 auge8472 commented Feb 1, 2026

This is the next step in the chain to replace pixel based sizes with relative units. With this pull request I reworked the main navigation.

The font size is set to 75% of the browsers default font size (with 0.75em). In most cases the default font size is 16px and therefore the font size of the main navigation will be 12px as before. But with larger font sizes in the browser the font size will grow relative to the setting. As in the previous pull requests #374 and #376 I set the border radius size to 0.5em to make them uniform.

The height and min-height of the navigation bar was replaced by a proper line height of 2.75em. On one hand this looks the same as before (with a browser default font size of 16px) on the other it makes it possible to be flexible with different defaults and also to have an additional text line in case of additional menu points without breaking the layout.

This should result in a size of 12px in the most browsers as before. But unlike before, everything adapts to the sizes specified in the visitor's browser.

Signed-off-by: Heiko August <[email protected]>
…adding-inline

Changed it thereby from 3px on each side to 0.25em.

Signed-off-by: Heiko August <[email protected]>
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.

1 participant