Skip to content

Commit 6f43048

Browse files
committed
use rem calc to compute font sizes for home page
1 parent 55e99c6 commit 6f43048

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/css/home.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
background-color: var(--color-smoke-50);
66
border-radius: 0.5em;
77
padding: 0.75rem 1.25rem;
8-
font-size: 0.8888rem;
8+
font-size: calc(16 / var(--rem-base) * 1rem);
99
}
1010

1111
.doc .panel h2 {
@@ -25,7 +25,7 @@
2525

2626
.doc .grid {
2727
margin-top: 1rem;
28-
font-size: 0.8888rem;
28+
font-size: calc(16 / var(--rem-base) * 1rem);
2929
}
3030

3131
@media screen and (min-width: 769px) {
@@ -44,6 +44,7 @@
4444

4545
.doc .grid dd {
4646
margin: 0;
47+
font-size: calc(14 / var(--rem-base) * 1rem);
4748
}
4849
}
4950

0 commit comments

Comments
 (0)