2022-08-29 13:59:57 -04:00
|
|
|
.dialog-container,
|
|
|
|
.dialog-overlay {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dialog-container {
|
2022-09-27 14:47:13 -04:00
|
|
|
z-index: z("modal", "dialog");
|
2022-08-29 13:59:57 -04:00
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Ensures the dialog container and all its descendants are not
|
|
|
|
* visible and not focusable when it is hidden.
|
|
|
|
*/
|
|
|
|
.dialog-container[aria-hidden="true"] {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes fade-in {
|
|
|
|
from {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
|
|
|
}
|
2022-09-14 11:06:56 -04:00
|
|
|
|
2022-08-29 13:59:57 -04:00
|
|
|
.dialog-overlay {
|
|
|
|
background: rgba(var(--always-black-rgb), 0.65);
|
|
|
|
animation: fade-in 250ms both;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dialog-content {
|
|
|
|
margin: auto;
|
|
|
|
z-index: z("modal", "content");
|
|
|
|
position: relative;
|
|
|
|
background-color: var(--secondary);
|
|
|
|
animation: fade-in 250ms both;
|
2023-06-13 16:38:31 -04:00
|
|
|
box-shadow: var(--shadow-card);
|
2022-08-29 13:59:57 -04:00
|
|
|
min-width: 40vw;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dialog-body {
|
|
|
|
overflow-y: auto;
|
|
|
|
max-height: 400px;
|
2022-09-14 11:06:56 -04:00
|
|
|
max-width: 800px;
|
2022-08-29 13:59:57 -04:00
|
|
|
padding: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dialog-header {
|
|
|
|
display: flex;
|
|
|
|
padding: 10px 15px;
|
|
|
|
border-bottom: 1px solid var(--primary-low);
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
font-size: var(--font-up-3);
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.dialog-close {
|
|
|
|
margin-left: auto;
|
2022-09-13 12:30:52 -04:00
|
|
|
flex-basis: content;
|
2022-09-14 11:06:56 -04:00
|
|
|
padding-left: 15px;
|
2022-08-29 13:59:57 -04:00
|
|
|
.d-icon {
|
|
|
|
color: var(--primary-high);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.dialog-footer {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
align-items: center;
|
|
|
|
padding: 14px 15px 10px;
|
|
|
|
border-top: 1px solid var(--primary-low);
|
|
|
|
--btn-bottom-margin: 0.3em;
|
|
|
|
.btn {
|
|
|
|
margin: 0 0.75em var(--btn-bottom-margin) 0;
|
|
|
|
}
|
|
|
|
}
|