mirror of
https://github.com/luc-github/ESP3D-WEBUI.git
synced 2026-03-06 08:04:05 +01:00
157 lines
2.7 KiB
CSS
157 lines
2.7 KiB
CSS
/* The Modal (background) */
|
|
.modal {
|
|
display: none;
|
|
/* Hidden by default */
|
|
position: fixed;
|
|
/* Stay in place */
|
|
z-index: 10000;
|
|
/* Sit on top */
|
|
padding-top: 100px;
|
|
/* Location of the box */
|
|
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 */
|
|
-webkit-animation-name: fadeIn;
|
|
/* Fade in the background */
|
|
-webkit-animation-duration: 0.4s;
|
|
animation-name: fadeIn;
|
|
animation-duration: 0.4s;
|
|
}
|
|
|
|
.topmodal {
|
|
z-index: 20000 ! important;
|
|
/* Sit on top of the top */
|
|
}
|
|
|
|
.supertopmodal {
|
|
z-index: 30000 ! important;
|
|
/* Sit on top of the top */
|
|
}
|
|
|
|
/* Modal Content */
|
|
.modal-content {
|
|
border-top-left-radius: 10px;
|
|
border-top-right-radius: 10px;
|
|
border-bottom-left-radius: 10px;
|
|
border-bottom-right-radius: 10px;
|
|
border: 2px solid #337AB7;
|
|
box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
|
|
position: relative;
|
|
margin: auto;
|
|
padding: 0;
|
|
background-color: #fefefe;
|
|
-webkit-animation-name: slideIn;
|
|
-webkit-animation-duration: 0.4s;
|
|
animation-name: slideIn;
|
|
animation-duration: 0.4s
|
|
}
|
|
|
|
/* The Close Button */
|
|
.close {
|
|
color: #000;
|
|
float: right;
|
|
font-size: 28px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.close:hover,
|
|
.close:focus {
|
|
color: #337AB7;
|
|
text-decoration: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.modal-header {
|
|
padding: 2px 16px;
|
|
color: #0f0f0f;
|
|
background-color: #f2f2f2;
|
|
border-top-left-radius: 10px;
|
|
border-top-right-radius: 10px;
|
|
border-bottom: 1px solid #cfcfcf;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 10px 16px;
|
|
}
|
|
|
|
.modal-footer {
|
|
padding: 16px 16px;
|
|
height: 4.5em;
|
|
color: #0f0f0f;
|
|
background-color: #f2f2f2;
|
|
border-top: 1px solid #cfcfcf;
|
|
border-bottom-left-radius: 10px;
|
|
border-bottom-right-radius: 10px;
|
|
}
|
|
|
|
/* Add Animation */
|
|
@-webkit-keyframes slideIn {
|
|
from {
|
|
top: -300px;
|
|
opacity: 0
|
|
}
|
|
|
|
to {
|
|
top: 0;
|
|
opacity: 1
|
|
}
|
|
}
|
|
|
|
@keyframes slideIn {
|
|
from {
|
|
top: -300px;
|
|
opacity: 0
|
|
}
|
|
|
|
to {
|
|
top: 0;
|
|
opacity: 1
|
|
}
|
|
}
|
|
|
|
@-webkit-keyframes fadeIn {
|
|
from {
|
|
opacity: 0
|
|
}
|
|
|
|
to {
|
|
opacity: 1
|
|
}
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0
|
|
}
|
|
|
|
to {
|
|
opacity: 1
|
|
}
|
|
}
|
|
|
|
@media (min-width: 768px) {
|
|
.modal-content {
|
|
width: 580px;
|
|
}
|
|
}
|
|
|
|
@media (min-height: 640px) {
|
|
.modal {
|
|
padding-top: 5px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.modal-content {
|
|
width: 100%;
|
|
}
|
|
} |