-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
129 lines (127 loc) · 2.06 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, Helvetica, sans-serif;
}
body{
height: 80vh;
display: flex;
background-color: #dbd8d8;
}
body > div{
margin: auto;
}
.toast{
display: flex;
align-items: center;
background-color: #fff;
border-radius: 2px;
padding: 20px 0;
min-width: 400px;
max-width: 450px;
border-left: 4px solid;
box-shadow: 0 5px 8px rgba(0, 0, 0, 0.08);
transition: all linear 0.3s;
}
@keyframes slideInLeft {
from {
opacity: 0;
transform: translateX(calc(100% + 32px));
}
to {
opacity: 1;
transform: translateX(0);
}
}
@keyframes fadeOut {
to {
opacity: 0;
}
}
.toast + .toast{
margin-top: 24px;
}
.toast__icon{
font-size: 24px;
}
.toast__icon, .toast__close{
padding: 0 16px;
}
.toast__body{
flex-grow: 1;
}
.toast__title{
font-size: 16px;
font-weight: 600;
color: #333;
}
.toast__msg{
font-size: 14px;
color: #888;
margin-top: 4px;
line-height: 1.3;
}
.toast__close{
font-size: 20px;
color: rgba(0, 0, 0, 0.3);
transition: opacity 0.5s;
}
.toast__close:hover{
opacity: 0.6;
}
.toast--success{
border-color: #47d864;
}
.toast--success .toast__icon{
color: #47d864;
}
.toast--warning{
border-color: #ffc021;
}
.toast--warning .toast__icon{
color: #ffc021;
}
.toast--error{
border-color: #ff623d;
}
.toast--error .toast__icon{
color: #ff623d;
}
#toast{
position: fixed;
top: 32px;
right: 32px;
z-index: 999999;
}
.btn{
display: inline-block;
text-decoration: none;
background-color: transparent;
border: none;
outline: none;
color: #fff;
padding: 12px 48px;
border-radius: 50px;
cursor: pointer;
transition: opacity 0.5s ease;
min-width: 120px;
}
.btn:hover{
opacity: 0.8;
}
.btn + .btn{
margin-left: 16px;
}
.btn--success{
background-color: #71be34;
}
.btn--warn{
background-color: #ffb702;
}
.btn--danger{
background-color: #ff623d;
}
.btn--sizel{
padding: 16px 56px;
}