-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
105 lines (90 loc) · 2.51 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
*{
margin: 0; padding: 0;
box-sizing: border-box;
}
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
body{
font-family: 'Poppins', sans-serif;
background-color: #1C1D22;
}
:root{
--successColor: #0abf3055;
--errorColor: #f24d4c;
--warningColor: #e9bd0c;
--infoColor: #3498db;
}
.container{
width: 100%;
height: 100vh;
position: relative;
display: flex;
justify-content: center;
align-items: center;
}
.btn{
background-color: aqua;
font-size: 1.5rem;
font-weight: 600;
padding: 1rem 2rem;
margin: 1rem;
text-align: center;
border-radius: 5px;
cursor: pointer;
}
.notifications{
position: fixed;
top: 2rem;
right: 3rem;
}
.toster{
position: relative;
color: aliceblue;
padding: 1rem 2rem;
border-radius: 5px;
display: flex;
justify-content: center;
align-items: center;
animation: effect 0.3s ease 1 forwards;
margin-bottom: 1rem;
}
.success{ --borderColor: #0abf3055; background-image: linear-gradient( to right, #0abf3055, #22242f 30% ); }
.error{ --borderColor: #f24d4c; background-image: linear-gradient( to right, #f24d4c55, #22242F 30% );; }
.warning{ --borderColor: #e9bd0c; background-image: linear-gradient( to right, #e9bd0c55, #22242F 30% ); }
.info{ --borderColor: #3498db; background-image: linear-gradient( to right, #3498db55, #22242F 30% ); }
@keyframes effect{
0%{ transform: translateX(100%); }
100%{ transform: translateX(-10%); }
}
.toster::before{
content: '';
position: absolute;
bottom: 0;
width: 100%;
height: 6px;
background-color: var(--borderColor);
animation: tiumeOut 5s linear 1 forwards;
box-shadow: 0 0 10px var(--borderColor);
}
@keyframes tiumeOut {
to{
width: 0;
}
}
.icon{
font-size: 1.5rem;
margin-right: 1rem;
}
.tosterHeading{
margin-right: 1.3rem;
}
.copyright{
position: absolute;
bottom: 1rem;
color: white;
font-weight: 600;
}
.copyright a{ color: white; text-decoration: none;}
.copyright-success{ color: var(--successColor); text-shadow: 2px 2px 8px var(--successColor); }
.copyright-error{ color: var(--errorColor); text-shadow: 2px 2px 8px var(--errorColor); }
.copyright-warning{ color: var(--warningColor); text-shadow: 2px 2px 8px var(--warningColor); }
.copyright-info{ color: var(--infoColor); text-shadow: 2px 2px 8px var(--infoColor); }