fradrive/templates/widgets/modal.lucius
2018-03-28 23:41:17 +02:00

67 lines
1.0 KiB
Plaintext

.modal {
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
display: block;
background-color: rgba(255, 255, 255, 0.9);
min-width: 60vw;
min-height: 100px;
max-height: calc(100vh - 30px);
border-radius: 20px;
z-index: -1;
color: var(--fontbase);
padding: 20px;
overflow: scroll;
&.modal--open {
z-index: 200;
}
}
@media (max-width: 999px) {
.modal {
min-width: 80vw;
}
}
@media (max-width: 666px) {
.modal {
min-width: 90vw;
}
}
@media (max-width: 444px) {
.modal {
min-width: calc(100vw - 20px);
}
}
.modal__overlay {
position: fixed;
left: 0;
top: 0;
height: 100%;
width: 100%;
background-color: transparent;
z-index: -1;
transition: background-color .2s ease;
&.modal__overlay--open {
z-index: 199;
background-color: rgba(0, 0, 0, 0.4);
}
}
.modal__closer {
position: absolute;
top: 10px;
right: 10px;
display: block;
width: 20px;
height: 50px;
background-color: blue;
}
.no-scroll {
overflow: hidden;
}