Skip to content

Commit 2e945e0

Browse files
Vertically align submenu chevron with first line of text
Also alphabetically organise SCSS
1 parent 68b8036 commit 2e945e0

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

assets-src/styles/sass/60-advanced-components/_navigation.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@
328328
text-decoration: none;
329329

330330
@include mq($max-width) {
331-
align-items: center;
331+
align-items: flex-start;
332332
display: inline-flex;
333333
padding-inline: rem(2);
334334
width: auto;
@@ -340,8 +340,9 @@
340340
border-style: solid;
341341
border-width: 0 rem(4) rem(4) 0;
342342
content: '';
343-
inline-size: rem(16);
344343
flex: 0 0 auto;
344+
inline-size: rem(16);
345+
margin-block-start: rem(6);
345346
margin-inline-end: rem(16);
346347
transform: rotate(-45deg);
347348
}

public/dist/assets/styles/advanced.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ br {
634634
}
635635
@media screen and (min-width: 70em) {
636636
.global-nav__inner .nav__submenu li a {
637-
align-items: center;
637+
align-items: flex-start;
638638
display: inline-flex;
639639
padding-inline: 0.125rem;
640640
width: auto;
@@ -645,8 +645,9 @@ br {
645645
border-style: solid;
646646
border-width: 0 0.25rem 0.25rem 0;
647647
content: "";
648-
inline-size: 1rem;
649648
flex: 0 0 auto;
649+
inline-size: 1rem;
650+
margin-block-start: 0.375rem;
650651
margin-inline-end: 1rem;
651652
transform: rotate(-45deg);
652653
}

0 commit comments

Comments
 (0)