Skip to content

Commit 795f926

Browse files
author
rakeshAlgo
committed
Fix the issues for The h2 overlaps with header below
1 parent 05e1a3f commit 795f926

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/css/doc.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
.doc h2 {
4747
font-size: var(--heading-h2);
4848
max-width: fit-content;
49-
display: inline-block;
5049
width: 100%;
5150
/* NOTE used to restrict width of key line */
5251
}

src/css/main.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ main {
66
main [id]::before {
77
content: "";
88
display: inherit;
9-
height: var(--height-to-body);
10-
margin-top: calc(-1 * var(--height-to-body));
9+
height: var(--h2-heading-top-space);
10+
margin-top: calc(-1 * var(--h2-heading-top-space));
1111
visibility: hidden;
1212
width: 0;
1313
}

src/css/vars.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
--height-nav: calc(var(--height-min-body) + var(--height-spacer));
7474
--height-nav-with-version: calc(100vh - var(--height-to-body) - var(--height-version-control));
7575
--nav-menu-top-space: calc(var(--height-to-body) + var(--height-version-control));
76+
--h2-heading-top-space: calc(var(--height-to-body) + 0.5rem);
7677
/* --width-main-gutter: 1.5rem; */
7778
--width-main-gutter: 2.5rem;
7879
--width-container: 90rem;

0 commit comments

Comments
 (0)