Skip to content

Commit

Permalink
wporg-support: Patch some styles broken by embedded block editor.
Browse files Browse the repository at this point in the history
See: Automattic/blocks-everywhere#110

git-svn-id: https://meta.svn.wordpress.org/sites/trunk@12342 74240141-8908-4e6f-9713-ba540dce6ec7
  • Loading branch information
StevenDufresne committed Dec 16, 2022
1 parent 79bf56e commit 56de9c5
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

// See: https://github.com/Automattic/blocks-everywhere/issues/110
.wp-block-navigation__responsive-close,
.wp-block-navigation__responsive-container {
pointer-events: unset !important;
}

.wp-block-navigation:not(.is-selected):not(.has-child-selected) .has-child:hover>.wp-block-navigation__submenu-container {
opacity: 1;
visibility: unset;
}

.wp-block-navigation-item .wp-block-navigation-item__content {
cursor: pointer;
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@
--------------------------------------------------------------*/
@import "modules/wporg-header";

/*--------------------------------------------------------------
# Blocks Hotfix
--------------------------------------------------------------*/
@import "modules/blocks-everywhere-hotfix";

/*--------------------------------------------------------------
# Site
--------------------------------------------------------------*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2884,6 +2884,23 @@ p a:hover {
padding: 10px 15px;
}

/*--------------------------------------------------------------
# Blocks Hotfix
--------------------------------------------------------------*/
.wp-block-navigation__responsive-close,
.wp-block-navigation__responsive-container {
pointer-events: unset !important;
}

.wp-block-navigation:not(.is-selected):not(.has-child-selected) .has-child:hover > .wp-block-navigation__submenu-container {
opacity: 1;
visibility: unset;
}

.wp-block-navigation-item .wp-block-navigation-item__content {
cursor: pointer;
}

/*--------------------------------------------------------------
# Site
--------------------------------------------------------------*/
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

0 comments on commit 56de9c5

Please sign in to comment.