Skip to content

Commit

Permalink
Fix overlay clickthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed May 27, 2022
1 parent 0e9d2ab commit e03e27d
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.block-editor-block-list__block.has-block-overlay {
cursor: default;

&::after {
&::before {
content: "";
position: absolute;
top: 0;
Expand All @@ -14,7 +14,11 @@
z-index: z-index(".block-editor-block-list__block.has-block-overlay");
}

&:hover:not(.is-dragging-blocks)::after {
&::after {
content: none;
}

&:hover:not(.is-dragging-blocks)::before {
background: rgba(var(--wp-admin-theme-color--rgb), 0.3);
box-shadow: 0 0 0 $border-width var(--wp-admin-theme-color) inset;
}
Expand All @@ -23,7 +27,7 @@
pointer-events: none;
}

.block-editor-iframe__body.is-zoomed-out &::after {
.block-editor-iframe__body.is-zoomed-out &::before {
// Unfortunately because of the vw unit, this is not always going to be exact
// When the scrollbar is visible, the frame exceeds the canvas by a few pixes.
width: calc(100vw);
Expand Down

0 comments on commit e03e27d

Please sign in to comment.