ETHReport/components/modal/style.scss

75 lines
1.2 KiB
SCSS

@import './assets/styles/global.scss';
.modal {
display: none;
&.modal-open {
display: block;
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 3;
background-color: $dark-navy;
overflow: auto;
}
&.modal-on-mobile-only {
@media (min-width: $desktop) {
background-color: transparent;
height: auto;
display: block;
position: initial;
width: auto;
.modal-inner {
position: initial;
padding: 0;
width: auto;
height: auto;
top: inherit;
left: inherit;
}
.modal-close {
display: none;
}
}
}
}
.modal-inner {
width: 100%;
height: 100%;
padding-top: calculateRem(24);
@media (min-width: $tablet) {
padding-top: calculateRem(48);
}
&.container {
max-width: calculateRem(1024);
}
}
.modal-close {
position: fixed;
top: calculateRem(16);
right: calculateRem(16);
padding: calculateRem(4);
background-color: #cfcfcf;
text-align: center;
width: calculateRem(32);
height: calculateRem(32);
border-radius: 50%;
cursor: pointer;
outline: none;
z-index: 4;
&:hover {
background-color: #c1c1c1;
}
}