Skip to content

Commit

Permalink
Additional fixes to icon placement and paddings
Browse files Browse the repository at this point in the history
  • Loading branch information
khleomix committed Sep 30, 2024
1 parent d371129 commit 5041779
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions assets/scss/blocks/core/navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,13 @@

.wp-block-navigation__responsive-container {
&.is-menu-open {

.wp-block-navigation__responsive-container-close {
position: absolute;
right: var(--wp--preset--spacing--20);
top: var(--wp--preset--spacing--20);
}

.wp-block-navigation__responsive-container-content {
.wp-block-navigation-item,
.wp-block-navigation__container,
Expand All @@ -201,6 +208,10 @@
width: 100%;
}

.wp-block-navigation__container {
padding: var(--wp--preset--spacing--20);
}

.wp-block-navigation-item__content {
display: block;
padding: 0;
Expand All @@ -221,6 +232,9 @@

.wp-block-navigation-item__content {
color: var(--wp--custom--navigation--link);
margin-left: var(--wp--preset--spacing--20);
padding-left: 0;
width: calc(100% - var(--wp--preset--spacing--20));

&:hover::before,
&:hover::after {
Expand All @@ -244,6 +258,12 @@

/* Mobile only menu */
@include responsive-max(833px) {
.is-root-container .header-container,
.site-header .header-container {
padding-left: 0 !important; /* stylelint-disable-line declaration-no-important */
padding-right: 0 !important; /* stylelint-disable-line declaration-no-important */
}

.wp-block-navigation__container.is-responsive {
width: 100%;
}
Expand Down

0 comments on commit 5041779

Please sign in to comment.