@robotical/sensors-dashboard
Version:
A dashboard tool for depicting Marty data by Robotical
97 lines (81 loc) • 1.56 kB
CSS
@keyframes comeInFromTop {
0% {
transform: translateY(-100%);
}
80% {
transform: translateY(20%);
}
100%{
transform: translateY(0);
}
}
@keyframes leaveToTop {
0% {
transform: translateY(0);
}
20% {
transform: translateY(20%);
}
100%{
transform: translateY(-200%);
}
}
.styledModalBody {
padding: 10px;
}
.styledModalHeader{
display: flex;
justify-content: flex-end;
font-size: 25px;
}
.styledModal{
background: var(--colour-GREY_2);
border-radius: 15px;
padding: 15px;
overflow-y: auto;
width: min(90%, 90rem);
height: auto;
max-width: 1200px;
max-height: min(90vh, 1200px);
max-height: min(90dvh, 1200px);
position: relative;
box-shadow: 0 2.4rem 6rem rgba(0, 0, 0, 0.28);
}
.styledModal:focus-visible {
outline: 3px solid var(--focus-ring, #0b6f87);
outline-offset: 3px;
}
.styleModalComeInFromTop {
animation: comeInFromTop .7s ease-in;
}
.styleModalLeaveToTop {
animation: leaveToTop .7s ease-in;
}
.modalLogoContainer {
display: grid;
justify-items: center;
margin-bottom: 1rem;
}
.styledModalOverlay{
position: fixed;
inset: 0;
width: 100%;
min-height: 100%;
min-height: 100dvh;
display: flex;
justify-content: center;
align-items: center;
background-color: rgba(0, 0, 0, 0.7);
z-index: 1000;
}
.styledTitle{
font-size: 2.5rem;
font-family: "BigNoodleTitling Regular";
text-align: center;
}
@media (prefers-reduced-motion: reduce) {
.styleModalComeInFromTop,
.styleModalLeaveToTop {
animation-duration: 1ms;
}
}