diff --git a/assets/stylesheets/_breakpoints.scss b/assets/stylesheets/_breakpoints.scss index 57ec965a73eca..020b945b1d5e9 100644 --- a/assets/stylesheets/_breakpoints.scss +++ b/assets/stylesheets/_breakpoints.scss @@ -5,6 +5,8 @@ // Most used breakpoints $break-huge: 1440px; $break-wide: 1280px; +$break-xlarge: 1080px; +$break-large: 960px; // admin sidebar auto folds $break-large: 960px; // admin sidebar auto folds $break-medium: 782px; // adminbar goes big $break-small: 600px; diff --git a/assets/stylesheets/_mixins.scss b/assets/stylesheets/_mixins.scss index 9e14930dad1c4..3cbfe6b3a0441 100644 --- a/assets/stylesheets/_mixins.scss +++ b/assets/stylesheets/_mixins.scss @@ -14,6 +14,12 @@ } } +@mixin break-xlarge() { + @media (min-width: #{ ($break-xlarge) }) { + @content; + } +} + @mixin break-large() { @media (min-width: #{ ($break-large) }) { @content; diff --git a/packages/edit-post/src/components/header/header-toolbar/style.scss b/packages/edit-post/src/components/header/header-toolbar/style.scss index 526ffed155968..02410b24407a5 100644 --- a/packages/edit-post/src/components/header/header-toolbar/style.scss +++ b/packages/edit-post/src/components/header/header-toolbar/style.scss @@ -50,7 +50,7 @@ } // Move toolbar into top Editor Bar. - @include break-large { + @include break-xlarge { padding-left: $grid-size; position: static; left: auto; @@ -64,11 +64,11 @@ } .editor-block-toolbar { - margin: -9px 0; + margin: -($grid-size + $border-width) 0; } .editor-block-toolbar .components-toolbar { - padding: 9px; + padding: ($grid-size + $border-width + $border-width) $grid-size-small ($grid-size + $border-width); } } }