-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
109 lines (108 loc) · 1.94 KB
/
style.css
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
101
102
103
104
105
106
107
108
109
.toast {
border-radius: 8px;
margin: 5px;
min-width: 150px;
min-height: 50px;
padding: 8px 5px;
display: flex;
justify-content: space-between;
align-items: center;
backdrop-filter: blur(5px);
will-change: transform;
font-size: 16px;
}
@media (max-width: 768px) {
.toast {
font-size: 13px;
padding: 6px 3px;
}
}
.toast__wrapper {
transform-origin: top;
width: fit-content;
overflow: hidden;
}
.toast.green {
background-color: var(--toast-green-background);
color: var(--toast-green-text);
border: var(--toast-green-border);
}
.toast.green .toast__icon {
color: var(--toast-green-text);
}
.toast.red {
background-color: var(--toast-red-background);
color: var(--toast-red-text);
border: var(--toast-red-border);
}
.toast.red .toast__icon {
color: var(--toast-red-text);
}
.toast.other {
background-color: var(--toast-other-background);
color: var(--toast-other-text);
border: var(--toast-other-border);
}
.toast.other .toast__icon {
color: var(--toast-other-text);
}
.toast.loading {
will-change: transform;
}
@keyframes rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(359deg);
}
}
.toast.loading .toast__icon {
animation: rotate 4s linear infinite;
}
.toast span {
display: flex;
}
.toast span.toast__icon {
margin-left: 7px;
}
.toast span.toast__icon svg {
height: 25px;
width: auto;
}
.toast span:not(.toast__icon) {
padding: 0 10px;
}
.toast-container {
z-index: 999;
position: fixed;
bottom: 0;
right: 0;
padding: 20px;
display: flex;
flex-direction: column;
width: fit-content;
align-items: flex-end;
}
@media (max-width: 768px) {
.toast-container {
padding: 10px;
}
}
.toast-container.toast-bottom {
top: unset;
bottom: 0;
}
.toast-container.toast-top {
bottom: unset;
top: 0;
}
.toast-container.toast-left {
right: unset;
left: 0;
}
.toast-container.toast-right {
left: unset;
right: 0;
}
/*# sourceMappingURL=style.css.map */