Set h4 heading size

This commit is contained in:
Helen Chong 2024-05-22 16:39:14 +08:00
parent 50e41d98f1
commit 1b3821847a
2 changed files with 5 additions and 0 deletions

View File

@ -41,6 +41,10 @@ h3:has(+ *[class]:not(.heading-anchor)), .h3:has(+ *[class]) {
margin-bottom: 0.5em; margin-bottom: 0.5em;
} }
h4, .h4 {
font-size: var(--sz-h4);
}
hr { hr {
border: 0.05rem solid var(--clr-title-border); border: 0.05rem solid var(--clr-title-border);
} }

View File

@ -40,6 +40,7 @@
--sz-h1: clamp(2rem, 1rem + 5vw, 3rem); --sz-h1: clamp(2rem, 1rem + 5vw, 3rem);
--sz-h2: clamp(1.55rem, 1rem + 3vw, 2.15rem); --sz-h2: clamp(1.55rem, 1rem + 3vw, 2.15rem);
--sz-h3: clamp(1.55rem, 1rem + 3vw, 1.8rem); --sz-h3: clamp(1.55rem, 1rem + 3vw, 1.8rem);
--sz-h4: clamp(1.4rem, 1rem + 3vw, 1.6rem);
--sz-paragraph-margin: 1.15em; --sz-paragraph-margin: 1.15em;
--sz-main-padding: clamp(1rem, 5%, 4rem); --sz-main-padding: clamp(1rem, 5%, 4rem);
} }