Skip to content

Commit

Permalink
Merge pull request #2834 from WordPress/fix/toolbar-positioning
Browse files Browse the repository at this point in the history
Fix issues with sticky quick toolbar positioning
  • Loading branch information
jasmussen authored Sep 29, 2017
2 parents db507cd + 55129ad commit e7f1223
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion blocks/library/freeform/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
position: sticky;

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

Expand Down Expand Up @@ -146,6 +146,10 @@
display: block;
}

.freeform-toolbar.has-advanced-toolbar {
margin-top: -85px; /* Pull upwards the classic text toolbar when enabled */
}

.freeform-toolbar div.mce-btn-group {
padding: 0;
margin: 0;
Expand Down
2 changes: 1 addition & 1 deletion editor/modes/visual-editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@
}

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

&.is-appearing-active {
Expand Down

0 comments on commit e7f1223

Please sign in to comment.