webapp/src/components/Nav/Modal/Modal.module.scss

77 lines
1.1 KiB
SCSS
Raw Normal View History

2022-11-27 05:49:48 +00:00
.backdrop {
2022-09-09 11:53:35 +00:00
align-items: center;
background: rgb(20 20 20 / 70%);
display: flex;
justify-content: center;
height: 100%;
left: 0;
2022-11-07 21:07:42 +00:00
overflow: auto;
pointer-events: all;
2022-09-09 11:53:35 +00:00
position: fixed;
top: 0;
width: 100%;
2023-08-26 09:41:21 +00:00
z-index: 11000;
2022-11-27 05:49:48 +00:00
}
2022-09-09 11:53:35 +00:00
2022-11-27 05:49:48 +00:00
.modal {
background: #fff;
max-width: 1000px;
2023-05-29 19:39:53 +00:00
padding: 5.4rem 2.4rem 2.4rem;
2022-11-27 05:49:48 +00:00
position: relative;
2023-05-29 19:39:53 +00:00
width: 100%;
@include media-breakpoint-up(sm) {
padding: 4.2rem;
width: 80%;
}
2022-11-27 05:49:48 +00:00
.close {
2022-09-09 11:53:35 +00:00
position: absolute;
2023-05-29 19:39:53 +00:00
top: 1.6rem;
2022-09-09 11:53:35 +00:00
cursor: pointer;
height: 18px;
width: 16px;
2022-09-09 11:53:35 +00:00
opacity: 1;
padding: 0;
2023-05-29 19:39:53 +00:00
right: 1.6rem;
2022-09-09 11:53:35 +00:00
transition: opacity 0.3s;
z-index: 1;
svg {
display: block;
2022-09-09 11:53:35 +00:00
pointer-events: none;
}
&:hover {
2023-05-29 19:39:53 +00:00
background: #000;
.icon {
filter: invert(1);
}
2022-09-09 11:53:35 +00:00
}
.icon {
height: 100%;
width: 100%;
}
}
2022-11-27 05:49:48 +00:00
&.narrow {
max-width: 460px;
width: 50%;
2023-05-01 18:32:32 +00:00
@media (width >= 800px) and (width <= 991px) {
2022-11-27 05:49:48 +00:00
width: 80%;
}
2022-11-27 05:49:48 +00:00
.close {
right: 12px;
top: 12px;
}
2022-09-09 11:53:35 +00:00
}
}
2023-06-14 20:16:44 +00:00
.noPadding {
padding: 0 2rem;
}