2022-02-18 11:05:10 +01:00
|
|
|
.modal {
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
align-items: center;
|
|
|
|
display: none;
|
|
|
|
flex-direction: column;
|
|
|
|
justify-content: center;
|
|
|
|
overflow: hidden;
|
|
|
|
position: fixed;
|
2024-01-13 18:30:45 +01:00
|
|
|
z-index: 2;
|
2022-02-18 11:05:10 +01:00
|
|
|
|
|
|
|
&.is-visible {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.modal-background {
|
|
|
|
background-color: rgba(10,10,10,.86);
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
top: 0;
|
|
|
|
}
|
|
|
|
|
2022-03-04 16:33:45 +01:00
|
|
|
button.close {
|
|
|
|
user-select: none;
|
|
|
|
background-color: rgba(10,10,10,.2);
|
|
|
|
border: none;
|
|
|
|
border-radius: 9999px;
|
|
|
|
cursor: pointer;
|
|
|
|
pointer-events: auto;
|
|
|
|
display: inline-block;
|
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
|
|
|
font-size: 0;
|
|
|
|
height: 20px;
|
|
|
|
max-height: 20px;
|
|
|
|
max-width: 20px;
|
|
|
|
min-height: 20px;
|
|
|
|
min-width: 20px;
|
|
|
|
outline: none;
|
|
|
|
position: relative;
|
|
|
|
width: 20px;
|
|
|
|
|
|
|
|
&::before,
|
|
|
|
&::after {
|
|
|
|
background-color: var(--default-color);
|
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
left: 50%;
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
transform: translateX(-50%) translateY(-50%) rotate(45deg);
|
|
|
|
transform-origin: center center;
|
|
|
|
}
|
|
|
|
&::before {
|
|
|
|
height: 2px;
|
|
|
|
width: 50%;
|
|
|
|
}
|
|
|
|
&::after {
|
|
|
|
height: 50%;
|
|
|
|
width: 2px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-18 11:05:10 +01:00
|
|
|
.modal-card {
|
|
|
|
position: relative;
|
|
|
|
width: 300px;
|
|
|
|
margin: 0 auto;
|
2024-01-11 08:11:32 +01:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2022-02-18 11:05:10 +01:00
|
|
|
max-height: calc(100vh - 40px);
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
@include respond-to("small-up") {
|
|
|
|
width: 560px;
|
|
|
|
}
|
|
|
|
@include respond-to("medium-up") {
|
|
|
|
width: 980px;
|
|
|
|
}
|
|
|
|
@include respond-to("large-up") {
|
|
|
|
width: 1200;
|
|
|
|
}
|
|
|
|
|
2024-01-11 08:11:32 +01:00
|
|
|
&.for-image {
|
|
|
|
display: initial;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
|
2022-02-18 11:05:10 +01:00
|
|
|
header,
|
|
|
|
footer {
|
|
|
|
align-items: center;
|
2022-03-01 16:09:46 +01:00
|
|
|
background-color: var(--navbar-color);
|
2022-02-18 11:05:10 +01:00
|
|
|
display: flex;
|
|
|
|
flex-shrink: 0;
|
|
|
|
justify-content: flex-start;
|
2022-02-19 09:25:51 +01:00
|
|
|
padding: 0.75rem;
|
2022-02-18 11:05:10 +01:00
|
|
|
position: relative;
|
2022-03-01 16:09:46 +01:00
|
|
|
@include transition() {}
|
2022-02-18 11:05:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
header {
|
2022-03-01 16:09:46 +01:00
|
|
|
border-bottom: 1px solid var(--border-color);
|
2022-02-18 11:05:10 +01:00
|
|
|
border-top-left-radius: 6px;
|
|
|
|
border-top-right-radius: 6px;
|
|
|
|
justify-content: space-between;
|
|
|
|
font-size: 1.5rem;
|
2022-03-01 16:09:46 +01:00
|
|
|
@include transition() {}
|
2022-02-18 11:05:10 +01:00
|
|
|
}
|
|
|
|
section {
|
2022-03-01 16:09:46 +01:00
|
|
|
background-color: var(--default-color);
|
2022-02-18 11:05:10 +01:00
|
|
|
flex-grow: 1;
|
|
|
|
flex-shrink: 1;
|
|
|
|
overflow: auto;
|
|
|
|
padding: 20px;
|
2022-03-01 16:09:46 +01:00
|
|
|
@include transition() {}
|
2022-02-18 11:05:10 +01:00
|
|
|
}
|
|
|
|
footer {
|
|
|
|
border-bottom-left-radius: 6px;
|
|
|
|
border-bottom-right-radius: 6px;
|
2022-03-01 16:09:46 +01:00
|
|
|
border-top: 1px solid var(--border-color);
|
2023-10-07 18:52:52 +02:00
|
|
|
justify-content: end;
|
|
|
|
align-items: baseline;
|
|
|
|
|
|
|
|
.field {
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
|
|
padding: 6px;
|
|
|
|
span {
|
|
|
|
padding-left: 6px;
|
|
|
|
}
|
|
|
|
}
|
2022-02-18 11:05:10 +01:00
|
|
|
|
|
|
|
.button:not(:last-child) {
|
|
|
|
margin-right: .5em;
|
|
|
|
}
|
|
|
|
}
|
2024-01-05 12:30:54 +01:00
|
|
|
img {
|
|
|
|
max-width: 100%;
|
2024-01-13 18:44:19 +01:00
|
|
|
max-height: 80vh;
|
2024-01-05 12:30:54 +01:00
|
|
|
}
|
2022-02-18 11:05:10 +01:00
|
|
|
}
|
|
|
|
}
|