This repository was archived by the owner on Feb 17, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 366
BCB + children: use nav block responsive control #3870
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
6f8fb26
Replace responsive logic + styles with the blocks native responsiveness.
jffng 7322967
Pass 'isResponsive' block attribute so that responsive mobile navigat…
pbking ac3c3a6
Style/position mobile navigation open button
pbking 143270a
Styled mobile navigation modal to match theme.
pbking ce20bd3
Further styled and positioned mobile menu block.
pbking 2e04162
Removed unused variable
pbking 0e93e6a
Styled navigation links (submenus)
pbking 834716c
Rebuild child themes
pbking 5c13247
remove unused custom navigation variables
pbking 0c8ad94
compiled with navigation variables removed
pbking f2b9ab8
cleaned up quadrat navigation styles
pbking ae6dc6c
Changed hamburger menu position to match 'close' button
pbking 4087b93
tweak to desktop navigation styles
pbking 5d339b6
Added responsive flag and removed default links for navigation blocks
pbking c5b2189
Added backup solution to mobile nav to quadrat
pbking 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
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,108 +1,23 @@ | ||
| .wp-block-navigation { | ||
| a { | ||
| border-bottom: none; | ||
| } | ||
| .wp-block-navigation-link { | ||
| padding: 0; | ||
| .wp-block-navigation-link__content { | ||
| padding: var(--wp--custom--navigation--padding); | ||
| } | ||
| } | ||
| .wp-block-navigation-link__submenu-icon { | ||
| padding: 0; | ||
| text-indent: -8px; | ||
| } | ||
| .wp-block-navigation__container { | ||
| .has-child { | ||
| .wp-block-navigation-link__container { | ||
| padding: 0; | ||
| border-radius: var(--wp--custom--navigation--submenu--border--radius); | ||
| border-style: var(--wp--custom--navigation--submenu--border--style); | ||
| border-width: var(--wp--custom--navigation--submenu--border--width); | ||
| border-color: var(--wp--custom--navigation--submenu--border--color); | ||
| box-shadow: var(--wp--custom--navigation--submenu--shadow); | ||
|
|
||
| .wp-block-navigation-link__content { | ||
| padding: var(--wp--custom--navigation--submenu--padding); | ||
| } | ||
| } | ||
| body.admin-bar { | ||
| .wp-block-navigation.is-responsive { | ||
| .wp-block-navigation__responsive-container-open { | ||
| top: calc( 46px + 24px); | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
| @include break-mobile { | ||
| header .wp-block-navigation { | ||
| .wp-block-navigation__mobile-menu-open-button, | ||
| .wp-block-navigation__mobile-menu-close-button { | ||
| display:none; | ||
| } | ||
| .wp-block-navigation.is-responsive { | ||
| position: static; | ||
| .wp-block-navigation__responsive-container-open { | ||
| position: absolute; | ||
| top: 24px; | ||
| right: 24px; | ||
| } | ||
| } | ||
|
|
||
| @include break-mobile-only { | ||
| header .wp-block-navigation:not(.show) { | ||
| text-align: right; | ||
| padding-left: var(--wp--custom--margin--horizontal); | ||
| padding-right: var(--wp--custom--margin--horizontal); | ||
|
|
||
| .wp-block-navigation__container { | ||
| display: none; | ||
| } | ||
|
|
||
| .wp-block-navigation__mobile-menu-open-button { | ||
| font-size: var(--wp--custom--navigation--mobile--menu--typography--font-size); | ||
| font-weight: var(--wp--custom--navigation--mobile--menu--typography--font-weight); | ||
| font-family: var(--wp--custom--navigation--mobile--menu--typography--font-family); | ||
| background-color: transparent; | ||
| border: none; | ||
| } | ||
|
|
||
| .wp-block-navigation__mobile-menu-close-button { | ||
| display: none; | ||
| } | ||
| .wp-block-navigation__responsive-container.is-menu-open { | ||
| background-color: var(--wp--custom--color--background); | ||
| color: var(--wp--custom--color--foreground); | ||
| } | ||
|
|
||
| header .wp-block-navigation.show { | ||
| opacity: 1; | ||
| position:absolute; | ||
| top: 0; | ||
| bottom: 0; | ||
| right: 0; | ||
| width: 100%; | ||
|
|
||
| .wp-block-navigation__mobile-menu-close-button { | ||
| display: inline-block; | ||
| position: absolute; | ||
| top: var(--wp--custom--margin--vertical); | ||
| right: var(--wp--custom--margin--horizontal); | ||
| font-size: var(--wp--custom--navigation--mobile--menu--typography--font-size); | ||
| font-weight: var(--wp--custom--navigation--mobile--menu--typography--font-weight); | ||
| font-family: var(--wp--custom--navigation--mobile--menu--typography--font-family); | ||
| background-color: transparent; | ||
| border: none; | ||
| } | ||
|
|
||
| .wp-block-navigation__container { | ||
| background-color: var(--wp--custom--navigation--submenu--color--background); | ||
| flex-direction: column; | ||
| align-items: var(--wp--custom--navigation--mobile--horizontal-alignment); | ||
| justify-content: var(--wp--custom--navigation--mobile--vertical-alignment); | ||
| position:fixed; | ||
| top: 0; | ||
| bottom: 0; | ||
| left: 0; | ||
| right: 0; | ||
| z-index: 99999; | ||
| overflow-y: scroll; | ||
| } | ||
| .wp-block-navigation-link { | ||
| padding: 0; | ||
| .wp-block-navigation-link__content { | ||
| padding: var(--wp--custom--navigation--mobile--padding); | ||
| font-family: var(--wp--custom--navigation--mobile--typography--font-family); | ||
| font-size: var(--wp--custom--navigation--mobile--typography--font-size); | ||
| font-weight: var(--wp--custom--navigation--mobile--typography--font-weight); | ||
| } | ||
| } | ||
| .wp-block-navigation-link__content { | ||
| color: var(--wp--custom--color--foreground) !important; | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.