Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
emilkowalski committed Jun 10, 2024
1 parent 829fb22 commit 8d716a4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,17 @@
}

:where([data-sonner-toast][data-styled='true']) {
--border-opacity: calc(0.06 - var(--index) * 0.01);
--depth-shadow-opacity: calc(0.03 - var(--index) * 0.01);
padding: 16px;
background: var(--normal-bg);
border: 1px solid var(--normal-border);
color: var(--normal-text);
border-radius: var(--border-radius);
box-shadow: 0 1px 1px -0.5px rgba(0, 0, 0, 0.03), 0 3px 3px -1.5px rgba(0, 0, 0, 0.03),
0 6px 6px -3px rgba(0, 0, 0, 0.03), 0 12px 12px -6px rgba(0, 0, 0, 0.03), 0 24px 24px -12px rgba(0, 0, 0, 0.03),
0 -8px 8px -8px rgba(0, 0, 0, 0.03);
border: 1px solid rgba(0, 0, 0, 0.06);
0 -8px 8px -8px rgba(0, 0, 0, var(--depth-shadow-opacity));
border: 1px solid rgba(0, 0, 0, var(--border-opacity));
background-clip: padding-box;
width: var(--width);
font-size: 13px;
Expand Down Expand Up @@ -309,6 +311,11 @@
height: var(--initial-height);
}

:where([data-sonner-toast][data-mounted='true'][data-expanded='true'][data-styled='true']) {
--border-opacity: 0.06;
--depth-shadow-opacity: 0.03;
}

:where([data-sonner-toast][data-removed='true'][data-front='true'][data-swipe-out='false']) {
--y: translateY(calc(var(--lift) * -100%));
opacity: 0;
Expand Down

0 comments on commit 8d716a4

Please sign in to comment.