Skip to content

Commit

Permalink
Make color variations fit in a bit better visually (WordPress#61617)
Browse files Browse the repository at this point in the history
* Use smaller placement

* remove border radius

* fix scrollbars

* add the border-radius to the previews

---------

Co-authored-by: Ben Dwyer <[email protected]>
Co-authored-by: richtabor <[email protected]>
Co-authored-by: scruffian <[email protected]>
Co-authored-by: jasmussen <[email protected]>
Co-authored-by: youknowriad <[email protected]>
Co-authored-by: jameskoster <[email protected]>
Co-authored-by: bgardner <[email protected]>
Co-authored-by: annezazu <[email protected]>
Co-authored-by: hbhalodia <[email protected]>
  • Loading branch information
10 people authored and carstingaxion committed Jun 4, 2024
1 parent 4d6519a commit 97dea7d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion packages/edit-site/src/components/global-styles/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
}

.edit-site-global-styles-preview__iframe {
border-radius: $radius-block-ui + 1px; // Visually resembles the $radius-block-ui.
max-width: 100%;
display: block;
width: 100%;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,18 @@
border-radius: $radius-block-ui;
outline: $border-width solid rgba($black, 0.15);
outline-offset: -$border-width;
overflow: hidden;
position: relative;
// Add the same transition that block style variations and other buttons have.
transition: outline 0.1s linear;
@include reduce-motion("transition");

&.is-pill {
height: $button-size-next-default-40px;
border-radius: 100px;
overflow: hidden;
height: $button-size-compact;

.block-editor-iframe__scale-container {
overflow: hidden;
}
}
}

Expand Down

0 comments on commit 97dea7d

Please sign in to comment.