2021-01-28 12:58:35 +01:00
|
|
|
@import "../css/variables.module";
|
2020-03-13 15:32:47 -04:00
|
|
|
|
2020-09-26 02:48:45 +05:30
|
|
|
.excalidraw {
|
2021-02-14 18:18:34 +05:30
|
|
|
&.excalidraw-modal-container {
|
|
|
|
position: absolute;
|
|
|
|
z-index: 10;
|
|
|
|
}
|
|
|
|
|
2020-09-26 02:48:45 +05:30
|
|
|
.Modal {
|
2021-02-14 18:18:34 +05:30
|
|
|
position: absolute;
|
2020-09-26 02:48:45 +05:30
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
overflow: auto;
|
|
|
|
padding: calc(var(--space-factor) * 10);
|
|
|
|
}
|
2020-01-15 20:42:02 +05:00
|
|
|
|
2020-09-26 02:48:45 +05:30
|
|
|
.Modal__background {
|
2021-02-14 18:18:34 +05:30
|
|
|
position: absolute;
|
2020-09-26 02:48:45 +05:30
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
z-index: 1;
|
|
|
|
background-color: transparentize($oc-black, 0.7);
|
|
|
|
backdrop-filter: blur(2px);
|
|
|
|
}
|
2020-01-15 20:42:02 +05:00
|
|
|
|
2020-09-26 02:48:45 +05:30
|
|
|
.Modal__content {
|
|
|
|
position: relative;
|
|
|
|
z-index: 2;
|
|
|
|
width: 100%;
|
|
|
|
max-width: var(--max-width);
|
2021-01-03 11:50:41 +02:00
|
|
|
max-height: 100%;
|
2020-03-11 19:42:18 +01:00
|
|
|
|
2020-09-26 02:48:45 +05:30
|
|
|
opacity: 0;
|
|
|
|
transform: translateY(10px);
|
|
|
|
animation: Modal__content_fade-in 0.1s ease-out 0.05s forwards;
|
|
|
|
position: relative;
|
2021-01-03 11:50:41 +02:00
|
|
|
overflow-y: auto;
|
2020-04-10 11:13:31 -04:00
|
|
|
|
2020-09-26 02:48:45 +05:30
|
|
|
// for modals, reset blurry bg
|
2021-02-16 20:22:18 +02:00
|
|
|
background: var(--island-bg-color);
|
2020-09-26 02:48:45 +05:30
|
|
|
backdrop-filter: none;
|
2020-04-15 21:20:35 +02:00
|
|
|
|
2021-02-16 20:22:18 +02:00
|
|
|
border: 1px solid var(--dialog-border-color);
|
2021-01-03 11:50:41 +02:00
|
|
|
box-shadow: 0 2px 10px transparentize($oc-black, 0.75);
|
|
|
|
border-radius: 6px;
|
2021-03-14 14:30:12 +01:00
|
|
|
box-sizing: border-box;
|
2021-01-03 11:50:41 +02:00
|
|
|
|
2020-12-27 16:27:25 -05:00
|
|
|
@media #{$is-mobile-query} {
|
2020-09-26 02:48:45 +05:30
|
|
|
max-width: 100%;
|
2021-01-03 11:50:41 +02:00
|
|
|
border: 0;
|
|
|
|
border-radius: 0;
|
2020-09-26 02:48:45 +05:30
|
|
|
}
|
2020-04-10 11:13:31 -04:00
|
|
|
}
|
2020-03-11 19:42:18 +01:00
|
|
|
|
2020-09-26 02:48:45 +05:30
|
|
|
@keyframes Modal__content_fade-in {
|
|
|
|
from {
|
|
|
|
opacity: 0;
|
|
|
|
transform: translateY(10px);
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
opacity: 1;
|
|
|
|
transform: translateY(0);
|
|
|
|
}
|
2020-03-11 19:42:18 +01:00
|
|
|
}
|
2020-09-26 02:48:45 +05:30
|
|
|
|
|
|
|
.Modal__close {
|
|
|
|
width: calc(var(--space-factor) * 7);
|
|
|
|
height: calc(var(--space-factor) * 7);
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
|
|
|
|
svg {
|
|
|
|
height: calc(var(--space-factor) * 5);
|
|
|
|
}
|
2020-03-13 15:32:47 -04:00
|
|
|
}
|
|
|
|
|
2020-12-27 16:27:25 -05:00
|
|
|
@media #{$is-mobile-query} {
|
2020-09-26 02:48:45 +05:30
|
|
|
.Modal {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.Modal__content {
|
2021-02-14 18:18:34 +05:30
|
|
|
position: absolute;
|
2020-09-26 02:48:45 +05:30
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
}
|
2020-03-13 15:32:47 -04:00
|
|
|
}
|
|
|
|
}
|