Skip to content

Commit

Permalink
Improve the appender inside columns, so it's the same UI as it is on …
Browse files Browse the repository at this point in the history
…mobile.
  • Loading branch information
Joen Asmussen committed Apr 2, 2018
1 parent d60f648 commit 7c8b7be
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions blocks/library/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;
}
}

// Hide appender shortcuts in columns
// @todo This essentially duplicates the mobile styles for the appender component
// It would be nice to be able to use element queries in that component instead https://github.com/tomhodgins/element-queries-spec
.wp-block-columns {
.editor-inserter-with-shortcuts {
display: none;
}

.editor-block-list__empty-block-inserter,
.editor-default-block-appender .editor-inserter {
left: auto;
right: $item-spacing;
}
}
1 change: 1 addition & 0 deletions editor/components/default-block-appender/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ $empty-paragraph-height: $text-editor-font-size * 4;
padding: $block-padding;
height: $empty-paragraph-height;
font-size: $editor-font-size;
font-family: $editor-font;
cursor: text;
width: 100%;
height: $empty-paragraph-height;
Expand Down

0 comments on commit 7c8b7be

Please sign in to comment.