Skip to content

Commit

Permalink
Use flexbox for the inserter layout (#9497)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvanpatten authored and pento committed Sep 3, 2018
1 parent ad9c179 commit c9668e9
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions packages/editor/src/components/block-types-list/style.scss
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@

.editor-block-types-list {
list-style: none;
padding: 2px 0;
overflow: hidden;
display: flex;
flex-wrap: wrap;
}

.editor-block-types-list__list-item {
display: inline;
display: block;
width: 33.33%;
padding: 0 4px;
margin: 0 0 12px;
}

.editor-block-types-list__item {
display: inline-flex;
display: flex;
flex-direction: column;
width: calc(33.3% - 8px);
margin: 0 4px 12px 4px;
width: 100%;
font-size: $default-font-size;
color: $dark-gray-700;
padding: 0;
Expand All @@ -26,7 +29,6 @@
border: $border-width solid transparent;
transition: all 0.05s ease-in-out;
position: relative;
float: left; // This shouldn't be necessary, but without it, IE11 mangles margins.

&:disabled {
@include block-style__disabled();
Expand Down Expand Up @@ -54,6 +56,7 @@
color: currentColor;
}
}

&:active,
&.is-active,
&:focus {
Expand Down Expand Up @@ -83,15 +86,15 @@
}

.editor-block-types-list__item-title {
padding: 4px 2px;
padding: 4px 2px 8px;
}

.editor-block-types-list__item-has-children {
.editor-block-types-list__item-icon {
background: $white;
margin-right: 3px;
margin-bottom: 6px;
padding: 12px 20px 8px;
padding: 9px 20px 9px;
position: relative;
top: -2px;
left: -2px;
Expand Down

0 comments on commit c9668e9

Please sign in to comment.