Skip to content

Commit 37b7fba

Browse files
committed
fix: adjust heading font sizes in markdown content to be smaller than page title
1 parent 2ae39f0 commit 37b7fba

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

src/styles/common.css

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -467,47 +467,47 @@
467467

468468
/* Heading Levels */
469469
.sl-markdown-content h1 {
470-
font-size: 72px;
470+
font-size: 2rem;
471471
font-weight: 700;
472-
line-height: 1.0;
473-
letter-spacing: -0.025em;
472+
line-height: 1.2;
473+
letter-spacing: -0.02em;
474474
color: #111827;
475475
}
476476

477477
.sl-markdown-content h2 {
478-
font-size: 48px;
478+
font-size: calc(1.5rem + 2px);
479479
font-weight: 700;
480-
line-height: 1.1;
481-
letter-spacing: -0.02em;
480+
line-height: 1.3;
481+
letter-spacing: -0.015em;
482482
color: #111827;
483483
}
484484

485485
.sl-markdown-content h3 {
486-
font-size: 36px;
486+
font-size: calc(1.25rem + 2px);
487487
font-weight: 700;
488-
line-height: 1.15;
489-
letter-spacing: -0.015em;
488+
line-height: 1.4;
489+
letter-spacing: -0.01em;
490490
color: #111827;
491491
}
492492

493493
.sl-markdown-content h4 {
494-
font-size: 24px;
494+
font-size: calc(1.125rem + 2px);
495495
font-weight: 700;
496-
line-height: 1.3;
496+
line-height: 1.5;
497497
color: #111827;
498498
}
499499

500500
.sl-markdown-content h5 {
501-
font-size: 20px;
501+
font-size: calc(1rem + 2px);
502502
font-weight: 700;
503-
line-height: 1.4;
503+
line-height: 1.5;
504504
color: #111827;
505505
}
506506

507507
.sl-markdown-content h6 {
508-
font-size: 18px;
508+
font-size: calc(0.9375rem + 2px);
509509
font-weight: 600;
510-
line-height: 1.4;
510+
line-height: 1.5;
511511
color: #111827;
512512
}
513513

0 commit comments

Comments
 (0)