-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Videomaker: Navigation styles #4876
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
54d842f
Videomaker: center nav items
mikachan c75b7c5
Videomaker: remove uppercase from nav block
mikachan 96924f5
Videomaker: center social links
mikachan bcde168
Videomaker: add current-menu-item styles
mikachan fc24bb5
Videomaker: add underline to parent menu item
mikachan 1560b31
Videomaker: increase nav spacing
mikachan 335c421
Videomaker: tweak spacing again
mikachan 546054c
Videomaker: style current menu item
mikachan 60a07e2
Videomaker: fix submenu centering
mikachan 6b82343
Videomaker: make all pattern navs uppercase
mikachan 4721cba
Blockbase: Remove ! important rules from navigation CSS
scruffian 969a84a
Always show submenu items
scruffian 479f7a6
Remove another ! important
scruffian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this for testing, but I do think it looks better too. What do you think @kjellr ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think this can use the standard block style. 👍