Skip to content

Commit

Permalink
Fix small move on opening mobile menu and other nav optimizations (#752)
Browse files Browse the repository at this point in the history
* Wrap long page titels in mobile navigation

* Fix small move on opening mobile menu and other nav optimizations
  • Loading branch information
albig authored Nov 11, 2024
1 parent f6b71a6 commit c3aa716
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions sass/_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
&-light {

.navbar-nav {
align-items: normal;
align-items: center;

>.nav-item {

Expand Down Expand Up @@ -179,8 +179,11 @@
background-size: 30px;
background-position: center;
transition: transform 0.2s ease-in-out;
font-weight: 700;
right: var(--wp--preset--spacing--50);

@include media-breakpoint-up(lg) {
background-size: 24px;
padding: 6px;
}

&.show {
content: "";
Expand Down Expand Up @@ -417,12 +420,17 @@
width: 100%;
margin-left: 10px;

&.collapsing,
&.collapse.show {

li {
text-align: end;
border-top: 1px solid $very-light-gray;
padding-left: 14px;
.navbar-nav {
align-items: normal;

.nav-item {
text-align: end;
border-top: 1px solid $very-light-gray;
padding-left: 24px;
}
}

.dropdown {
Expand All @@ -439,7 +447,8 @@
}

&-item {
justify-content: start;
text-wrap: auto;
text-align: left;
}
}
}
Expand Down

0 comments on commit c3aa716

Please sign in to comment.