Skip to content

Commit fc70db8

Browse files
authored
Mobile menu bg color, blur and lock scroll
1 parent 7786acd commit fc70db8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

assets/scss/components/_main-menu-mobile.scss

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.main-menu-mobile {
22
position: fixed;
3-
background: $primary;
43
top: 0;
54
left: 0;
65
width: 100%;
@@ -14,10 +13,12 @@
1413
align-items: center;
1514
flex-direction: column;
1615
&.open {
17-
opacity: 0.9;
16+
opacity: 1;
1817
visibility: visible;
1918
height: 100%;
2019
z-index: 20;
20+
background: rgba($body-bg, 0.7);
21+
backdrop-filter: blur(10px);
2122
li {
2223
animation: fadeInRight 0.5s ease forwards;
2324
animation-delay: 0.35s;
@@ -37,6 +38,9 @@
3738
animation-delay: 0.6s;
3839
}
3940
}
41+
@include media-breakpoint-up(md) {
42+
display: none;
43+
}
4044
}
4145
ul {
4246
font-size: 30px;
@@ -74,3 +78,6 @@
7478
left: 0;
7579
}
7680
}
81+
.lock-scroll {
82+
overflow: hidden;
83+
}

0 commit comments

Comments
 (0)