mirror of
https://github.com/hrfee/jfa-go.git
synced 2024-10-31 23:40:11 +00:00
Harvey Tindall
eb370d64df
the web ui has been redesigned with the a17t toolkit, which imo looks a lot better than bootstrap. This also brought a complete rework of the web code, which now makes a lot more sense hopefully. the setup page is still stuck with bootstrap, its not much of a priority but i'll rewrite it eventually.
73 lines
1.1 KiB
CSS
73 lines
1.1 KiB
CSS
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 12;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: auto;
|
|
background-color: rgba(0,0,0,40%);
|
|
}
|
|
|
|
.modal-shown {
|
|
display: block;
|
|
}
|
|
|
|
@keyframes modal-hide {
|
|
from { opacity: 1; }
|
|
to { opacity: 0; }
|
|
}
|
|
|
|
.modal-hiding {
|
|
animation: modal-hide 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
}
|
|
|
|
@keyframes modal-content-show {
|
|
from {
|
|
opacity: 0;
|
|
top: -6rem;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
top: 0;
|
|
}
|
|
}
|
|
|
|
.modal-content {
|
|
position: relative;
|
|
margin: 10% auto;
|
|
width: 30%;
|
|
}
|
|
|
|
.modal-content.wide {
|
|
width: 60%;
|
|
}
|
|
|
|
.modal-shown .modal-content {
|
|
animation: modal-content-show 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
}
|
|
|
|
@media screen and (max-width: 1000px) {
|
|
.modal-content.wide {
|
|
width: 75%;
|
|
}
|
|
}
|
|
|
|
@media screen and (max-width: 400px) {
|
|
.modal-content, .modal-content.wide {
|
|
width: 90%;
|
|
}
|
|
}
|
|
|
|
.modal-close {
|
|
float: right;
|
|
color: #aaa;
|
|
font-weight: normal;
|
|
}
|
|
|
|
.modal-close:hover,
|
|
.modal-close:focus {
|
|
filter: brightness(60%);
|
|
}
|