From f3d972b9ff0bfc9724f37b10f33bf3c90d577cbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albert=20Juh=C3=A9=20Lluveras?= Date: Fri, 25 Nov 2022 13:17:01 +0100 Subject: [PATCH 1/5] Remove unused SCSS variables --- assets/css/abstracts/_colors.scss | 5 ----- assets/css/abstracts/_variables.scss | 3 --- 2 files changed, 8 deletions(-) diff --git a/assets/css/abstracts/_colors.scss b/assets/css/abstracts/_colors.scss index 3780b2aa9e7..0c412d49367 100644 --- a/assets/css/abstracts/_colors.scss +++ b/assets/css/abstracts/_colors.scss @@ -2,15 +2,10 @@ @import "node_modules/@automattic/color-studio/dist/color-variables"; // Bright colors -$no-stock-color: $alert-red; -$low-stock-color: $alert-yellow; -$in-stock-color: $alert-green; $discount-color: $alert-green; -$placeholder-color: var(--global--color-primary, $gray-200); $input-border-gray: #50575e; $input-border-dark: rgba(255, 255, 255, 0.4); -$input-disabled-dark: rgba(255, 255, 255, 0.3); $controls-border-dark: rgba(255, 255, 255, 0.6); $input-text-active: #2b2d2f; $input-placeholder-dark: rgba(255, 255, 255, 0.6); diff --git a/assets/css/abstracts/_variables.scss b/assets/css/abstracts/_variables.scss index d54c9d6235a..b4ec743e378 100644 --- a/assets/css/abstracts/_variables.scss +++ b/assets/css/abstracts/_variables.scss @@ -7,6 +7,3 @@ $gap: $grid-unit-20; $gap-small: $grid-unit-15; $gap-smaller: $grid-unit-10; $gap-smallest: $grid-unit-05; - -// Cart block -$cart-image-width: 5rem; From 871f7f1b4e7c627ac45baaab046911282d0ec6ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albert=20Juh=C3=A9=20Lluveras?= Date: Fri, 25 Nov 2022 13:17:15 +0100 Subject: [PATCH 2/5] Unify mixins style --- assets/css/abstracts/_mixins.scss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/css/abstracts/_mixins.scss b/assets/css/abstracts/_mixins.scss index 535b14b221f..09c8e597520 100644 --- a/assets/css/abstracts/_mixins.scss +++ b/assets/css/abstracts/_mixins.scss @@ -192,7 +192,7 @@ $fontSizes: ( } // Add support for content alignment classes -@mixin with-alignment { +@mixin with-alignment() { // Apply max-width to floated items that have no intrinsic width &.alignleft, &.alignright { From d69c0011aecc60a5a1bc40e7ec679b3252aba908 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albert=20Juh=C3=A9=20Lluveras?= Date: Fri, 25 Nov 2022 13:17:45 +0100 Subject: [PATCH 3/5] Remove legacy editor styles --- assets/css/editor.scss | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/assets/css/editor.scss b/assets/css/editor.scss index 20398312f50..c9ac8ffcb9a 100644 --- a/assets/css/editor.scss +++ b/assets/css/editor.scss @@ -1,15 +1,3 @@ -// Hack to hide preview overflow. -.editor-block-preview__content { - overflow: hidden; -} - -// Align the block icons in edit mode -.components-placeholder__label .gridicon, -.components-placeholder__label .material-icon { - margin-right: 1ch; - fill: currentColor; -} - // Remove the list styling, which is added back by core GB styles. .editor-styles-wrapper { .wc-block-grid { From c9fe28faae2e975a21818f83803776e681e984fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albert=20Juh=C3=A9=20Lluveras?= Date: Fri, 25 Nov 2022 13:18:08 +0100 Subject: [PATCH 4/5] Move SearchListControl styles into its component --- assets/css/editor.scss | 13 ------------- .../search-list-control/style.scss | 3 +++ 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/assets/css/editor.scss b/assets/css/editor.scss index c9ac8ffcb9a..301a9562dce 100644 --- a/assets/css/editor.scss +++ b/assets/css/editor.scss @@ -49,19 +49,6 @@ svg.wc-block-editor-components-block-icon--sparkles path { } } -// Selectors with extra specificity to override some editor styles. -.woocommerce-search-list__list.woocommerce-search-list__list { - box-sizing: border-box; - margin: 0; - padding: 0; -} - -.woocommerce-search-list__selected.woocommerce-search-list__selected > ul { - list-style: none; - margin: 0; - padding: 0; -} - .theme-twentytwenty { .wp-block { .wc-block-grid__product-title, diff --git a/assets/js/editor-components/search-list-control/style.scss b/assets/js/editor-components/search-list-control/style.scss index 2818ce0027f..93e98c181e4 100644 --- a/assets/js/editor-components/search-list-control/style.scss +++ b/assets/js/editor-components/search-list-control/style.scss @@ -25,6 +25,8 @@ ul { list-style: none; + margin: 0; + padding: 0; li { float: left; @@ -44,6 +46,7 @@ .woocommerce-search-list__list { border: 1px solid $gray-200; + margin: 0; padding: 0; max-height: 17em; overflow-x: hidden; From ff40c08aebadd687f44262c1d9945af6e8ed8d25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albert=20Juh=C3=A9=20Lluveras?= Date: Fri, 25 Nov 2022 13:18:26 +0100 Subject: [PATCH 5/5] Remove unused styles --- assets/css/style.scss | 9 --------- 1 file changed, 9 deletions(-) diff --git a/assets/css/style.scss b/assets/css/style.scss index e62eb27afaf..00430e66f0c 100644 --- a/assets/css/style.scss +++ b/assets/css/style.scss @@ -1,12 +1,3 @@ -.wc-block-link-button { - @include link-button(); -} - -.wc-block-suspense-placeholder { - @include placeholder(); - @include force-content(); -} - // These styles are for the server side rendered product grid blocks. .wc-block-grid__products .wc-block-grid__product-image { text-decoration: none;