Skip to content

Commit

Permalink
Merge pull request #1035 from WordPress/fix/better-responsive
Browse files Browse the repository at this point in the history
Polish responsive a bit
  • Loading branch information
jasmussen committed Jun 7, 2017
2 parents ef0d297 + d77ed4a commit 5b4f5bb
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
6 changes: 5 additions & 1 deletion editor/block-switcher/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,14 @@
border: 1px solid $light-gray-500;
box-shadow: $shadow-popover;
background-color: $white;
margin-right: 10px;
font-family: $default-font;
font-size: $default-font-size;
line-height: $default-line-height;
margin-right: -1px;

@include break-small() {
margin-right: $item-spacing;
}
}

.editor-block-switcher__toggle {
Expand Down
5 changes: 4 additions & 1 deletion editor/header/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,14 @@
flex-direction: row;
align-items: center;
z-index: z-index( '.editor-header' );
top: $admin-bar-height-big;
left: 0;
right: 0;

top: 0;
position: sticky;

@include break-small() {
top: $admin-bar-height-big;
position: fixed;
}

Expand Down
12 changes: 10 additions & 2 deletions editor/modes/visual-editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@
width: 0;
white-space: nowrap;

top: $header-height + $admin-bar-height-big + $item-spacing;
top: $header-height + $item-spacing;

@include break-small() {
top: $header-height + $admin-bar-height-big + $item-spacing;
}

@include break-medium() {
top: $header-height + $admin-bar-height + $item-spacing;
Expand All @@ -114,7 +118,11 @@

.editor-visual-editor__block-controls .components-toolbar {
display: inline-flex;
margin-right: $item-spacing;
margin-right: -1px;

@include break-small() {
margin-right: $item-spacing;
}
}

.editor-visual-editor__block-controls .editor-block-switcher {
Expand Down

0 comments on commit 5b4f5bb

Please sign in to comment.