Skip to content

Commit ef7e72e

Browse files
committed
Header: Fix sidebar action icon mismatch on mobile
1 parent 114e537 commit ef7e72e

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

assets/css/v2/style.css

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -752,6 +752,18 @@ ol li:last-child {
752752

753753
/* This is our "mobile" or no sidebar breakpoint */
754754
@media (max-width: 68rem) {
755+
#sidebar-panel:not(:checked) ~ .grid-container {
756+
.header {
757+
.header__control--sidebar--close {
758+
display: none;
759+
}
760+
761+
.header__control--sidebar--open {
762+
display: unset;
763+
}
764+
}
765+
}
766+
755767
#sidebar-panel:checked ~ .grid-container {
756768
.header {
757769
.header-container {
@@ -760,6 +772,22 @@ ol li:last-child {
760772
> :not(:first-child) {
761773
display: none;
762774
}
775+
776+
.header__control {
777+
.header__control--sidebar {
778+
color: oklch(var(--color-foreground));
779+
780+
.header__control--sidebar--open {
781+
display: none;
782+
}
783+
784+
.header__control--sidebar--close {
785+
display: unset;
786+
}
787+
}
788+
}
789+
790+
763791
}
764792
}
765793

0 commit comments

Comments
 (0)