Skip to content

Commit 8ee1ab1

Browse files
committed
frontend: set default font-size
The last commits introduced the '62.5% Font Size Trick' which almost worked perfectly, except for components that do not set font-size at all and inherit from the base font-size of the parent. These components now render with small 10px font-size instead of 16px. Fixed by changing the app style (most outer parent class) to 1.6rem which equals to 16px, so all components that do not define font-size inherit 16px.
1 parent d9da08d commit 8ee1ab1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

frontends/web/src/style/base.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ html {
22
font-size: 62.5%; /* 1rem = 10px */
33
}
44

5+
body {
6+
font-size: 1.6rem; /* 16px base for body, this will be overwritten on Android */
7+
}
8+
59
html,
610
body {
711
background-color: var(--background);

0 commit comments

Comments
 (0)