fix: center mobile menu button in header row

This commit is contained in:
Gabriel20xx committed 2026-10-27 07:40:04 +00:00
1 parent 8ec0d89437
commit 37a4a8e2ca
2 files changed
+6 -8

No files matched your search

+3 -4
View File
@@ -1096,12 +1096,11 @@ html[data-wide-layout='true'] .sc-main {
padding: 0.75rem 1rem;
}
/* top is pinned explicitly: with it unset, the button's static-position offset is
recomputed from the flex-wrap layout, which changes height once .sc-nav wraps onto
its own row on open - so the button visibly jumps vertically on click. */
/* Center the button in the header's 4rem first row and pin it there: centering it against
the full header would make it jump when .sc-nav wraps onto its own row on open. */
.sc-mobile-menu-button {
position: absolute;
top: 0.75rem;
top: calc((4rem - 2.25rem) / 2);
left: 50%;
display: grid;
order: 3;