Skip to content

Commit c35a6f1

Browse files
committed
Fix the mobile navigation after scrolling
1 parent 324dbcb commit c35a6f1

4 files changed

Lines changed: 2 additions & 14 deletions

File tree

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@
108108

109109
@media only screen and (max-width: #{$break-nav}) {
110110
.header-main-small {
111-
pointer-events: none;
112-
113111
.header--blog-name img {
114112
max-height: 67.19px;
115113
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.open-button-wrapper {
2-
position: absolute;
2+
position: fixed;
33
// top: $quicklinksTop; // height of quicklinks
44
// top: 0;
55
top: 7px;

themes/osi/assets/scss/_6_components.navigation.scss

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,6 @@ nav {
8888
margin-left: auto;
8989
padding: 2.1rem 0;
9090
transition: all 0.8s ease;
91-
// position: absolute;
92-
// right: 100%;
93-
// top: 0;
94-
// // @include transition(all .8s);
95-
// width: 80%;
96-
97-
.header-main-small & {
98-
padding: 0;
99-
}
10091

10192
ul {
10293
list-style: none;
@@ -167,7 +158,7 @@ footer {
167158
margin-top: $quicklinksTop; // quicklinks header height
168159
max-height: 0;
169160
overflow: hidden;
170-
position: absolute;
161+
position: fixed;
171162
right: 0;
172163
top: 0;
173164
transition: all .3s;

themes/osi/assets/scss/_7_vendor.plugins.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ form.wp-block-jetpack-contact-form {
8989

9090
/* Specific styling for mobile devices */
9191
@media only screen and (max-width: 768px) {
92-
9392
.header-main-small {
9493
display: block !important;
9594
}

0 commit comments

Comments
 (0)