blob: bd6f2a39cd9994fb955eb5f567e447e51994ece3 (
plain)
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
|
/* 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%; /* Full width */
height: 100%; /* Full height */
justify-content: center; /* Center horizontally */
align-items: center; /* Center vertically */
background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
overflow: auto; /* Enable scroll if needed */
animation: fadeIn 0.25s; /* Fade in the background */
}
/* Modal Content */
.modal-content {
display: flex;
background-color: #282828; /* Gruvbox background */
color: #ebdbb2; /* Gruvbox foreground */
margin: auto;
padding: 20px;
border: 1px solid #928374; /* Gruvbox grey */
width: 40%; /* Adjust as needed */
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
animation: scaleUp 0.25s; /* Scale animation */
border-radius: 8px; /* Rounded corners */
justify-content: center; /* Center horizontally */
}
/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes fadeOut {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
@keyframes scaleUp {
from {
transform: scale(0.5);
}
to {
transform: scale(1);
}
}
@keyframes scaleDown {
from {
transform: scale(1);
}
to {
transform: scale(0.5);
}
}
|