Skip to content

Commit

Permalink
Slightly better ul margin solution
Browse files Browse the repository at this point in the history
  • Loading branch information
dlnr committed Jan 3, 2024
1 parent 76df29a commit 817eb02
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions packages/css/src/components/mega-menu/mega-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@
padding-block: var(--amsterdam-mega-menu-padding-block);
}

.amsterdam-mega-menu .amsterdam-grid__cell {
.amsterdam-heading:not(:first-child) {
padding-block-start: var(--amsterdam-mega-menu-heading-padding-block-start);
}
}

.amsterdam-mega-menu .amsterdam-unordered-list {
column-gap: var(--amsterdam-grid-spacious-gap);
columns: var(--amsterdam-mega-menu-list-column-width, 20rem) auto;
Expand All @@ -21,4 +15,8 @@
&__item {
padding-block-start: var(--amsterdam-mega-menu-list-padding-block-start);
}

&:has(+ .amsterdam-heading) {
margin-block-end: var(--amsterdam-mega-menu-heading-padding-block-start);
}
}

0 comments on commit 817eb02

Please sign in to comment.