Skip to content

Commit

Permalink
Adjust borders on gallery to prevent overlap (#27312)
Browse files Browse the repository at this point in the history
* Adjusts borders on gallery to prevent overlap

* Iterates img selects

* Whitespace clean

* Removes relative position

* Removes comments

* Removes comment

* Removes rounding that wasn't taking effect

* Iterates CSS
  • Loading branch information
karmatosed authored Jan 15, 2021
1 parent 0bb4f49 commit c386782
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions packages/block-library/src/gallery/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,18 @@ figure.wp-block-gallery {
}

figure.is-selected {
box-shadow: 0 0 0 $border-width $white, 0 0 0 3px var(--wp-admin-theme-color);
border-radius: $radius-block-ui;
outline: 2px solid transparent;

img {
border-radius: $radius-block-ui;
&::before {
box-shadow: 0 0 0 $border-width $white inset, 0 0 0 3px var(--wp-admin-theme-color) inset;
content: "";
// Shown in Windows 10 high contrast mode.
outline: 2px solid transparent;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 1;
}
}

Expand Down

0 comments on commit c386782

Please sign in to comment.