-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
/
Modal.module.css
65 lines (56 loc) · 1010 Bytes
/
Modal.module.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
.modal {
display: none;
position: fixed;
z-index: 2;
padding-top: 100px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgb(0 0 0 / 40%);
}
.modal.open {
display: block;
}
.modalContent {
position: relative;
background-color: var(--ifm-background-surface-color);
border-radius: var(--ifm-global-radius);
margin: auto;
padding: 0;
width: calc(var(--ifm-container-width) * 0.7);
animation-name: animatetop;
animation-duration: 0.4s;
max-width: 95%;
}
@keyframes animatetop {
from {
top: -30rem;
opacity: 0;
}
to {
top: 0;
opacity: 1;
}
}
.modalClose {
transition: color var(--ifm-transition-fast)
var(--ifm-transition-timing-default);
}
.modalClose:hover,
.modalClose:focus {
color: var(--ifm-color-primary);
}
.modalHeader {
display: flex;
padding: 1rem 1.5rem;
justify-content: space-between;
align-items: baseline;
}
.modalHeader h2 {
margin: 0;
}
.modalBody {
padding: 1rem 1.5rem;
}