From 37ccb55641012694800610eb0216a6e9e9670628 Mon Sep 17 00:00:00 2001 From: Andrew Duthie Date: Mon, 12 Mar 2018 11:06:02 -0400 Subject: [PATCH] Revert "Default to content-box box-sizing for the metabox area." (#5569) --- components/form-toggle/style.scss | 1 - components/menu-items/style.scss | 1 - components/panel/style.scss | 1 - edit-post/assets/stylesheets/main.scss | 4 ++++ edit-post/components/header/style.scss | 1 - edit-post/components/layout/style.scss | 1 - edit-post/components/sidebar/last-revision/style.scss | 1 - edit-post/components/sidebar/style.scss | 1 - edit-post/components/text-editor/style.scss | 4 ---- edit-post/components/visual-editor/style.scss | 4 ---- editor/components/block-inspector/style.scss | 1 - 11 files changed, 4 insertions(+), 16 deletions(-) diff --git a/components/form-toggle/style.scss b/components/form-toggle/style.scss index c3a9b24af215a3..c0284a6d4a8326 100644 --- a/components/form-toggle/style.scss +++ b/components/form-toggle/style.scss @@ -38,7 +38,6 @@ $toggle-border-width: 2px; border: 2px solid $dark-gray-500; background: $white; transition: 0.1s transform ease; - box-sizing: border-box; } &__input:focus { diff --git a/components/menu-items/style.scss b/components/menu-items/style.scss index b4c6308cf21525..91737ac3197f8d 100644 --- a/components/menu-items/style.scss +++ b/components/menu-items/style.scss @@ -1,7 +1,6 @@ .components-menu-items__group { width: 100%; padding: 10px; - box-sizing: border-box; } .components-menu-items__group-label { diff --git a/components/panel/style.scss b/components/panel/style.scss index c63cb2d5983bb5..649323811e1d4e 100644 --- a/components/panel/style.scss +++ b/components/panel/style.scss @@ -20,7 +20,6 @@ .components-panel__body { border-top: 1px solid $light-gray-500; border-bottom: 1px solid $light-gray-500; - box-sizing: border-box; h3 { margin: 0 0 .5em 0; diff --git a/edit-post/assets/stylesheets/main.scss b/edit-post/assets/stylesheets/main.scss index 6256db28545da2..3d840ba7b1a0ce 100644 --- a/edit-post/assets/stylesheets/main.scss +++ b/edit-post/assets/stylesheets/main.scss @@ -82,6 +82,10 @@ body.gutenberg-editor-page { } .gutenberg { + * { + box-sizing: border-box; + } + select { font-size: $default-font-size; color: $dark-gray-500; diff --git a/edit-post/components/header/style.scss b/edit-post/components/header/style.scss index f5649d91c8289d..33992c96bf8b66 100644 --- a/edit-post/components/header/style.scss +++ b/edit-post/components/header/style.scss @@ -10,7 +10,6 @@ z-index: z-index( '.edit-post-header' ); left: 0; right: 0; - box-sizing: border-box; // mobile edgecase for toolbar top: 0; diff --git a/edit-post/components/layout/style.scss b/edit-post/components/layout/style.scss index e668359aafeba5..0f6b2b29dfcae0 100644 --- a/edit-post/components/layout/style.scss +++ b/edit-post/components/layout/style.scss @@ -5,7 +5,6 @@ .edit-post-layout { position: relative; - box-sizing: border-box; .components-notice-list { position: sticky; diff --git a/edit-post/components/sidebar/last-revision/style.scss b/edit-post/components/sidebar/last-revision/style.scss index 5bae1059858bb6..772119aa43d5c0 100644 --- a/edit-post/components/sidebar/last-revision/style.scss +++ b/edit-post/components/sidebar/last-revision/style.scss @@ -5,5 +5,4 @@ .editor-post-last-revision__title { padding: #{ $panel-padding - 3px } $panel-padding; // subtract extra height of dashicon - box-sizing: border-box; } diff --git a/edit-post/components/sidebar/style.scss b/edit-post/components/sidebar/style.scss index 3ef57b9b6a0a00..e5f4cf734f6bdc 100644 --- a/edit-post/components/sidebar/style.scss +++ b/edit-post/components/sidebar/style.scss @@ -10,7 +10,6 @@ color: $dark-gray-500; height: 100vh; overflow: hidden; - box-sizing: border-box; @include break-small() { top: $admin-bar-height-big + $header-height; diff --git a/edit-post/components/text-editor/style.scss b/edit-post/components/text-editor/style.scss index 7020025cc486a4..39e7c8cb1943b6 100644 --- a/edit-post/components/text-editor/style.scss +++ b/edit-post/components/text-editor/style.scss @@ -20,10 +20,6 @@ padding-right: calc( 50% - #{ $text-editor-max-width / 2 } ); } - * { - box-sizing: border-box; - } - .edit-post-post-text-editor__toolbar { width: 100%; max-width: $text-editor-max-width; diff --git a/edit-post/components/visual-editor/style.scss b/edit-post/components/visual-editor/style.scss index 00b0d4de8ecd29..667a5cd0e1fc39 100644 --- a/edit-post/components/visual-editor/style.scss +++ b/edit-post/components/visual-editor/style.scss @@ -22,10 +22,6 @@ & ol { list-style-type: decimal; } - - * { - box-sizing: border-box; - } } .edit-post-visual-editor .editor-block-list__block { diff --git a/editor/components/block-inspector/style.scss b/editor/components/block-inspector/style.scss index 81a0ab36004133..8d2e84af45b98f 100644 --- a/editor/components/block-inspector/style.scss +++ b/editor/components/block-inspector/style.scss @@ -25,7 +25,6 @@ margin-right: 10px; height: 36px; width: 36px; - box-sizing: border-box; } .editor-block-inspector__card-content {