Skip to content

Commit

Permalink
Make the toolbar stack on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
Joen Asmussen authored and youknowriad committed Oct 24, 2017
1 parent a8ac513 commit 2328f9e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions editor/block-toolbar/style.scss
Expand Up @@ -7,6 +7,29 @@
border: none;
border-left: 1px solid $light-gray-500;
}

// this should probably have its own class
> div:not( .editor-block-toolbar__mobile-tools ) {
display: flex;
}

// stacked toolbar
position: absolute;
top: $header-height;
left: 0;
right: 0;
background: $white;
border-bottom: 1px solid $light-gray-500;

// merge toolbars after this breakpoint
@include break-large { // we should try and lower this breakpoint through an ellipsis overflow feature
padding-left: $item-spacing;
position: static;
left: auto;
right: auto;
background: none;
border-bottom: none;
}
}

.editor-block-toolbar .editor-block-switcher {
Expand Down

0 comments on commit 2328f9e

Please sign in to comment.