You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-26 14:11:59 +01:00
153 lines
2.9 KiB
CSS
153 lines
2.9 KiB
CSS
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
|
|
opacity: 0;
|
|
transition: opacity 0.3s ease-in-out; /* Fade-in/out transition */
|
|
z-index: 20; /* Ensure the modal is above other content */
|
|
color: var(--color-4);
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
/* Style for the modal content */
|
|
.modal-content {
|
|
box-sizing: border-box;
|
|
position: absolute;
|
|
top: 50vh;
|
|
left: 50vw;
|
|
transform: translate(-50%, -50%);
|
|
background-color: var(--color-main);
|
|
padding: 30px;
|
|
border-radius: 30px;
|
|
opacity: 1;
|
|
transition: opacity 0.3s ease-in-out; /* Fade-in/out transition */
|
|
z-index: 21; /* Ensure the modal content is above the modal background */
|
|
min-width: 500px;
|
|
}
|
|
|
|
.modal-title {
|
|
font-size: 20px;
|
|
position: absolute;
|
|
font-weight: 300;
|
|
top: 14px;
|
|
left: 30px;
|
|
}
|
|
|
|
/* Style for the close button */
|
|
.close {
|
|
position: absolute;
|
|
top: 17px;
|
|
right: 30px;
|
|
cursor: pointer;
|
|
transition: 0.3s ease-in-out color;
|
|
}
|
|
|
|
.close:hover {
|
|
color: white;
|
|
}
|
|
|
|
.modal-content .button-close {
|
|
position: absolute;
|
|
bottom: 25px;
|
|
right: 35px;
|
|
width: 100px;
|
|
height: 48px;
|
|
border-radius: 30px;
|
|
background: var(--color-4);
|
|
font-weight: bold;
|
|
border: 0;
|
|
transition: 0.35s ease-in-out background;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.modal-content .button-close:hover {
|
|
background: var(--color-5);
|
|
}
|
|
|
|
.modal-panel {
|
|
width: 450px;
|
|
height: 100%;
|
|
position: absolute;
|
|
right: 0;
|
|
text-align: center;
|
|
background-color: var(--color-main);
|
|
}
|
|
|
|
.modal-panel .flex-container {
|
|
align-items: stretch;
|
|
}
|
|
|
|
.modal-panel h1 {
|
|
font-size: 42px;
|
|
}
|
|
|
|
.modal-panel-sidebar {
|
|
width: 64px;
|
|
background-color: var(--color-1);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.modal-panel-content {
|
|
flex: 1;
|
|
position: relative;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.modal-panel-content .version-info {
|
|
margin-top: 20px;
|
|
width: 100%;
|
|
}
|
|
|
|
.modal-panel-footer {
|
|
width: 450px;
|
|
height: 100px;
|
|
background-color: var(--color-main);
|
|
vertical-align: bottom;
|
|
}
|
|
|
|
.modal-panel .form-group {
|
|
float: none !important;
|
|
}
|
|
|
|
.modal-panel .dropdown {
|
|
margin: auto;
|
|
}
|
|
|
|
.modal-panel label {
|
|
width: 200px;
|
|
margin: auto;
|
|
}
|
|
|
|
@media only screen and (max-width: 768px) {
|
|
.modal-content {
|
|
min-width: 90% !important;
|
|
margin: auto;
|
|
position: static;
|
|
transform: initial;
|
|
overflow-y: auto;
|
|
max-height: 100vh;
|
|
}
|
|
.modal-title {
|
|
position: static;
|
|
}
|
|
#closeModalButton {
|
|
position: static;
|
|
}
|
|
.modal-panel {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
@media only screen and (max-height: 768px) {
|
|
.modal-panel .version-info {
|
|
position: static;
|
|
bottom: auto;
|
|
}
|
|
.modal-panel-content {
|
|
overflow-y: auto;
|
|
}
|
|
} |