60 lines
1.2 KiB
CSS
60 lines
1.2 KiB
CSS
/* The dimming is not a black fill at full strength: the shell under the window has to stay
|
|
recognizable, or the modal reads as a move to another screen. */
|
|
.overlay {
|
|
position: fixed;
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: center;
|
|
padding-top: var(--modal-offset);
|
|
inset: 0;
|
|
background-color: var(--color-scrim);
|
|
}
|
|
|
|
.window {
|
|
width: var(--modal-width);
|
|
max-width: 90vw;
|
|
max-height: 76vh;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-panel);
|
|
background-color: var(--color-elevated);
|
|
}
|
|
|
|
.window[data-size='wide'] {
|
|
width: var(--modal-width-wide);
|
|
}
|
|
|
|
.dialog {
|
|
display: grid;
|
|
grid-template-rows: auto 1fr auto;
|
|
max-height: inherit;
|
|
outline: none;
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
gap: var(--space-4);
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: var(--space-5) var(--space-5) var(--space-4);
|
|
}
|
|
|
|
.title {
|
|
margin: 0;
|
|
color: var(--color-text);
|
|
font-size: var(--font-size-ui);
|
|
font-weight: inherit;
|
|
}
|
|
|
|
.body {
|
|
min-height: 0;
|
|
overflow: auto;
|
|
padding-inline: var(--space-5);
|
|
}
|
|
|
|
.footer {
|
|
display: flex;
|
|
gap: var(--space-4);
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
padding: var(--space-5);
|
|
}
|