Skip to content

Commit 3cbdd4f

Browse files
Hide header for specific layout variants on mobile
1 parent 9a71e87 commit 3cbdd4f

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/scss/7-components/_main-header.scss

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,18 @@
100100
--p-main-header-border-color: rgb(0, 0, 0, 0.1);
101101
}
102102

103-
@media #{$break2}, #{$break1} {
103+
@media #{$break2} {
104104
display: none;
105105
}
106+
107+
@media #{$break1} {
108+
[data-variant="two-side-navs"] & {
109+
display: none;
110+
}
111+
[data-variant="expanded"] & {
112+
display: none;
113+
}
114+
}
106115

107116
&.is-hidden {
108117
transform: translateY(-100%);

0 commit comments

Comments
 (0)