2023-11-09 01:36:43 +01:00
|
|
|
.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 */
|
|
|
|
overflow: auto; /* Enable scroll if needed */
|
|
|
|
background-color: rgb(0,0,0); /* Fallback color */
|
|
|
|
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
|
2023-11-09 17:37:21 +01:00
|
|
|
|
|
|
|
animation-name: fadein;
|
|
|
|
animation-duration: 0.4s;
|
2023-11-09 01:36:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Modal Content/Box */
|
|
|
|
.modal-content {
|
|
|
|
background-color: #fefefe;
|
|
|
|
margin: 15% auto; /* 15% from the top and centered */
|
|
|
|
padding: 20px;
|
|
|
|
border: 1px solid #888;
|
2023-11-09 17:37:21 +01:00
|
|
|
border-radius: 15px;
|
2023-11-09 01:36:43 +01:00
|
|
|
width: 80%; /* Could be more or less, depending on screen size */
|
|
|
|
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
|
2023-11-09 17:37:21 +01:00
|
|
|
animation-name: fadein;
|
|
|
|
animation-duration: 0.4s;
|
|
|
|
}
|
|
|
|
|
|
|
|
.md-close {
|
|
|
|
position: relative;
|
|
|
|
left: 95%;
|
|
|
|
cursor: pointer;
|
2023-11-09 01:36:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.md-active {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2023-11-09 17:37:21 +01:00
|
|
|
|
|
|
|
.md-active-mobile {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media only screen and (min-width: 600px) {
|
|
|
|
.md-active {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.modal-content h2 {
|
|
|
|
margin-bottom: 2rem;
|
|
|
|
}
|
|
|
|
.modal-content a {
|
|
|
|
text-decoration: none;
|
|
|
|
padding: 1rem 0rem;
|
|
|
|
width: 100%;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
.modal-content a:hover {
|
|
|
|
background-color: #888;
|
|
|
|
}
|
|
|
|
|
2023-11-09 01:36:43 +01:00
|
|
|
/* Add Animation */
|
2023-11-09 17:37:21 +01:00
|
|
|
@keyframes fadein {
|
|
|
|
from { opacity: 0}
|
|
|
|
to {opacity: 1}
|
2023-11-09 01:36:43 +01:00
|
|
|
}
|
2023-11-09 17:37:21 +01:00
|
|
|
|
|
|
|
@keyframes fadeout {
|
|
|
|
from { opacity: 1}
|
|
|
|
to {opacity: 0}
|
|
|
|
}
|