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

117 lines
1.6 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
2023-10-10 21:01:25 +00:00
&:not([class*='col-']) {
width: 100%;
@include media-breakpoint-up(sm) {
width: 80%;
}
2023-05-29 19:39:53 +00:00
}
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;
2023-10-10 19:44:24 +00:00
height: 1.6rem;
width: 1.6rem;
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-10-09 22:09:15 +00:00
left: 50%;
transform: translateX(-50%);
2023-09-27 21:28:32 +00:00
width: 100%;
@include media-breakpoint-up(sm) {
2023-10-24 21:43:50 +00:00
max-width: 600px;
2023-09-27 21:28:32 +00:00
}
2023-05-01 18:32:32 +00:00
2023-09-27 21:28:32 +00:00
@include media-breakpoint-up(md) {
2023-10-24 21:43:50 +00:00
width: 65%;
2022-11-27 05:49:48 +00:00
}
2022-11-27 05:49:48 +00:00
.close {
right: 1.6rem;
top: 1.6rem;
2022-11-27 05:49:48 +00:00
}
2023-10-24 21:43:50 +00:00
.modalInner {
padding: 3.8rem 2rem 2rem;
}
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;
2023-10-16 22:13:13 +00:00
text-align: left;
2023-10-03 21:52:38 +00:00
@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;
}