-
Notifications
You must be signed in to change notification settings - Fork 2
コアブロックのナビゲーションメニューの縦並び時の不具合修正 #245
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
Changes from 9 commits
8eacc80
5b6bae9
ab45ab3
6e591cb
3b1c977
e4ec3ec
3b19116
2aa3f82
3def443
a062ecf
c04b354
59ca82f
7ddf10e
153ed68
9c0c574
d066dce
54f754c
5be2534
42e5366
06fd940
1a2aa2b
15007c4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -105,13 +105,22 @@ | |
} | ||
} | ||
|
||
:where(.wp-block-navigation .wp-block-navigation__submenu-container) { | ||
& .wp-block-navigation-itema: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: .5em 1em; | ||
|
||
} | ||
} | ||
|
||
/****************************************************** | ||
* 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 { | ||
|
@@ -187,34 +196,40 @@ | |
*/ | ||
.wp-block-navigation.is-vertical { | ||
:where(.wp-block-navigation__container, .wp-block-page-list) { | ||
--wp--style--block-gap: 0; | ||
gap: 0; | ||
// --wp--style--block-gap: 0; | ||
// gap: 0; | ||
|
||
width: 100%; | ||
} | ||
|
||
.wp-block-navigation-item { | ||
> .wp-block-navigation-item { | ||
width: 100%; | ||
display: block; | ||
box-sizing: border-box; | ||
|
||
a { | ||
> a { | ||
padding: 0; | ||
} | ||
} | ||
|
||
.wp-block-navigation-item { | ||
display: flex; | ||
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; | ||
} | ||
} | ||
} | ||
} |
Uh oh!
There was an error while loading. Please reload this page.