fix: center mobile menu button in header row
Security / Secrets (gitleaks) (push) Successful in 1m6s
Security / Dependencies (Trivy) (push) Successful in 1m8s
Security / Code (Semgrep) (push) Successful in 2m40s
Docker / Docker Build & Push (push) Successful in 10m14s

This commit is contained in:
Gabriel20xx committed 2026-10-27 07:39:56 +00:00
1 parent f246c4290f
commit 85e6db67b5
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;