Skip to content

Commit 46ec816

Browse files
Update custom.css
1 parent c915219 commit 46ec816

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

src/css/custom.css

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88
/* FINAL MOBILE OVERRIDE: aggressively remove any top gap on narrow viewports
99
This targets any leftover placeholders, pseudo-elements, safe-area padding,
1010
or theme-provided offsets. Keep it last so it wins over other rules. */
11+
/* Keep your 1024px rule to hide the placeholder element */
1112
@media screen and (max-width: 1024px) {
12-
13-
/* remove any generated placeholders or spacer elements that push content down */
1413
.theme-doc-navbar-placeholder,
1514
.theme-doc-navbar-placeholder * {
1615
display: none !important;
@@ -19,6 +18,17 @@
1918
padding: 0 !important;
2019
overflow: hidden !important;
2120
}
21+
}
22+
23+
/* Add this 480px rule right below it to fix the mobile menu links text overlapping */
24+
@media screen and (max-width: 480px) {
25+
.navbar-sidebar .menu__list-item {
26+
padding-top: 0.5rem !important;
27+
padding-bottom: 0.5rem !important;
28+
position: relative !important;
29+
}
30+
}
31+
2232

2333
/* global resets for top spacing and pseudo-elements */
2434
html,

0 commit comments

Comments
 (0)