Skip to content

Commit

Permalink
Try outlining the iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
stokesman committed Jul 16, 2024
1 parent 1035b1c commit b3e4278
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/block-editor/src/components/iframe/content.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ iframe[name="editor-canvas"].is-zoomed-out {
$inset: var(--wp-block-editor-iframe-zoom-out-inset);
position: relative;
inset: $inset;
outline: calc(1px / #{$scale}) solid rgba($color: #000, $alpha: 0.133); // 0.133 = $gray-200 but with alpha.
transform: scale(#{$scale});
transform-origin: 50% 0;
// Transform scale doesn’t affect the layout size of the element, so counterscale
Expand Down

0 comments on commit b3e4278

Please sign in to comment.