-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstyle.css
More file actions
109 lines (95 loc) · 1.62 KB
/
Copy pathstyle.css
File metadata and controls
109 lines (95 loc) · 1.62 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
101
102
103
104
105
106
107
108
109
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
body{
font-family: 'Poppins', sans-serif;
margin: 0;
min-height: 100 vh;
display: flex;
justify-content: center;
align-items: center;
background-color: #1C1D22;
}
button{
padding: 10px;
}
.notifications{
position: fixed;
top: 30px;
right: 20px;
}
.toast{
position: relative;
padding: 10px;
color: #fff;
margin-bottom: 10px;
max-width: 500px;
display: grid;
grid-template-columns: 70px 1fr 70px;
border-radius: 5px;
--color: #0abf30;
background: #202022;
animation: show 0.3s ease 1 forwards
}
.toast i{
color: var(--color);
display: flex;
justify-content: center;
align-items: center;
font-size: x-large;
}
.toast .title{
font-size: x-large;
font-weight: bold;
}
.toast span, .toast i:nth-child(3){
color: #fff;
opacity: 0.6;
}
@keyframes show{
0%{
transform: translateX(100%);
}
40%{
transform: translateX(-5%);
}
80%{
transform: translateX(0%);
}
100%{
transform: translateX(-10%);
}
}
.toast::before{
position: absolute;
bottom: 0;
left: 0;
background-color: var(--color);
width: 100%;
height: 3px;
content: '';
box-shadow: 0 0 10px var(--color);
animation: timeOut 3s linear 1 forwards
}
@keyframes timeOut{
100%{
width: 0;
}
}
.toast.error{
--color: #f24d4c;
background: #202022;
}
.toast.warning{
--color: #e9bd0c;
background: #202022;
}
.toast.info{
--color: #3498db;
background: #202022;
}
.toast-logo {
width: 28px; /* adjust */
height: 28px;
object-fit: contain;
display: block;
margin: auto;
}