forked from Cylo-Traders/Agrocylo-PIP
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathToast.css
More file actions
100 lines (88 loc) · 1.75 KB
/
Copy pathToast.css
File metadata and controls
100 lines (88 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
.ui-toast-viewport {
position: fixed;
z-index: 1000;
right: 1rem;
bottom: 1rem;
display: flex;
flex-direction: column;
gap: 0.75rem;
width: min(24rem, calc(100vw - 2rem));
pointer-events: none;
}
.ui-toast {
pointer-events: auto;
display: flex;
align-items: flex-start;
gap: 0.75rem;
padding: 0.875rem 1rem;
border-radius: 0.75rem;
border: 1px solid transparent;
box-shadow:
0 10px 15px -3px rgb(0 0 0 / 0.08),
0 4px 6px -4px rgb(0 0 0 / 0.06);
background: #ffffff;
animation: ui-toast-in 180ms ease-out;
}
.ui-toast--success {
border-color: hsla(142, 70%, 45%, 0.35);
background: hsl(142, 70%, 97%);
}
.ui-toast--error {
border-color: hsla(355, 85%, 55%, 0.35);
background: hsl(355, 85%, 97%);
}
.ui-toast--info {
border-color: hsla(220, 85%, 57%, 0.3);
background: hsl(220, 85%, 97%);
}
.ui-toast__body {
flex: 1;
min-width: 0;
}
.ui-toast__title {
margin: 0;
font-size: 0.875rem;
font-weight: 600;
color: hsl(25, 40%, 16%);
}
.ui-toast__description {
margin: 0.25rem 0 0;
font-size: 0.8125rem;
line-height: 1.45;
color: hsl(25, 20%, 35%);
word-break: break-word;
}
.ui-toast__dismiss {
flex-shrink: 0;
width: 1.75rem;
height: 1.75rem;
border: none;
border-radius: 0.5rem;
background: transparent;
color: hsl(25, 15%, 40%);
font-size: 1.25rem;
line-height: 1;
cursor: pointer;
}
.ui-toast__dismiss:hover {
background: rgb(0 0 0 / 0.05);
}
.ui-toast__dismiss:focus-visible {
outline: 2px solid hsl(142, 45%, 35%);
outline-offset: 2px;
}
@keyframes ui-toast-in {
from {
opacity: 0;
transform: translateY(0.5rem);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (prefers-reduced-motion: reduce) {
.ui-toast {
animation: none;
}
}