Skip to content

Commit 76190f4

Browse files
committed
feat: add toast shadow variable
1 parent 815a640 commit 76190f4

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/style.css

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@
66
--toastify-color-warning: #f1c40f;
77
--toastify-color-error: hsl(6, 78%, 57%);
88
--toastify-color-transparent: rgba(255, 255, 255, 0.7);
9+
910
--toastify-icon-color-info: var(--toastify-color-info);
1011
--toastify-icon-color-success: var(--toastify-color-success);
1112
--toastify-icon-color-warning: var(--toastify-color-warning);
1213
--toastify-icon-color-error: var(--toastify-color-error);
14+
1315
--toastify-container-width: fit-content;
1416
--toastify-toast-width: 320px;
1517
--toastify-toast-offset: 16px;
@@ -22,14 +24,18 @@
2224
--toastify-toast-min-height: 64px;
2325
--toastify-toast-max-height: 800px;
2426
--toastify-toast-bd-radius: 6px;
27+
--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
2528
--toastify-font-family: sans-serif;
2629
--toastify-z-index: 9999;
2730
--toastify-text-color-light: #757575;
2831
--toastify-text-color-dark: #fff;
32+
33+
/* Used only for colored theme */
2934
--toastify-text-color-info: #fff;
3035
--toastify-text-color-success: #fff;
3136
--toastify-text-color-warning: #fff;
3237
--toastify-text-color-error: #fff;
38+
3339
--toastify-spinner-color: #616161;
3440
--toastify-spinner-color-empty-area: #e0e0e0;
3541
--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);
@@ -38,6 +44,7 @@
3844
--toastify-color-progress-success: var(--toastify-color-success);
3945
--toastify-color-progress-warning: var(--toastify-color-warning);
4046
--toastify-color-progress-error: var(--toastify-color-error);
47+
/* used to control the opacity of the progress trail */
4148
--toastify-color-progress-bgo: 0.2;
4249
}
4350

@@ -121,7 +128,7 @@
121128
margin-bottom: 1rem;
122129
padding: var(--toastify-toast-padding);
123130
border-radius: var(--toastify-toast-bd-radius);
124-
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
131+
box-shadow: var(--toastify-toast-shadow);
125132
max-height: var(--toastify-toast-max-height);
126133
font-family: var(--toastify-font-family);
127134
/* webkit only issue #791 */

0 commit comments

Comments
 (0)