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-17 14:23:38 +00:00
background-color: $navy-dark;
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 14:48:15 +00:00
position: fixed;
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);
2018-07-17 14:48:15 +00:00
right: inherit;
2018-07-17 15:13:55 +00:00
left: calc(370px + 50%);
2018-07-17 13:07:17 +00:00
svg {
width: calculateRem(30);
height: calculateRem(30);
}
}
&:hover svg path:last-child {
fill: $dark-red;
}
}