Skip to content

Conversation

thisconnect
Copy link
Collaborator

In order to change the CSS to change the codebase to use rem, using
'The 62.5% Font Size Trick' we need to first convert all existing
rem units back to px. This is so that we don't accidentally already
have rem values.

If the default base font size is 16px, 1rem equals 16px. Changing
back to pixel first makes it much easier to use the 62.5% trick
where 1rem = 10px.

This refactoring should not introduce any visual change and just
converted rem to px. I.e. 1.5rem is now 24px as 1rem currently
equals 16px.

Also simplified terms.module.css a bit as the title was defined
multiple times.

@thisconnect thisconnect force-pushed the frontend-style-usepx branch 3 times, most recently from 6b8d1a0 to 2e905ed Compare June 10, 2024 12:24
@thisconnect thisconnect force-pushed the frontend-style-usepx branch from 3d778da to cb73170 Compare August 26, 2025 14:08
@thisconnect thisconnect marked this pull request as draft August 26, 2025 14:08
@thisconnect
Copy link
Collaborator Author

rebased

Your branch and 'origin/frontend-style-usepx' have diverged,
and have 803 and 4 different commits each, respectively. 😅

In order to change the CSS to change the codebase to use rem, using
'The 62.5% Font Size Trick' we need to first convert all existing
rem units back to px. This is so that we don't accidentally already
have rem values.

If the default base font size is 16px, 1rem equals 16px. Changing
back to pixel first makes it much easier to use the 62.5% trick
where 1rem = 10px.

This refactoring should not introduce any visual change and just
converted rem to px. I.e. 1.5rem is now 24px as 1rem currently
equals 16px.

Also simplified terms.module.css a bit as the title was defined
multiple times.
@thisconnect thisconnect force-pushed the frontend-style-usepx branch from cb73170 to c648704 Compare August 27, 2025 15:04
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