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;
|
2023-06-19 17:08:12 +02:00
|
|
|
z-index: var(--zIndex-modal);
|
2021-02-14 18:18:34 +05:30
|
|
|
}
|
|
|
|
|
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);
|
2022-11-01 17:29:58 +01:00
|
|
|
|
|
|
|
.Island {
|
|
|
|
padding: 2.5rem !important;
|
|
|
|
}
|
2020-09-26 02:48:45 +05:30
|
|
|
}
|
2020-01-15 20:42:02 +05:00
|
|
|
|
2020-09-26 02:48:45 +05:30
|
|
|
.Modal__background {
|
2023-05-26 16:16:55 +02:00
|
|
|
position: fixed;
|
2020-09-26 02:48:45 +05:30
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
z-index: 1;
|
2022-11-01 17:29:58 +01:00
|
|
|
background-color: rgba(#121212, 0.2);
|
2023-05-26 16:16:55 +02:00
|
|
|
|
|
|
|
animation: Modal__background__fade-in 0.125s linear forwards;
|
2020-09-26 02:48:45 +05:30
|
|
|
}
|
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-04-15 21:20:35 +02:00
|
|
|
|
2021-02-16 20:22:18 +02:00
|
|
|
border: 1px solid var(--dialog-border-color);
|
2022-11-01 17:29:58 +01:00
|
|
|
box-shadow: var(--modal-shadow);
|
2021-01-03 11:50:41 +02:00
|
|
|
border-radius: 6px;
|
2021-03-14 14:30:12 +01:00
|
|
|
box-sizing: border-box;
|
2021-01-03 11:50:41 +02:00
|
|
|
|
2021-04-13 01:29:25 +05:30
|
|
|
&:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
2021-04-08 19:54:50 +02:00
|
|
|
@include isMobile {
|
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
|
|
|
|
2023-05-26 16:16:55 +02:00
|
|
|
@keyframes Modal__background__fade-in {
|
|
|
|
from {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
to {
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-09-26 02:48:45 +05:30
|
|
|
@keyframes Modal__content_fade-in {
|
|
|
|
from {
|
|
|
|
opacity: 0;
|
2023-05-26 16:16:55 +02:00
|
|
|
transform: scale(0.9);
|
2020-09-26 02:48:45 +05:30
|
|
|
}
|
|
|
|
to {
|
|
|
|
opacity: 1;
|
2023-05-26 16:16:55 +02:00
|
|
|
transform: scale(1);
|
2020-09-26 02:48:45 +05:30
|
|
|
}
|
2020-03-11 19:42:18 +01:00
|
|
|
}
|
2020-09-26 02:48:45 +05:30
|
|
|
|
|
|
|
.Modal__close {
|
2022-11-01 17:29:58 +01:00
|
|
|
color: var(--icon-fill-color);
|
|
|
|
margin: 0;
|
|
|
|
padding: 0.375rem;
|
|
|
|
position: absolute;
|
|
|
|
top: 1rem;
|
|
|
|
right: 1rem;
|
|
|
|
border: 0;
|
|
|
|
background-color: transparent;
|
|
|
|
line-height: 0;
|
|
|
|
cursor: pointer;
|
2020-09-26 02:48:45 +05:30
|
|
|
|
|
|
|
svg {
|
2022-11-01 17:29:58 +01:00
|
|
|
width: 1.5rem;
|
|
|
|
height: 1.5rem;
|
2020-09-26 02:48:45 +05:30
|
|
|
}
|
2020-03-13 15:32:47 -04:00
|
|
|
}
|
|
|
|
|
2021-04-08 19:54:50 +02:00
|
|
|
@include isMobile {
|
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
|
|
|
}
|
|
|
|
}
|