loopable / web /src /styles /sdlc81 /dialog-size.css
fsanyoto's picture
Deploy AIOS web (React glide grid + FastAPI slice)
9e15897 verified
Raw History Blame Contribute Delete
1.56 kB
/* C7 / R36: every dialog, including a confirm, shares this viewport-bounded box. */
:root {
--lp-dialog-w: min(1120px, calc(100vw - 32px));
--lp-dialog-h: min(760px, calc(100dvh - 48px));
}
/* The tokens reserve the viewport inset for both legacy modal families. */
.set-backdrop,
.conn-modal-backdrop {
padding: 0 !important;
}
.set-modal,
.conn-modal {
width: var(--lp-dialog-w) !important;
height: var(--lp-dialog-h) !important;
min-width: 0 !important;
max-width: none !important;
min-height: 0 !important;
max-height: none !important;
box-sizing: border-box;
flex-shrink: 0;
overflow: hidden;
}
.set-modal {
position: relative;
}
.set-modal > .set-rail {
min-height: 0;
overflow: auto;
overscroll-behavior: contain;
}
.set-modal > .set-body,
.conn-modal > .conn-modal-body {
flex: 1 1 auto;
min-width: 0;
min-height: 0;
overflow: auto;
overscroll-behavior: contain;
scrollbar-gutter: stable;
}
/* Anchor Settings and Alerts close buttons outside their scrolling body. */
.set-modal > .set-body {
position: static;
}
.conn-modal > .conn-modal-head,
.conn-modal > .conn-modal-tabs {
flex-shrink: 0;
}
/* Keep the section controls above the scrolling tab panel. */
.lp-dialog > .home-tpl {
display: flex;
flex: 1 1 auto;
flex-direction: column;
gap: var(--lp-home-tile-inset);
min-width: 0;
min-height: 0;
}
.home-tpl > .home-layout-toggle {
align-self: flex-start;
flex-shrink: 0;
flex-wrap: wrap;
}
.home-tpl > .shell-newdb-err,
.home-tpl > .lp-dialog-btn {
flex-shrink: 0;
}