Skip to content

Commit c9a2a21

Browse files
committed
Fix mobile menu when admin bar is on
1 parent c35a6f1 commit c9a2a21

3 files changed

Lines changed: 29 additions & 1 deletion

File tree

themes/osi/assets/scss/_6_components.header.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
color: inherit;
1010
}
1111
}
12+
.admin-bar {
13+
.header-main.header-main-small {
14+
top: 46px;
15+
}
16+
17+
}
1218
.header--inner {
1319
padding: 0;
1420
position: static;

themes/osi/assets/scss/_6_components.mobile-menu.scss

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
.open-button-wrapper {
2-
position: fixed;
2+
position: absolute;
33
// top: $quicklinksTop; // height of quicklinks
44
// top: 0;
55
top: 7px;
66
width: 100%;
77
}
88

9+
.open-the-menu {
10+
.open-button-wrapper {
11+
position: fixed;
12+
}
13+
.admin-bar {
14+
.open-button-wrapper {
15+
top: 46px;
16+
}
17+
}
18+
}
19+
920
.open-button:not(.open-search) {
1021
@include drop-shadow($x-axis: 0, $y-axis: 0px, $blur: 0, $alpha: 0);
1122
background: none;

themes/osi/style.css

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)