Skip to content

Commit c2db08c

Browse files
Add proper bottom spacing to h1 to prevent divider overlap
Signed-off-by: DARSHAN-R-DARSHAN <darshanramanji07@gmail.com>
1 parent c445538 commit c2db08c

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/css/custom.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,15 +1465,16 @@ article.markdown p {
14651465
/* Heading hierarchy - clear visual distinction */
14661466
article.markdown h1 {
14671467
margin-top: 0;
1468+
margin-bottom: 1rem;
14681469
font-size: 2.5rem;
14691470
font-weight: 800;
14701471
letter-spacing: -0.03em;
14711472
line-height: 1.2;
14721473
color: #111827;
14731474
}
1474-
h1 {
1475-
margin-bottom: 1.5rem; /* increased spacing */
1476-
padding-bottom: 0.75rem; /* add space before divider */
1475+
1476+
.markdown article > header h1 {
1477+
padding-bottom: 0.75rem;
14771478
}
14781479

14791480
html[data-theme="dark"] article.markdown h1 {

0 commit comments

Comments
 (0)