Skip to content

Commit 978a7da

Browse files
style dropdown mobile menu
1 parent b85f776 commit 978a7da

File tree

1 file changed

+24
-20
lines changed

1 file changed

+24
-20
lines changed

src/features/common/components/headers/mobile-header/mobile-header.module.scss

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,8 @@
104104
}
105105

106106
.menu {
107-
position: fixed;
108-
top: $main-nav-height-mobile;
109-
z-index: 99999;
110-
height: calc(100% - $main-nav-height-mobile);
111-
width: 100%;
112-
overflow: hidden;
107+
opacity: 1;
108+
transition: all .3s ease-in-out;
113109

114110
&[aria-hidden="false"] {
115111
display: block;
@@ -127,16 +123,22 @@
127123
}
128124

129125
.menuContainer {
130-
height: 100%;
131-
width: 100%;
132-
overflow-y: scroll;
133-
background: var(--color_bg_page);
126+
width: calc(100% - 2rem);
127+
position: fixed;
128+
left: 1rem;
129+
top: 4.5rem;
130+
border-radius: 1rem;
131+
background: rgba(0, 0, 0, .04);
132+
border: 1px solid rgba(0, 0, 0, .04);
133+
box-shadow: 0 1px 1px -.5px rgba(0, 0, 0, .04), 0 2px 2px -1px rgba(0, 0, 0, .04), 0 4px 4px -2px rgba(0, 0, 0, .04), 0 8px 8px -4px rgba(0, 0, 0, .04), 0 12px 12px -6px rgba(0, 0, 0, .04);
134+
backdrop-filter: blur(2rem);
135+
z-index: 100;
134136
}
135137

136138
.menuContent {
137139
@include InnerContentFlex;
138-
padding: 0 1.5rem 1.5rem;
139140
width: 100%;
141+
padding: .25rem;
140142
}
141143

142144
.menu__list {
@@ -149,25 +151,27 @@
149151
position: relative;
150152
list-style: none;
151153
width: 100%;
152-
border-bottom: 1px solid $neutrals-functional-300;
153154
margin: 0;
154-
padding: 1.5rem 0.5rem;
155155
}
156156

157157
.menu__item__link {
158-
font-size: 1.25rem;
159-
line-height: 1.75rem;
160-
letter-spacing: -0.1px;
158+
display: flex;
159+
align-items: center;
160+
justify-content: center;
161+
border-radius: .75rem;
162+
width: 100%;
163+
font-size: 1rem;
164+
letter-spacing: -.1px;
161165
color: var(--color_fg_bold);
162166
text-decoration: none;
163167
font-weight: 500;
164-
transition: color 0.2s;
168+
transition: color .2s;
165169
cursor: pointer;
166170
user-select: none;
167-
padding-bottom: 0.25rem;
168-
border-bottom: 1px solid transparent;
171+
padding: .75rem .5rem;
169172

170173
&[data-active="true"] {
171-
border-bottom: 1px solid var(--color_fg_bold);
174+
background-color: hsla(0, 0%, 100%, .5);
175+
box-shadow: 0 0 1px 2px rgba(0, 0, 0, .04);
172176
}
173177
}

0 commit comments

Comments
 (0)