fix(theme): clamp h3 so it never overtakes the nav h1
This commit is contained in:
@@ -213,7 +213,10 @@
|
|||||||
font-size: var(--text-3xl);
|
font-size: var(--text-3xl);
|
||||||
}
|
}
|
||||||
h3 {
|
h3 {
|
||||||
font-size: var(--text-2xl);
|
/* 5vw is tuned to stay under the nav h1 across the whole range: it only
|
||||||
|
* reaches the nav's 32px exactly at the 640px breakpoint where the nav
|
||||||
|
* itself steps up, so h3 never overtakes it. */
|
||||||
|
font-size: clamp(1.5rem, 5vw, var(--text-2xl));
|
||||||
}
|
}
|
||||||
h4 {
|
h4 {
|
||||||
font-size: var(--text-xl);
|
font-size: var(--text-xl);
|
||||||
|
|||||||
Reference in New Issue
Block a user