Skip to content

Commit

Permalink
Fix regression in columns.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joen Asmussen authored and jasmussen committed Jun 4, 2018
1 parent c127178 commit 5887ec5
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions core-blocks/columns/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
// This is sort of an experiment at making sure the editor looks as much like the end result as possible
// Potentially the rules here can apply to all nested blocks and enable stacking, in which case it should be moved elsewhere
.wp-block-columns .editor-block-list__layout {
margin-left: 0;
margin-right: 0;

&:first-child {
margin-left: -$block-padding;
}
Expand All @@ -15,16 +18,6 @@
}
}

// Wide: show no left/right margin on wide, so they stack with the column side UI
.editor-block-list__block[data-align="wide"] .wp-block-columns .editor-block-list__layout {
&:first-child {
margin-left: 0;
}
&:last-child {
margin-right: 0;
}
}

// Fullwide: show margin left/right to ensure there's room for the side UI
// This is not a 1:1 preview with the front-end where these margins would presumably be zero
// @todo this could be revisited, by for example showing this margin only when the parent block was selected first
Expand Down

0 comments on commit 5887ec5

Please sign in to comment.