-
Notifications
You must be signed in to change notification settings - Fork 5
/
App.css
98 lines (85 loc) · 1.61 KB
/
App.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
.App {
text-align: center;
}
.App-logo {
height: 40vmin;
pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}
.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}
.App-link {
color: #61dafb;
}
@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
/* Modal
========================================================================== */
.modal {
--spacing: 24px;
display: flex;
align-items: center;
justify-content: center;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: auto;
}
.modal__close {
display: block;
position: fixed;
background: rgba(255, 255, 255, 0.5);
border: none;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.modal__inner {
position: relative;
width: calc(var(--spacing) * 36);
max-width: 100%;
padding: calc(var(--spacing) * 3) calc(var(--spacing) * 1.5);
border-radius: 5px;
border: 1px solid rgba(0, 0, 0, 0.1);
background-color: #ffffff;
box-shadow: rgba(9, 30, 66, 0.25) 0px 20px 32px -8px;
}
.modal__close-btn {
position: absolute;
top: var(--spacing);
right: var(--spacing);
padding: 0;
background: transparent;
border: none;
cursor: pointer;
}
.modal__close-btn svg {
width: var(--spacing);
height: var(--spacing);
fill: currentColor;
opacity: 0.5;
}
.modal__close-btn:hover svg {
opacity: 1;
}