Skip to content

Commit

Permalink
Fix columns block style on the frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgefilipecosta committed Jun 4, 2018
1 parent 94889af commit 17421db
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
15 changes: 15 additions & 0 deletions core-blocks/columns/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,18 @@
margin-right: $block-side-ui-padding;
}
}

.wp-block-columns {
display: block;

.editor-inner-blocks {
display: grid;
grid-auto-flow: dense;
}

@for $i from 2 through 6 {
&.has-#{ $i }-columns .editor-inner-blocks {
grid-auto-columns: #{ 100% / $i };
}
}
}
9 changes: 3 additions & 6 deletions core-blocks/columns/style.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
.wp-block-columns {

.editor-inner-blocks {
display: grid;
grid-auto-flow: dense;
}
display: grid;
grid-auto-flow: dense;

@for $i from 2 through 6 {
&.has-#{ $i }-columns .editor-inner-blocks {
&.has-#{ $i }-columns {
grid-auto-columns: #{ 100% / $i };
}
}
Expand Down

0 comments on commit 17421db

Please sign in to comment.