-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Videomaker: Navigation styles (#4876)
* Videomaker: center nav items * Videomaker: remove uppercase from nav block * Videomaker: center social links * Videomaker: add current-menu-item styles * Videomaker: add underline to parent menu item * Videomaker: increase nav spacing * Videomaker: tweak spacing again * Videomaker: style current menu item * Videomaker: fix submenu centering * Videomaker: make all pattern navs uppercase * Blockbase: Remove ! important rules from navigation CSS * Always show submenu items * Remove another ! important Co-authored-by: Ben Dwyer <[email protected]>
- Loading branch information
Showing
10 changed files
with
91 additions
and
30 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,38 @@ | ||
// Needed until this is merged: https://github.com/WordPress/gutenberg/issues/35040 | ||
.is-vertical.items-justified-right ul.wp-block-navigation__container { | ||
align-items: flex-end; | ||
} | ||
} | ||
|
||
.wp-block-navigation.is-style-blockbase-navigation-improved-responsive { | ||
&.is-responsive .is-menu-open.wp-block-navigation__responsive-container { | ||
.wp-block-navigation__container { | ||
align-items: center; | ||
row-gap: 1rem; | ||
} | ||
|
||
.wp-block-navigation__responsive-container-content { // Needed for specificity to beat the navigation block CSS | ||
.wp-block-navigation-item { | ||
align-items: center; | ||
row-gap: 0.8rem; | ||
|
||
&.current-menu-item > a { | ||
text-decoration: underline; | ||
} | ||
|
||
&.has-child { | ||
.wp-block-navigation__submenu-container { | ||
padding-left: 0; | ||
padding-right: 0; | ||
} | ||
} | ||
} | ||
} | ||
.wp-block-navigation__responsive-container-content { | ||
justify-content: space-between; | ||
} | ||
ul.wp-block-social-links { | ||
justify-content: center; | ||
padding-bottom: calc( var(--wp--custom--gap--vertical) * 2 ); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters