Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 32 additions & 7 deletions assets/_scss/_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,29 @@
}
}
}

footer .wp-block-navigation .wp-block-navigation__submenu-container {
width: 100%;

.wp-block-navigation-item {

.wp-block-navigation-item a:not(.wp-element-button),
.wp-block-navigation-submenu a:not(.wp-element-button),
.wp-block-navigation-submenu button.wp-block-navigation-item__content,
.wp-block-pages-list__item button.wp-block-navigation-item__content {
padding-top: .25rem;
padding-bottom: .25rem;
}
}
}

/******************************************************
* Navigation Modal Styles
*/
.has-modal-open {
:where(.wp-block-navigation__container, .wp-block-page-list) {
--wp--style--block-gap: 0;

gap: 0;
&,
li,
li .wp-block-navigation-item__content {
Expand Down Expand Up @@ -201,16 +216,21 @@
.wp-block-navigation.is-vertical {
:where(.wp-block-navigation__container, .wp-block-page-list) {
--wp--style--block-gap: 0;
gap: 0;
gap: inherit;
width: 100%;
}

> .wp-block-navigation-item {
width: 100%;
display: block;
box-sizing: border-box;
}

.items-justified-right .wp-block-navigation-item {
text-align: end;
}

.wp-block-navigation-item {
width: initial;
display: block;
box-sizing: border-box;

Expand All @@ -223,19 +243,24 @@
}
}

.wp-block-navigation-item {
position: relative;
}

.wp-block-navigation__submenu-container {
display: block;
height: auto;
width: 100%;
position: relative;
position: absolute;
opacity: 1;
visibility: visible;
background: none;
visibility: hidden;
color: initial;
transition: opacity .1s linear;
}

@media (min-width: 782px) {
.has-child .wp-block-navigation__submenu-container {
left: 0;
}
}
}
}
2 changes: 2 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ GitHub : https://github.com/vektor-inc/x-t9

1.28.0
[ Specification Change ] Some measurement units have been removed.
[ Design Tuning ] Adjustment when using submenus in core block navigation.
[ Design Bug Fix ] Fixed a bug where the core block navigation's gap was not being applied.
[ Design Bug Fix ] Fix an issue where the CSS is not applied when the navigation is set to always display.
[ Design Bug Fix ] Add margin to pagination previous and next buttons.

Expand Down