Skip to content

Commit af614b6

Browse files
committed
Tweak typography
1 parent 4d49e54 commit af614b6

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/css/custom.css

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
--ifm-code-font-size: 85%;
2020

2121
--ifm-heading-font-weight: 600;
22-
--ifm-heading-margin-top: 1.618rem;
22+
--ifm-heading-margin-top: 1rem;
2323

2424
--ifm-color-primary: hsl(
2525
var(--primary-hue),
@@ -374,6 +374,11 @@ header {
374374
font-family: var(--ifm-heading-font-family);
375375
}
376376

377+
.markdown {
378+
--ifm-h1-vertical-rhythm-bottom: 1;
379+
--ifm-heading-vertical-rhythm-bottom: 0.75;
380+
}
381+
377382
.markdown :is(ul, ol) > li > p {
378383
margin-bottom: var(--ifm-list-paragraph-margin);
379384
}
@@ -603,8 +608,8 @@ header {
603608

604609
@media (min-width: 85rem) {
605610
.menu > .menu__list > .menu__list-item {
606-
padding-top: 1.5rem;
607-
padding-bottom: 1.75rem;
611+
padding-top: 0.75rem;
612+
padding-bottom: 0.75rem;
608613
}
609614
}
610615

0 commit comments

Comments
 (0)