Skip to content

Commit 5ea672e

Browse files
committed
Header: Fix sidebar action icon mismatch on mobile
1 parent 81c547f commit 5ea672e

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
@@ -759,6 +759,18 @@ ol li:last-child {
759759

760760
/* This is our "mobile" or no sidebar breakpoint */
761761
@media (max-width: 68rem) {
762+
#sidebar-panel:not(:checked) ~ .grid-container {
763+
.header {
764+
.header__control--sidebar--close {
765+
display: none;
766+
}
767+
768+
.header__control--sidebar--open {
769+
display: unset;
770+
}
771+
}
772+
}
773+
762774
#sidebar-panel:checked ~ .grid-container {
763775
.header {
764776
.header-container {
@@ -767,6 +779,22 @@ ol li:last-child {
767779
> :not(:first-child) {
768780
display: none;
769781
}
782+
783+
.header__control {
784+
.header__control--sidebar {
785+
color: oklch(var(--color-foreground));
786+
787+
.header__control--sidebar--open {
788+
display: none;
789+
}
790+
791+
.header__control--sidebar--close {
792+
display: unset;
793+
}
794+
}
795+
}
796+
797+
770798
}
771799
}
772800

0 commit comments

Comments
 (0)