PlotDirector/PlotLine/wwwroot/css/desktop-promotion.css
Nick Beckley e48889ac05 Complete desktop workspaces, context menus and plot health
Commit the pending application, help and browser regression work. Pin the patched PKCS dependency for the production release.
2026-10-31 09:27:04 +00:00

37 lines
4.1 KiB
CSS

/* The surrounding chrome follows every application palette; genuine screenshots stay dark. */
.pd-desktop-promotion { width: min(1600px, 97vw); max-width:97vw; max-height:96dvh; padding:clamp(16px,2vw,30px); border:1px solid var(--pd-border); border-radius:16px; background:var(--pd-surface); color:var(--pd-text); box-shadow:0 24px 90px #0008; }
.pd-desktop-promotion::backdrop { background:#080b10b8; }
.pd-desktop-promotion header {padding-right:35px;}
.pd-desktop-eyebrow {color:var(--pd-accent); font-size:.72rem; letter-spacing:.16em; font-weight:800; margin:0 0 5px;}
.pd-desktop-promotion h1 {font-size:clamp(1.5rem,2.4vw,2.6rem); margin:0; color:var(--pd-heading);}
.pd-desktop-tagline {font-size:clamp(1rem,1.4vw,1.4rem); color:var(--pd-muted); margin:6px 0 15px;}
.pd-desktop-close {position:absolute; right:18px; top:12px; border:0; background:transparent; color:var(--pd-text); font-size:2rem; line-height:1.2;}
.pd-desktop-labels {display:flex; justify-content:space-between; font-size:.72rem; letter-spacing:.1em; font-weight:800; margin-bottom:6px;}
.pd-desktop-viewport {overflow:auto; border:1px solid var(--pd-border); border-radius:8px;}
.pd-desktop-comparison {position:relative; aspect-ratio:1710/920; overflow:hidden; touch-action:pan-y; cursor:ew-resize; user-select:none;}
.pd-desktop-comparison img {position:absolute; inset:0; width:100%; height:100%; object-fit:fill; pointer-events:none;}
/* One pixel of source-height difference is normalised into a shared frame. No independent resizing. */
.pd-desktop-after {clip-path:inset(0 calc(100% - var(--split)) 0 0);}
.pd-desktop-divider {position:absolute; left:var(--split); top:0; bottom:0; width:2px; background:#fff; transform:translateX(-50%); box-shadow:0 0 5px #000;}
.pd-desktop-divider span {position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); display:grid; place-items:center; width:42px; height:42px; border-radius:50%; background:#fff; color:#20252d; font-size:24px; box-shadow:0 2px 12px #0008;}
.pd-desktop-hint .pd-desktop-after {transition:clip-path .45s ease-out;}
.pd-desktop-hint .pd-desktop-divider {transition:left .45s ease-out;}
.pd-desktop-slider-label {display:block; text-align:center; font-size:.8rem; color:var(--pd-muted); margin-top:8px;}
.pd-desktop-promotion input[type=range] {display:block; width:100%; accent-color:var(--pd-accent); height:24px;}
.pd-desktop-benefits {display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin:12px 0; font-size:.85rem; color:var(--pd-muted);}
.pd-desktop-benefits p {margin:0;}
.pd-desktop-benefits strong {display:block; color:var(--pd-text); margin-bottom:3px;}
.pd-desktop-promotion footer {display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:12px;}
.pd-desktop-promotion footer .btn-primary {font-weight:700; padding:12px 24px;}
.pd-desktop-note, .pd-desktop-promotion [role=status] {text-align:center; font-size:.85rem; margin:10px 0 0;}
.pd-desktop-note {color:var(--pd-muted);}
.pd-desktop-promotion :focus-visible {outline:3px solid var(--pd-accent); outline-offset:3px;}
.pd-desktop-reminder {position:fixed; right:20px; bottom:20px; z-index:1040; max-width:min(380px,calc(100vw - 40px)); padding:20px; background:var(--pd-surface); color:var(--pd-text); border:1px solid var(--pd-border); border-radius:10px; box-shadow:0 8px 30px #0004;}
html[data-standalone=true] [data-pwa-install-item], html[data-standalone=true] .pd-desktop-promotion, html[data-standalone=true] .pd-desktop-reminder {display:none!important;}
@media(max-width:650px) { .pd-desktop-comparison {min-width:800px;} .pd-desktop-benefits {grid-template-columns:1fr 1fr;gap:12px;} .pd-desktop-promotion {max-height:94dvh;} }
@media(prefers-reduced-motion:reduce) { .pd-desktop-hint * {transition:none!important;} }
.pd-desktop-promotion, .pd-desktop-promotion * {box-sizing:border-box;}
.pd-desktop-promotion input[type=range] {margin-inline:0;}
/* Keep the user's next action available even when the comparison needs scrolling. */
.pd-desktop-promotion footer {position:sticky; bottom:0; z-index:2; background:var(--pd-surface); padding:12px 0 4px; box-shadow:0 -10px 12px var(--pd-surface);}