Skip to content

Commit

Permalink
Fix: Block paddings on the widget screen. (#16944)
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta authored Aug 10, 2019
1 parent be95231 commit 399e5e1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions assets/stylesheets/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,6 @@ $block-bg-padding--h: $block-side-ui-width + $block-side-ui-clearance; // paddin
// Buttons & UI Widgets
$radius-round-rectangle: 4px;
$radius-round: 50%;

// Widgets screen
$widget-area-width: 700px;
14 changes: 13 additions & 1 deletion packages/edit-widgets/src/components/widget-area/style.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
.edit-widgets-widget-area {
max-width: $content-width;
max-width: $widget-area-width;
margin: 0 auto 30px;

// Reduce padding inside widget areas
.block-editor-block-list__layout {
padding-left: 0;
padding-right: 0;
}
// By default the default block appender inserter has a negative position,
// but given that on the widget screen we have 0 padding we need to remove the negative position.
.block-editor-default-block-appender .block-editor-inserter,
.block-editor-block-list__empty-block-inserter {
left: 0;
}
}
.edit-widgets-main-block-list {
padding-top: $block-toolbar-height + 2 * $grid-size;
Expand Down

0 comments on commit 399e5e1

Please sign in to comment.