@@ -223,14 +223,14 @@ import logo from '../assets/img/logo.svg'
223
223
#main-navigation {
224
224
> .container {
225
225
display: flex;
226
- justify-content: space-between;
227
226
flex-wrap: wrap;
227
+ justify-content: space-between;
228
228
}
229
229
230
230
&.is-desktop {
231
231
.desktop-menu {
232
- visibility: visible;
233
232
position: static;
233
+ visibility: visible;
234
234
}
235
235
236
236
.mobile-menu {
@@ -254,10 +254,10 @@ import logo from '../assets/img/logo.svg'
254
254
}
255
255
256
256
.desktop-menu {
257
- visibility: hidden;
258
- z-index: -99;
259
257
position: absolute;
260
258
left: 0;
259
+ visibility: hidden;
260
+ z-index: -99;
261
261
}
262
262
263
263
.responsive-toggle {
@@ -279,9 +279,9 @@ import logo from '../assets/img/logo.svg'
279
279
280
280
a,
281
281
button {
282
- text-decoration: none;
283
282
font-size: 1.125rem;
284
283
line-height: 1.6875rem;
284
+ text-decoration: none;
285
285
}
286
286
287
287
a:hover,
@@ -290,8 +290,8 @@ import logo from '../assets/img/logo.svg'
290
290
.has-dropdown > button:hover,
291
291
.has-dropdown > button:focus {
292
292
text-decoration: underline;
293
- text-decoration-thickness: 1px;
294
293
text-decoration-style: wavy;
294
+ text-decoration-thickness: 1px;
295
295
text-underline-offset: 7px;
296
296
}
297
297
@@ -317,8 +317,8 @@ import logo from '../assets/img/logo.svg'
317
317
a,
318
318
button {
319
319
display: block;
320
- width: 100%;
321
320
padding: 0.5rem 0;
321
+ width: 100%;
322
322
}
323
323
}
324
324
@@ -329,9 +329,9 @@ import logo from '../assets/img/logo.svg'
329
329
display: flex;
330
330
align-items: center;
331
331
gap: 0.5rem;
332
- padding: 0;
333
332
margin-top: -1px;
334
333
border: none;
334
+ padding: 0;
335
335
color: var(--action-color);
336
336
337
337
&:hover {
@@ -343,20 +343,20 @@ import logo from '../assets/img/logo.svg'
343
343
}
344
344
345
345
&::after {
346
- content: '';
347
- width: 0.85rem;
348
- height: 0.75em;
346
+ transform: rotate(135deg);
349
347
margin-top: -0.25rem;
350
- border-style: solid;
351
348
border-width: 0.2em 0.2em 0 0;
349
+ border-style: solid;
352
350
border-color: var(--action-color);
353
- transform: rotate(135deg);
351
+ width: 0.85rem;
352
+ height: 0.75em;
353
+ content: '';
354
354
}
355
355
356
356
&.show {
357
357
&::after {
358
- margin-top: 0.25rem;
359
358
transform: rotate(-45deg);
359
+ margin-top: 0.25rem;
360
360
}
361
361
362
362
~ ul {
@@ -370,48 +370,48 @@ import logo from '../assets/img/logo.svg'
370
370
ul {
371
371
display: none;
372
372
position: absolute;
373
- z-index: 100;
374
- min-width: 260px;
375
373
top: 125%;
376
374
right: 0;
377
375
bottom: auto;
378
376
left: 0;
379
- padding: 1rem;
380
- background-color: var(--neutral-background);
381
- border: 2px solid black;
377
+ z-index: 100;
382
378
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
379
+ border: 2px solid black;
380
+ background-color: var(--neutral-background);
381
+ padding: 1rem;
382
+ min-width: 260px;
383
383
}
384
384
}
385
- }
386
385
387
- .darkmode-toggle {
388
- padding: 0 ;
389
- border: none ;
386
+ .darkmode-toggle {
387
+ border: none ;
388
+ padding: 0 ;
390
389
391
- .icon {
392
- inline-size: 30px ;
393
- block -size: 30px;
394
- margin-top: 4px ;
395
- }
390
+ .icon {
391
+ margin-top: 4px ;
392
+ inline -size: 30px;
393
+ block-size: 30px ;
394
+ }
396
395
397
- svg path {
398
- fill: var(--action-color);
399
- }
396
+ svg path {
397
+ fill: var(--action-color);
398
+ }
400
399
401
- &:hover {
402
- box-shadow: none;
400
+ &:hover {
401
+ box-shadow: none;
403
402
404
- svg path {
405
- fill: var(--action-color-state);
403
+ svg path {
404
+ fill: var(--action-color-state);
405
+ }
406
406
}
407
- }
408
407
409
- &:focus {
410
- @include outline;
408
+ &:focus {
409
+ @include outline;
411
410
412
- &:not(:focus-visible) {
413
- outline: none;
414
- box-shadow: none;
411
+ &:not(:focus-visible) {
412
+ outline: none;
413
+ box-shadow: none;
414
+ }
415
415
}
416
416
}
417
417
}
0 commit comments