68 lines
951 B
CSS

@import url("./colors.css");
.modal {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
justify-content: center;
align-items: center;
background-color: rgba(0, 0, 0, 0.4);
overflow: auto;
animation: fadeIn 0.25s;
}
.modal-content {
display: flex;
background-color: var(--bg);
color: var(--text);
margin: auto;
padding: 20px;
border: 1px solid var(--yellow);
width: 60%;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
animation: scaleUp 0.25s;
border-radius: 8px;
justify-content: center;
}
/* 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);
}
}