Skip to content

Commit 3393838

Browse files
committed
💄 fix styles for burger menu
1 parent 38327eb commit 3393838

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

assets/sass/main.scss

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@
247247
}
248248
}
249249

250-
.table-of-contents {
250+
ul.table-of-contents {
251251
position: fixed;
252252
top: 1em;
253253
right: 1em;
@@ -257,24 +257,27 @@
257257
border-radius: _size(border-radius);
258258
min-width: 0;
259259
min-height: 0;
260-
content: 'NAVIGATION';
260+
list-style-type: none;
261+
font-size: 0.8em;
262+
opacity: 1;
261263

262-
ul {
263-
list-style: none;
264-
font-size: 0.8em;
265-
opacity: 1;
266-
}
267264

268265
&:hover {
269-
content: '';
266+
font-size: 0;
270267
}
271268

272269
&:not(:hover) {
273-
ul {
270+
li {
274271
margin: 0;
275272
padding: 0;
276273
opacity: 0;
277274
}
275+
276+
&::before {
277+
min-width: 1em;
278+
min-height: 1em;
279+
content: 'NAVIGATION';
280+
}
278281
}
279282

280283
}

0 commit comments

Comments
 (0)