Skip to content

Commit

Permalink
Remove unused layout stylesheet
Browse files Browse the repository at this point in the history
Also adjust the bottom block offset at which the toolbar unsticks.
  • Loading branch information
jasmussen committed May 9, 2017
1 parent 8751c59 commit e9ea947
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
9 changes: 4 additions & 5 deletions editor/layout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ import classnames from 'classnames';
/**
* Internal dependencies
*/
import './style.scss';
import Header from '../header';
import Sidebar from '../sidebar';
import TextEditor from '../modes/text-editor';
import VisualEditor from '../modes/visual-editor';
import Header from 'header';
import Sidebar from 'sidebar';
import TextEditor from 'modes/text-editor';
import VisualEditor from 'modes/visual-editor';

function Layout( { mode, isSidebarOpened } ) {
const className = classnames( 'editor-layout', {
Expand Down
3 changes: 0 additions & 3 deletions editor/layout/style.scss

This file was deleted.

6 changes: 3 additions & 3 deletions editor/modes/visual-editor/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
display: flex;
position: sticky;
z-index: 1;
margin-top: -46px - $item-spacing; // 46 is toolbar height
margin-bottom: $item-spacing + 100px;
margin-top: -46px - $item-spacing; // 46 is toolbar height
margin-bottom: $item-spacing + 50px; // 50px is the offset from the bottom of the selected block where it stops sticking

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

Expand All @@ -87,7 +87,7 @@
}

.editor-visual-editor__block-controls + div {
margin-top: -100px;
margin-top: -50px;

// prevent collapsing margins between the block and the toolbar
&:before {
Expand Down

0 comments on commit e9ea947

Please sign in to comment.