Skip to content

Commit 817d62a

Browse files
committed
Fix post-article with section-nav overlay-issue
1 parent a71ec20 commit 817d62a

3 files changed

Lines changed: 16 additions & 1 deletion

File tree

src/styles/components/_doc-navigator.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,10 @@
3232
}
3333
}
3434
}
35+
36+
@include screen-min-md {
37+
.doc-prev-next {
38+
/* 100% of parent - section-nav-width - 4rem for margins & paddings */
39+
max-width: calc(100% - #{$section-nav-width});
40+
}
41+
}

src/styles/components/_post-article.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,11 @@ app-post-article {
5959
}
6060
}
6161
}
62+
63+
@include screen-min-md {
64+
app-post-article {
65+
/* 100% of parent - side-nav-width - section-nav-width - 5rem for margins & paddings */
66+
width: calc(100vw - #{$side-nav-width} - #{$section-nav-width} - 5rem);
67+
max-width: calc(100vw - #{$side-nav-width} - #{$section-nav-width} - 5rem);
68+
}
69+
}

src/styles/components/_section-nav.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ app-post-section-navigator {
22
position: sticky;
33
top: calc(#{$top-navbar-height} + #{$main-content-top-spacing});
44
right: 0;
5-
left: auto;
5+
left: calc(100% - #{$section-nav-width});
66
max-height: calc(100vh - 3rem);
77
max-width: $section-nav-width;
88
min-width: $section-nav-width;

0 commit comments

Comments
 (0)