Files
2023-07-30 05:05:04 +00:00

96 lines
1.9 KiB
SCSS

.dialog {
border: none;
background-color: transparent;
border-radius: var(--dialog-border-radius);
padding: 0;
color: inherit;
max-height: calc(100vh - 12px);
overflow-y: auto;
width: 500px;
max-width: calc(100vw - 12px);
position: fixed;
left: calc(50vw - min(500px / 2, (100vw - 12px) / 2));
right: calc(50vw - min(500px / 2, (100vw - 12px) / 2));
top: calc(50vh - (100vh - 12px) / 2);
bottom: calc(50vh - (100vh - 12px) / 2);
}
.dialog--auto-width {
width: max-content;
left: 0;
right: 0;
}
.dialog::backdrop {
background-color: rgba(0, 0, 0, 0.67);
}
.dialog__form {
border: var(--dialog-border);
background-color: var(--dialog-bg);
box-shadow: var(--dialog-box-shadow);
contain: content;
height: fit-content;
padding: 20px;
display: flex;
flex-direction: column;
gap: 16px;
}
.dialog__header {
background-color: var(--dialog-head-bg);
color: var(--dialog-head-fg);
margin: 0;
display: flex;
justify-content: space-between;
align-items: center;
}
.dialog__heading,
.dialog__buttons {
background-color: var(--dialog-head-bg);
color: var(--dialog-head-fg);
display: block;
margin: 0;
}
.dialog__heading {
padding: 14px 18px;
font-size: 14px;
color: var(--dialog-head-fg);
text-align: left;
line-height: 1.5;
}
.dialog__buttons {
padding: 9px;
display: flex;
justify-content: end;
column-gap: 9px;
}
.dialog__actions {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 16px;
align-items: center;
padding: 4px 12px;
color: var(--dialog-head-fg);
background-color: var(--dialog-head-bg);
}
.dialog__action {
flex-shrink: 0;
color: var(--dialog-head-fg);
font-size: 14px;
background-color: var(--dialog-head-bg);
}
.dialog__body {
padding: 18px;
font-size: 14px;
display: flow-root;
color: var(--dialog-fg);
}