PlotDirector/PlotLine/wwwroot/css/investigation-companion.css

47 lines
5.2 KiB
CSS

/* Independent left guidance and existing right Help, sharing the application's drawer shell. */
.plotline-help-layout:has([data-investigation-companion]){--context-sticky-top:8px;--investigation-width:320px}
.pd-investigation{flex:0 0 var(--investigation-width);width:var(--investigation-width);min-width:0;border-right:1px solid var(--pd-border-subtle);background:var(--pd-surface);color:var(--pd-text)}
.pd-investigation-panel{top:var(--context-sticky-top);max-height:calc(100dvh - var(--context-sticky-top) - 8px)}
.pd-investigation .plotline-help-drawer-header{flex-wrap:wrap;padding:.85rem}
.pd-investigation .plotline-help-drawer-content{padding:.85rem;min-height:0;overscroll-behavior:contain}
.pd-investigation-tab{display:none}
.pd-investigation[data-collapsed=true]{flex-basis:36px;width:36px}
.pd-investigation[data-collapsed=true]>.pd-investigation-panel{display:none}
.pd-investigation[data-collapsed=true]>.pd-investigation-tab{display:block;position:sticky;top:var(--context-sticky-top);writing-mode:vertical-rl;min-height:140px;width:36px;border:0;background:var(--pd-surface-2);color:var(--pd-text);padding:1rem .5rem;font:inherit;cursor:pointer}
.pd-investigation-tab:focus-visible,.pd-investigation-splitter:focus-visible{outline:2px solid var(--pd-focus);outline-offset:-2px}
.pd-investigation-splitter{flex:0 0 8px;cursor:col-resize;touch-action:none;background:linear-gradient(90deg,transparent,var(--pd-border-subtle),transparent)}
.pd-investigation[data-collapsed=true]+.pd-investigation-splitter{display:none}
.pd-guidance-message{margin:0;padding:0 .85rem .5rem;font-size:.85rem}
.pd-investigation h2{font-size:1.1rem}.pd-investigation h3{font-size:1rem}.pd-investigation p,.pd-investigation label{font-size:.9rem}
.pd-guidance-tool{border:1px solid var(--pd-border-subtle);border-radius:6px;margin:1rem 0;padding:.65rem}
.pd-guidance-tool[data-selected=true]{border-color:var(--pd-accent);box-shadow:inset 3px 0 var(--pd-accent)}
.pd-guidance-tool button,.pd-guidance-tool select{max-width:100%;white-space:normal}
.pd-investigation select{width:100%;min-width:0}.pd-investigation .btn{white-space:normal}
/* Correct existing Help sticky containment without coupling its business state to Investigation. */
.plotline-help-layout:has([data-investigation-companion])>.plotline-help-drawer>.plotline-help-drawer-panel{top:var(--context-sticky-top);max-height:calc(100dvh - var(--context-sticky-top) - 8px)}
.plotline-help-layout:has([data-investigation-companion])>.plotline-help-drawer .plotline-help-drawer-content{min-height:0}
.plotline-help-layout:has([data-investigation-companion]) .plotline-help-collapsed-strip{position:sticky;top:var(--context-sticky-top);min-height:140px}
/* Bound all three columns: reserve at least 560px for the central surface at desktop widths. */
@media(min-width:1100px){.plotline-help-layout:has(.pd-investigation[data-collapsed=false]).help-open:not(.help-collapsed)>.plotline-help-drawer{min-width:240px;max-width:max(240px,calc(100% - var(--investigation-width) - 576px));flex-basis:clamp(240px,var(--help-drawer-width),360px)}}
@media(max-width:1099px){
.pd-investigation[data-collapsed=false]{flex-basis:min(var(--investigation-width),calc(100% - 480px));width:min(var(--investigation-width),calc(100% - 480px))}
/* Small windows use an in-flow, full-width guidance row. No overlay and no lost main controls. */
.plotline-help-layout:has(.pd-investigation[data-collapsed=false]){flex-wrap:wrap}
.plotline-help-layout>.pd-investigation[data-collapsed=false]{flex:0 0 100%;width:100%;border-bottom:1px solid var(--pd-border)}
.pd-investigation[data-collapsed=false]+.pd-investigation-splitter{display:none}
.pd-investigation-panel{position:relative;top:0;max-height:55dvh}
.plotline-help-layout:has([data-investigation-companion]).help-open>.plotline-help-drawer{flex-basis:36px;min-width:36px;max-width:36px}
.plotline-help-layout:has([data-investigation-companion]).help-open>.plotline-help-drawer .plotline-help-drawer-panel{display:none}
.plotline-help-layout:has([data-investigation-companion]).help-open>.plotline-help-drawer .plotline-help-collapsed-strip{display:flex;width:36px;writing-mode:vertical-rl;cursor:pointer}
.plotline-help-layout:has([data-investigation-companion]).help-open>.plotline-help-splitter{display:none}
.plotline-help-layout:has([data-investigation-companion]).help-open[data-narrow-help=true]>.plotline-help-drawer{flex:0 0 100%;width:100%;max-width:100%;order:4}
.plotline-help-layout:has([data-investigation-companion]).help-open[data-narrow-help=true]{flex-wrap:wrap}
.plotline-help-layout[data-narrow-help=true]>.plotline-help-drawer .plotline-help-drawer-panel{display:flex;position:relative;top:0;max-height:55dvh}
.plotline-help-layout[data-narrow-help=true]>.plotline-help-drawer .plotline-help-collapsed-strip{display:none}
}
body.reader-focused .pd-investigation,body.reader-focused .pd-investigation-splitter{visibility:hidden}
@media(min-width:1100px){
.plotline-help-layout.help-open:not(.help-collapsed)>.pd-investigation[data-collapsed=false]{flex-basis:clamp(280px,var(--investigation-width),calc(100% - 816px));width:clamp(280px,var(--investigation-width),calc(100% - 816px))}
}
.plotline-help-layout:has([data-investigation-companion])>.plotline-help-drawer .plotline-help-drawer-header{flex-wrap:wrap;overflow-wrap:anywhere}