Skip to content

Commit 31bc6ce

Browse files
committed
style(navbar): adjust mobile hamburger menu layout
1 parent b67c678 commit 31bc6ce

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

docs/assets/stylesheets/theme.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,25 @@ header#title-block-header h1.title {
294294
border-top: 1px solid var(--mc-border);
295295
}
296296

297+
// Collapsed (mobile) hamburger menu: lay both link groups out as a compact,
298+
// left-aligned wrapping row instead of a full-width vertical stack, so each link
299+
// hugs its content and the underline/tooltip anchor to the link, not the whole bar.
300+
// Scoped to the navbar-expand-lg collapse breakpoint so the desktop navbar is untouched.
301+
@media (max-width: 991.98px) {
302+
.navbar .navbar-collapse .navbar-nav {
303+
flex-direction: row;
304+
flex-wrap: wrap;
305+
align-items: center;
306+
gap: 0.25rem;
307+
width: auto;
308+
309+
.nav-link {
310+
width: auto;
311+
padding-inline: 0.6rem;
312+
}
313+
}
314+
}
315+
297316
// ===========================================================================
298317
// TOOLTIPS (navbar controls — dark surface in both schemes to match the navbar)
299318
// ===========================================================================

0 commit comments

Comments
 (0)