ETHReport/components/modal/style.scss

75 lines
1.2 KiB
SCSS
Raw Normal View History

@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;
2018-07-11 09:18:07 +00:00
background-color: $dark-navy;
2018-07-06 13:49:24 +00:00
overflow: auto;
}
&.modal-on-mobile-only {
@media (min-width: $desktop) {
background-color: transparent;
height: auto;
2018-07-06 11:46:30 +00:00
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 {
2018-07-06 13:49:24 +00:00
width: 100%;
height: 100%;
padding-top: calculateRem(24);
@media (min-width: $tablet) {
2018-07-06 13:49:24 +00:00
padding-top: calculateRem(48);
}
&.container {
max-width: calculateRem(1024);
}
}
.modal-close {
2018-07-06 13:49:24 +00:00
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;
2018-07-06 13:49:24 +00:00
z-index: 4;
&:hover {
background-color: #c1c1c1;
}
}