-
Notifications
You must be signed in to change notification settings - Fork 2
/
style.css
114 lines (103 loc) · 2.97 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
:root {
--spm-animation-backdrop-in-duration: 0.3s;
--spm-animation-backdrop-out-duration: 0.18s;
--spm-animation-modal-in-duration: 0.3s;
--spm-animation-modal-out-duration: 0.18s;
--spm-animation-backdrop-in-delay: 0s;
--spm-animation-backdrop-out-delay: 0s;
--spm-animation-modal-in-delay: 0s;
--spm-animation-modal-out-delay: 0s;
--spm-animation-backdrop-in: var(--spm-animation-backdrop-in-duration) ease
var(--spm-animation-backdrop-in-delay) forwards spm-backdrop-in;
--spm-animation-backdrop-out: var(--spm-animation-backdrop-out-duration) ease
var(--spm-animation-backdrop-out-delay) forwards spm-backdrop-out;
--spm-animation-modal-in: var(--spm-animation-modal-in-duration) ease-out
var(--spm-animation-modal-in-delay) forwards spm-modal-in;
--spm-animation-modal-out: var(--spm-animation-modal-out-duration) ease-out
var(--spm-animation-modal-out-delay) forwards spm-modal-out;
--spm-backdrop-background: #2d3748cd;
}
@media (prefers-reduced-motion: reduce) {
:root {
--spm-animation-backdrop-in-duration: 0.001s;
--spm-animation-backdrop-out-duration: 0.001s;
--spm-animation-modal-in-duration: 0.001s;
--spm-animation-modal-out-duration: 0.001s;
--spm-animation-backdrop-in-delay: 0.001s;
--spm-animation-backdrop-out-delay: 0.001s;
--spm-animation-modal-in-delay: 0.001s;
--spm-animation-modal-out-delay: 0.001s;
}
}
.spm-scrolling-disabled {
overflow: hidden;
}
.spm-backdrop {
background-color: var(--spm-backdrop-background);
animation: var(--spm-animation-backdrop-in);
animation-delay: var(--spm-animation-backdrop-in-delay);
animation-duration: var(--spm-animation-backdrop-in-duration);
}
.spm-animating .spm-modal-container {
overflow: unset;
}
.spm-modal {
animation: var(--spm-animation-modal-in);
animation-delay: var(--spm-animation-modal-in-delay);
animation-duration: var(--spm-animation-modal-in-duration);
}
.spm-backdrop.spm-out {
opacity: 1;
animation: var(--spm-animation-backdrop-out);
animation-delay: var(--spm-animation-backdrop-out-delay);
animation-duration: var(--spm-animation-backdrop-out-duration);
pointer-events: none;
}
.spm-modal.spm-out {
transform: translate(0, 0) scale(1);
opacity: 1;
animation: var(--spm-animation-modal-out);
animation-delay: var(--spm-animation-modal-out-delay);
animation-duration: var(--spm-animation-modal-out-duration);
pointer-events: none;
}
@keyframes spm-backdrop-in {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes spm-backdrop-out {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}
@keyframes spm-modal-in {
0% {
transform: translate(0, -30vh) scale(1.1);
opacity: 0;
}
72% {
transform: translate(0, 0) scale(0.99);
opacity: 1;
}
100% {
transform: translate(0, 0) scale(1);
opacity: 1;
}
}
@keyframes spm-modal-out {
0% {
transform: translate(0, 0) scale(1);
opacity: 1;
}
100% {
transform: translate(0, -10vh) scale(0.8);
opacity: 0;
}
}