Skip to content

Commit

Permalink
Adjust units and style
Browse files Browse the repository at this point in the history
  • Loading branch information
richtabor committed Aug 1, 2023
1 parent 16f95a8 commit 36f2199
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/components/src/snackbar/style.scss
Original file line number Diff line number Diff line change
@@ -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;
Expand All @@ -20,17 +22,15 @@
}

&: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 {
cursor: default;
}

.components-snackbar__content-with-icon {
margin-left: 24px;
margin-left: $grid-unit-30;
}

.components-snackbar__icon {
Expand All @@ -40,7 +40,7 @@
}

.components-snackbar__dismiss-button {
margin-left: 32px;
margin-left: $grid-unit-30;
cursor: pointer;
}
}
Expand Down Expand Up @@ -91,5 +91,5 @@

.components-snackbar-list__notice-container {
position: relative;
padding-top: 8px;
padding-top: $grid-unit-10;
}

0 comments on commit 36f2199

Please sign in to comment.