-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path_modals.scss
64 lines (63 loc) · 1023 Bytes
/
_modals.scss
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
/*!
* Spry Modals
*/
@keyframes modalAlert {
20% {
transform: scale(1.03);
}
40% {
transform: scale(1);
}
60% {
transform: scale(1.03);
}
80% {
transform: none;
}
}
.modal {
align-items: center;
background-color: rgba(0, 0, 0, .7);
justify-content: center;
opacity: 0;
pointer-events: none;
position: fixed;
inset: 0;
transition: opacity .25s cubic-bezier(.25,.8,.25,1);
z-index: 1000;
display: flex;
&.bounce {
animation-name: modalAlert;
animation-duration: .4s;
}
&.show {
opacity: 1;
pointer-events: all;
}
&.blur {
backdrop-filter: blur(2px);
}
&.no-backdrop {
background-color: transparent;
backdrop-filter: none;
min-width: 300px;
}
&.no-backdrop.show {
pointer-events: none;
.modal-content {
pointer-events: all;
}
}
}
.modal-content {
position: relative;
box-sizing: border-box;
display: block;
overflow: hidden;
transform: scale(.6);
transition: transform .3s cubic-bezier(.25,.8,.25,1);
width: 90%;
.modal.show & {
transform: none;
}
}