Skip to content

Commit

Permalink
Fix wrap of very long menu items (#761)
Browse files Browse the repository at this point in the history
* Fix wrap of very long menu items

* Fix personal header height and dropdown menus
  • Loading branch information
albig authored Nov 12, 2024
1 parent c3aa716 commit c923ce4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
5 changes: 5 additions & 0 deletions sass/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,11 @@ body {
display: flex;
height: auto;
margin-right: 5px;
align-items: center;

@include media-breakpoint-up(md) {
height: 5em;
}
}

> li.menu-item-has-children {
Expand Down
14 changes: 7 additions & 7 deletions sass/_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,7 @@

div.dropdown-menu {
display: block;

margin-top: 54px;

&.show {
margin-top: 4px;
}
top: calc(100% + 8px);

ul {
border-radius: 0;
Expand Down Expand Up @@ -243,6 +238,7 @@
margin-right: 0.5rem;
margin-left: 0.5rem;
text-align: left;
white-space: nowrap;

&:hover {
color: $secondary;
Expand Down Expand Up @@ -430,6 +426,10 @@
text-align: end;
border-top: 1px solid $very-light-gray;
padding-left: 24px;

.nav-link {
white-space: normal;
}
}
}

Expand All @@ -447,7 +447,7 @@
}

&-item {
text-wrap: auto;
white-space: normal;
text-align: left;
}
}
Expand Down

0 comments on commit c923ce4

Please sign in to comment.