From 406db6277bf965fdcaa7db1d2d84bbbee1a0f697 Mon Sep 17 00:00:00 2001 From: Joen A <1204802+jasmussen@users.noreply.github.com> Date: Tue, 30 Nov 2021 13:11:10 +0100 Subject: [PATCH] Polish unset color indicator. (#36994) --- .../edit-site/src/components/global-styles/style.scss | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/edit-site/src/components/global-styles/style.scss b/packages/edit-site/src/components/global-styles/style.scss index 03ccd754161e6..88ba102544ab1 100644 --- a/packages/edit-site/src/components/global-styles/style.scss +++ b/packages/edit-site/src/components/global-styles/style.scss @@ -49,12 +49,10 @@ height: 24px; width: 24px; padding: 0; - background-image: - repeating-linear-gradient(45deg, $gray-200 25%, transparent 25%, transparent 75%, $gray-200 75%, $gray-200), - repeating-linear-gradient(45deg, $gray-200 25%, transparent 25%, transparent 75%, $gray-200 75%, $gray-200); - background-position: 0 0, 25px 25px; - background-size: calc(2 * 5px) calc(2 * 5px); border: $border-width solid $gray-300; + + // Show a diagonal line (crossed out) for empty swatches. + background: linear-gradient(-45deg, transparent 48%, $gray-300 48%, $gray-300 52%, transparent 52%); } }