/* help.css: The help dialog, its diagrams and its tabs. */ /* --------------------------------------------------------- help dialog */ /* Header and Close stay put; only the panel scrolls. */ .modal.help { width: min(960px, calc(100vw - 32px)); height: min(640px, calc(100vh - 32px)); max-width: none; max-height: none; flex-direction: column; } .modal.help[open] { display: flex; } .modal.help .modal-actions { flex: none; margin-top: 16px; align-items: center; } .help-version { margin-right: auto; font-size: 12.5px; color: var(--ink-3); } .help-version a { color: inherit; } .help-layout { display: grid; grid-template-columns: 230px 1fr; gap: 20px; flex: 1; min-height: 0; } .help-tabs { display: flex; flex-direction: column; gap: 2px; min-height: 0; overflow-y: auto; padding-right: 4px; } .help-panels { min-height: 0; min-width: 0; overflow-y: auto; overflow-x: hidden; padding-right: 6px; } .help-tab { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-left: 3px solid transparent; border-radius: 6px; background: transparent; color: var(--ink-2); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; } .help-tab:hover { background: var(--panel-2); color: var(--ink); } .help-tab[aria-selected="true"] { background: var(--accent-soft); color: var(--accent); border-left-color: var(--accent); font-weight: 600; } .help-tab:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; } .help-tab-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } .help-tab:hover .help-tab-icon { stroke: var(--accent); } .help-panel:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; } .help-panel h3 { font: 600 18px/1.3 var(--serif); margin: 0 0 12px; color: var(--accent); } .help-panel p { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-2); } .help-panel p:last-child { margin-bottom: 0; } .help-panel strong { color: var(--ink); } .help-panel .help-lead { font-size: 14.5px; color: var(--ink); margin-bottom: 16px; } .help-panel h4 { font: 600 14px/1.35 var(--sans); margin: 18px 0 6px; color: var(--ink); } .help-panel ul, .help-panel ol { margin: 0 0 12px; padding-left: 20px; font-size: 13.5px; color: var(--ink-2); } .help-panel li { margin-bottom: 5px; } .help-panel li:last-child { margin-bottom: 0; } .help-panel table { border-collapse: collapse; width: 100%; margin: 0 0 12px; font-size: 13.5px; color: var(--ink-2); } .help-panel th, .help-panel td { border: 1px solid var(--rule); padding: 7px 10px; text-align: left; vertical-align: top; } .help-panel th { background: var(--panel-2); font-weight: 600; color: var(--ink); } .help-panel code { font: 0.88em var(--mono); background: var(--panel-2); border: 1px solid var(--rule); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; } /* Help, "When something looks stuck": a calm callout and a symptom / cause / action list. */ .help-panel .help-callout { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 16px; padding: 12px 14px; background: var(--stage-soft); border: 1px solid var(--stage); border-left-width: 4px; border-radius: var(--radius); } .help-callout-icon { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--stage); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } .help-panel .help-callout-label { display: block; margin-bottom: 2px; font-size: 14px; color: var(--ink); } .help-panel .help-callout p { margin: 0; color: var(--ink); } .help-panel ol.help-rows { list-style: none; margin: 0 0 12px; padding: 0; } .help-row { margin: 0 0 8px; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--rule); border-radius: var(--radius); } .help-panel .help-row:last-child { margin-bottom: 0; } .help-row dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; margin: 0; } .help-row dt { font-size: 12px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink-2); padding-top: 1px; } .help-row dd { margin: 0; font-size: 13.5px; color: var(--ink); min-width: 0; overflow-wrap: anywhere; } @media (max-width: 520px) { .help-row dl { grid-template-columns: 1fr; gap: 0; } .help-row dt { margin-top: 6px; } .help-row dt:first-child { margin-top: 0; } } .help-panel .handoff-command { margin: 0 0 12px; } .help-panel .handoff-command:last-child { margin-bottom: 0; } .help-panel .handoff-code { font: 13px/1.5 var(--mono); background: var(--panel); border: 1px solid var(--rule-2); border-radius: 8px; padding: 10px 12px; } /* The icon sheet: present for , never drawn itself. */ .help-icons { position: absolute; width: 0; height: 0; overflow: hidden; } /* The diagrams. Colors only from variables, so each drawing follows the theme and the chosen highlight without a line of script. */ .help-figure { margin: 4px 0 16px; } .help-figure figcaption, .help-moods-title { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-2); } .help-diagram { display: block; width: 100%; max-width: 560px; height: auto; margin: 8px 0 4px; } .hd-box { fill: var(--panel-2); stroke: var(--rule-2); stroke-width: 1.2; } .hd-line { fill: none; stroke: var(--ink-3); stroke-width: 1.4; } .hd-dash { stroke-dasharray: 4 4; } .hd-label { fill: var(--ink); font: 13px var(--sans); } .hd-label.small { fill: var(--ink-2); font-size: 12px; } .hd-accent { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.4; } .hd-label.hd-accent { fill: var(--accent); stroke: none; font-weight: 600; } .hd-flow { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 10; stroke-linecap: round; } .hd-arrow { fill: var(--ink-3); } /* Tab 3: six live clones of Planny, one per mood. */ .help-moods-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; max-width: 560px; } @media (min-width: 900px) { .help-moods-row { grid-template-columns: repeat(6, 1fr); } } .help-mood { display: flex; flex-direction: column; align-items: center; gap: 6px; } .help-mood-bot { width: 40px; height: 56px; } .help-mood span { font-size: 12.5px; color: var(--ink-2); text-align: center; } /* The traveling highlight on the flow diagrams: only on the visible panel, only while the dialog is open, and only when the system allows motion. Otherwise the dashes simply sit still. */ @media (prefers-reduced-motion: no-preference) { @keyframes hd-travel { to { stroke-dashoffset: -32; } } .help-panel:not([hidden]) .hd-flow { animation: hd-travel 1.6s linear infinite; } } @media (max-width: 720px) { .help-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 12px; } .help-tabs { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 0 0 4px; } .help-tab { width: auto; flex: none; white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; border-radius: 6px 6px 0 0; } .help-tab[aria-selected="true"] { border-bottom-color: var(--accent); } } .about-live { padding: 9px 12px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--rule); } .about-live.is-good { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); } .about-live.is-bad { background: var(--stage-soft); border-color: var(--stage); color: var(--stage); } /* Help says some things two ways, once for a browser tab and once for the desktop app's window: `.for-browser` and `.for-app` siblings, with the root marked `in-app` under the app (core.js). Important, because a block's own display (a flex row, say) would otherwise outrank this. */ :root:not(.in-app) .for-app, :root.in-app .for-browser { display: none !important; }