-
Notifications
You must be signed in to change notification settings - Fork 0
/
phoenix_duskmoon.css
102 lines (90 loc) · 1.96 KB
/
phoenix_duskmoon.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
/* @import "tailwindcss/base"; */
/* @import "tailwindcss/components"; */
@import "tailwindcss/utilities";
/* modal */
.modal {
position: relative;
box-shadow: var(--shadow-2), 0 0 0 100vw rgb(0 0 0 / 0.8);
background: #fff;
color: #222;
border: 0;
border-radius: 0.25rem;
--x: 0;
--y: 0;
--delay: 750ms;
--animation-timing-func: cubic-bezier(0.75, 0.7, 0, 1.02);
}
.modal > .close {
position: absolute;
right: 1rem;
top: 1rem;
cursor: pointer;
}
.modal::backdrop {
opacity: 0;
isolation: isolate;
/* display: none; */
transition: all 0s;
}
.modal.backdrop::backdrop {
opacity: 0;
display: initial;
transition: all 0s;
}
.modal[open] {
animation:
fade-in var(--delay) forwards var(--animation-timing-func),
fly-in var(--delay) forwards var(--animation-timing-func);
pointer-events: auto;
visibility: visible;
}
.modal[closing] {
animation:
fade-out var(--delay) forwards var(--animation-timing-func),
fly-out var(--delay) forwards var(--animation-timing-func);
display: block;
inset: 0;
pointer-events: none;
}
.modal[open]::backdrop {
transform: none !important;
animation: fade-in 500ms forwards;
}
.modal[closing]::backdrop {
transform: none !important;
animation: fade-out 500ms forwards;
}
@keyframes fade-in {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
@keyframes fade-out {
100% {
opacity: 0;
}
0% {
opacity: 1;
}
}
@keyframes fly-in {
0% {
transform: translate3d(var(--x), var(--y), -200px) scale(0.01)
perspective(6em);
}
100% {
transform: translate3d(0%, 0%, 0px) scale(1) perspective(1em);
}
}
@keyframes fly-out {
0% {
transform: translate3d(0%, 0%, 0px) scale(1) perspective(1em);
}
100% {
transform: translate3d(var(--x), var(--y), -200px) scale(0.01)
perspective(6em);
}
}