Skip to content

Commit

Permalink
Use variable based on grid unit for resize handle height
Browse files Browse the repository at this point in the history
  • Loading branch information
stokesman committed Sep 16, 2024
1 parent a7ddcaf commit 9559a2d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/edit-post/src/components/layout/style.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
$resize-handle-height: $grid-unit-30;

.edit-post-meta-boxes-main {
filter: drop-shadow(0 -1px rgba($color: #000, $alpha: 0.133)); // 0.133 = $gray-200 but with alpha.
background-color: $white;
clear: both; // This is seemingly only needed in case the canvas is not iframe’d.

&:not(details) {
padding-top: 23px;
padding-top: $resize-handle-height;
max-height: 100%;
}

Expand Down Expand Up @@ -33,7 +35,7 @@
display: flex;
// The position is absolute by default inline style of ResizableBox.
inset: 0 0 auto 0;
height: 23px;
height: $resize-handle-height;
box-shadow: 0 $border-width $gray-300;

& > button {
Expand Down

0 comments on commit 9559a2d

Please sign in to comment.