From 36f219951327a59caa248cf19d24425c8701f820 Mon Sep 17 00:00:00 2001 From: Rich Tabor Date: Tue, 1 Aug 2023 13:41:02 -0400 Subject: [PATCH] Adjust units and style --- packages/components/src/snackbar/style.scss | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/components/src/snackbar/style.scss b/packages/components/src/snackbar/style.scss index 9e9acebb635bf4..75d844d659a5da 100644 --- a/packages/components/src/snackbar/style.scss +++ b/packages/components/src/snackbar/style.scss @@ -1,11 +1,13 @@ .components-snackbar { font-family: $default-font; font-size: $default-font-size; + background: rgba($black, 0.85); background-color: $gray-900; + backdrop-filter: blur($grid-unit-20) saturate(180%); border-radius: $radius-block-ui; - box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); + box-shadow: $shadow-popover; color: $white; - padding: 16px 24px; + padding: $grid-unit-15 ($grid-unit-05 * 5); width: 100%; max-width: 600px; box-sizing: border-box; @@ -20,9 +22,7 @@ } &:focus { - box-shadow: - 0 0 0 1px $white, - 0 0 0 3px $components-color-accent; + box-shadow: inset 0 0 0 1px $white, 0 0 0 var(--wp-admin-border-width-focus) $components-color-accent; } &.components-snackbar-explicit-dismiss { @@ -30,7 +30,7 @@ } .components-snackbar__content-with-icon { - margin-left: 24px; + margin-left: $grid-unit-30; } .components-snackbar__icon { @@ -40,7 +40,7 @@ } .components-snackbar__dismiss-button { - margin-left: 32px; + margin-left: $grid-unit-30; cursor: pointer; } } @@ -91,5 +91,5 @@ .components-snackbar-list__notice-container { position: relative; - padding-top: 8px; + padding-top: $grid-unit-10; }