Skip to content

Commit fe6e92c

Browse files
committed
💄 tweak menu config
1 parent 266935a commit fe6e92c

File tree

1 file changed

+12
-19
lines changed

1 file changed

+12
-19
lines changed

assets/sass/main.scss

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@
270270
li {
271271
border-radius: _size(border-radius);
272272
margin: 5px;
273+
display: none;
273274

274275
&:hover {
275276
background-color: rgba(0,0,0,0.2);
@@ -282,34 +283,26 @@
282283
}
283284
}
284285

285-
&:not(:hover) {
286-
li {
287-
margin: 0;
288-
padding: 0;
289-
opacity: 0;
290-
font-size: 0;
291-
height: 0
292-
}
293-
294-
&::before {
295-
top: 4px;
296-
left: 4px;
297-
min-width: 32px;
298-
min-height: 32px;
299-
position: absolute;
300-
content: '';
301-
background-image: url('/images/burger.svg');
302-
background-position: center;
303-
}
286+
&::before {
287+
top: 4px;
288+
left: 4px;
289+
width: 32px;
290+
height: 32px;
291+
position: absolute;
292+
content: '';
293+
background-image: url('/images/burger.svg');
294+
background-position: center;
304295
}
305296

306297
&:hover {
307298
&::before {
308299
display: block;
300+
position: relative;
309301
width: 100%;
310302
content: 'NAVIGATION';
311303
padding-left: 5%;
312304
border-bottom: 1px solid _palette(fg);
305+
background-image: none;
313306
}
314307
}
315308
}

0 commit comments

Comments
 (0)