-
Notifications
You must be signed in to change notification settings - Fork 153
/
styles.module.css
61 lines (55 loc) · 1010 Bytes
/
styles.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
.modalContainer,
.pageContainer {
display: flex;
flex: 1;
align-items: center;
justify-content: center;
padding: 10px;
pointer-events: auto;
}
.modalContainer {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
height: 100vh;
width: 100vw;
background-color: var(--modal-scrim-background);
z-index: var(--layer-modal);
}
.pageContainer {
background-color: var(--modal-page-background);
}
.modal {
all: unset;
contain: content;
background: var(--modal-background);
width: 100vw;
max-width: 100vw;
max-height: 100vh;
overflow: hidden;
border-radius: var(--radius-medium);
box-shadow: var(--modal-shadow);
@media (--medium) {
& {
min-width: 530px;
}
}
}
.closeButton {
position: absolute;
top: 0;
right: 0;
padding: 10px;
cursor: pointer;
background: none;
border: none;
font-size: 2em;
color: var(--modal-close-button-color);
opacity: 0.5;
transition: opacity 0.2s ease-in-out;
&:hover {
opacity: 1;
}
}