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

107 lines
1.5 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%;
z-index: 10002;
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;
position: relative;
2023-05-29 19:39:53 +00:00
width: 100%;
@include media-breakpoint-up(sm) {
width: 80%;
}
2022-11-27 05:49:48 +00:00
.close {
2022-09-09 11:53:35 +00:00
position: absolute;
2023-10-03 21:52:38 +00:00
top: 2rem;
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-09-27 21:28:32 +00:00
right: 2.4rem;
2022-09-09 11:53:35 +00:00
transition: opacity 0.3s;
z-index: 1;
2023-09-27 21:28:32 +00:00
@include media-breakpoint-up(sm) {
2023-10-03 21:52:38 +00:00
right: 2rem;
2023-09-27 21:28:32 +00:00
}
2023-09-27 22:21:27 +00:00
&:hover {
opacity: 0.5;
}
2022-09-09 11:53:35 +00:00
svg {
display: block;
2022-09-09 11:53:35 +00:00
pointer-events: none;
}
.icon {
height: 100%;
width: 100%;
}
}
2022-11-27 05:49:48 +00:00
&.narrow {
2023-09-27 21:28:32 +00:00
width: 100%;
@include media-breakpoint-up(sm) {
max-width: 460px;
}
2023-05-01 18:32:32 +00:00
2023-09-27 21:28:32 +00:00
@include media-breakpoint-up(md) {
width: 50%;
2022-11-27 05:49:48 +00:00
}
2022-11-27 05:49:48 +00:00
.close {
2023-09-27 21:28:32 +00:00
right: 3.6rem;
2022-11-27 05:49:48 +00:00
top: 12px;
}
2022-09-09 11:53:35 +00:00
}
}
2023-06-14 20:16:44 +00:00
2023-10-03 21:52:38 +00:00
.modalInner {
2023-10-09 21:22:06 +00:00
height: 100%;
2023-10-03 21:52:38 +00:00
overflow: auto;
padding: 5.4rem 2.4rem 2.4rem;
position: relative;
@include media-breakpoint-up(sm) {
padding: 5rem;
}
}
2023-06-14 20:16:44 +00:00
.noPadding {
2023-09-27 21:28:32 +00:00
background: none;
2023-10-03 21:52:38 +00:00
left: 50%;
padding: 0;
transform: translateX(-50%);
.modalInner {
padding: 0 2rem;
}
.close {
right: 2rem;
top: 2rem;
}
2023-06-14 20:16:44 +00:00
}
2023-09-06 22:50:54 +00:00
.maxHeight {
display: flex;
flex-direction: column;
height: 90vh;
}