fix: center mobile menu button in header row
This commit is contained in:
1 parent
f246c4290f
commit
85e6db67b5
2 files changed
+6
-8
No files matched your search
@@ -1096,12 +1096,11 @@ html[data-wide-layout='true'] .sc-main {
|
|||||||
padding: 0.75rem 1rem;
|
padding: 0.75rem 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* top is pinned explicitly: with it unset, the button's static-position offset is
|
/* Center the button in the header's 4rem first row and pin it there: centering it against
|
||||||
recomputed from the flex-wrap layout, which changes height once .sc-nav wraps onto
|
the full header would make it jump when .sc-nav wraps onto its own row on open. */
|
||||||
its own row on open - so the button visibly jumps vertically on click. */
|
|
||||||
.sc-mobile-menu-button {
|
.sc-mobile-menu-button {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0.75rem;
|
top: calc((4rem - 2.25rem) / 2);
|
||||||
left: 50%;
|
left: 50%;
|
||||||
display: grid;
|
display: grid;
|
||||||
order: 3;
|
order: 3;
|
||||||
|
|||||||
@@ -1096,12 +1096,11 @@ html[data-wide-layout='true'] .sc-main {
|
|||||||
padding: 0.75rem 1rem;
|
padding: 0.75rem 1rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* top is pinned explicitly: with it unset, the button's static-position offset is
|
/* Center the button in the header's 4rem first row and pin it there: centering it against
|
||||||
recomputed from the flex-wrap layout, which changes height once .sc-nav wraps onto
|
the full header would make it jump when .sc-nav wraps onto its own row on open. */
|
||||||
its own row on open - so the button visibly jumps vertically on click. */
|
|
||||||
.sc-mobile-menu-button {
|
.sc-mobile-menu-button {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0.75rem;
|
top: calc((4rem - 2.25rem) / 2);
|
||||||
left: 50%;
|
left: 50%;
|
||||||
display: grid;
|
display: grid;
|
||||||
order: 3;
|
order: 3;
|
||||||
|
|||||||
Reference in new issue
Block a user