ETHReport/components/modal/style.scss

74 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);
2018-07-17 13:07:17 +00:00
position: relative;
@media (min-width: $tablet) {
2018-07-17 13:07:17 +00:00
padding-top: calculateRem(40);
}
}
.modal-close {
2018-07-17 13:07:17 +00:00
position: absolute;
2018-07-06 13:49:24 +00:00
top: calculateRem(16);
right: calculateRem(16);
z-index: 4;
2018-07-17 13:07:17 +00:00
@media (min-width: $desktop) {
top: calculateRem(72);
right: calculateRem(-20);
svg {
width: calculateRem(30);
height: calculateRem(30);
}
}
&:hover svg path:last-child {
fill: $dark-red;
}
}