-
Notifications
You must be signed in to change notification settings - Fork 0
/
modal.css
128 lines (112 loc) · 2.06 KB
/
modal.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto; /* Enable scroll if needed */
background-color: rgb(0, 0, 0); /* Fallback color */
background-color: rgba(0, 30, 29, 0.7); /* Black w/ opacity */
animation: fadeIn 0.3s ease-in-out;
}
/* Modal Content/Box */
.modal-content {
background-color: #abd1c6;
margin: 5% auto;
padding: 20px;
width: 80%;
max-width: 700px;
border-radius: 20px;
box-shadow: 0 5px 20px 10px rgba(0, 0, 0, 0.2);
animation: slideIn 0.3s ease-in-out;
}
.modal-buttons {
margin-top: 25px;
}
.modal-text {
margin: 30px 20px;
}
.modal-text h2 {
color: #004643;
font-size: 3rem;
margin-bottom: 15px;
}
.modal-text button {
font-size: 2rem;
/* height: 3rem; */
padding: 0.8rem 2rem;
margin: 0 12px;
box-shadow: 0 0.3rem rgba(0, 70, 67, 0.65);
}
.modal-text button:active {
box-shadow: 0 0.1rem rgba(171, 209, 198, 0.65);
}
#toast {
display: block;
font-family: Montserrat, sans-serif;
font-style: italic;
animation: fadeIn 0.3s ease-in-out;
}
#toast.toast-exit {
animation: fadeOut 0.3s ease-in-out;
}
/* Close Button */
.close {
color: #001e1d;
float: right;
font-size: 28px;
font-weight: bold;
margin-right: 12px;
}
.close:hover,
.close:focus {
color: #fffffe;
text-decoration: none;
cursor: pointer;
}
@media screen and (max-width: 800px) {
.modal-text h2 {
font-size: 2.5rem;
}
.modal-text button {
display: block;
width: 100%;
margin-left: 0;
margin-bottom: 20px;
padding: 0.5rem 1.8rem;
font-size: 1.3rem;
}
}
@media screen and (max-width: 550px) {
.modal-text h2 {
font-size: 2rem;
}
}
/* Keyframe animation for sliding in */
@keyframes slideIn {
from {
transform: translateY(-100%);
}
to {
transform: translateY(0);
}
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fadeOut {
from {
opacity: 1;
}
to {
opacity: 0;
}
}