mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-17 04:45:33 -08:00
Split the web console into by-job files, add page tests and a docs-table test, plus docs
AI Assisted
This commit is contained in:
1 parent
699a827cae
commit
3edb4468a8
121 files changed
+25603
-20145
No files matched your search
@@ -0,0 +1,487 @@
|
||||
/* dashboard.css: The dashboard: the menu, the spec picker, its confirm and the launching pane. */
|
||||
|
||||
/* ------------------------------------------------------------ dashboard */
|
||||
|
||||
/* The dashboard replaces the question column with a menu, and the send bar
|
||||
with a click on a card. `hidden` alone loses to the bar's own display
|
||||
rule, so it needs saying here. */
|
||||
.footer[hidden] { display: none; }
|
||||
|
||||
.dash { max-width: 860px; padding-top: 8px; }
|
||||
.dash-title { margin: 6px 0 8px; font: 600 clamp(26px, 4vw, 36px)/1.1 var(--serif); }
|
||||
.dash-note { margin: 0 0 26px; font-size: 14.5px; color: var(--ink-2); }
|
||||
/* The first-run role nudge: one line above the title, wrapping on a narrow
|
||||
window, until looks.json carries a role. */
|
||||
.dash-nudge {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 10px 14px;
|
||||
margin: 0 0 18px;
|
||||
padding: 10px 14px;
|
||||
background: var(--accent-soft);
|
||||
border: 1px solid var(--accent-line);
|
||||
border-radius: var(--radius);
|
||||
color: var(--ink);
|
||||
font-size: 14px;
|
||||
}
|
||||
.dash-nudge-text { flex: 1 1 16em; }
|
||||
/* The session meter at red: the same slot, in the careful colour. */
|
||||
.dash-nudge.meter-banner {
|
||||
background: var(--warn-soft);
|
||||
border-color: var(--warn);
|
||||
border-left-width: 4px;
|
||||
color: var(--ink);
|
||||
}
|
||||
/* A newer release: the same slot, in the accent, with the label as the way
|
||||
into the update modal and a small × that hides it for this session. */
|
||||
.dash-nudge.update-banner {
|
||||
position: relative;
|
||||
padding-left: 40px;
|
||||
padding-right: 40px;
|
||||
border-left-width: 4px;
|
||||
border-left-color: var(--accent-line);
|
||||
color: var(--ink);
|
||||
box-shadow: var(--glow);
|
||||
}
|
||||
.update-banner-open {
|
||||
flex: 1 1 16em;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background: none;
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.02em;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
.update-banner-open:hover { text-decoration: underline; }
|
||||
/* Pinned to the right edge, out of the flow, so the label centres on the
|
||||
whole banner rather than on what the × leaves of it. */
|
||||
.update-banner-dismiss {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 10px;
|
||||
transform: translateY(-50%);
|
||||
padding: 0 6px;
|
||||
border: 0;
|
||||
border-radius: var(--radius);
|
||||
background: none;
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
font-size: 16px;
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
}
|
||||
.update-banner-dismiss:hover { background: var(--accent-line); }
|
||||
/* Wide enough that the update command sits on one line beside Copy; a
|
||||
narrow window still wraps it rather than overflowing. */
|
||||
#update-modal { max-width: 720px; }
|
||||
.update-steps { margin: 0 0 12px; padding-left: 1.4em; color: var(--ink); }
|
||||
.update-steps li { margin: 4px 0; }
|
||||
/* The hand-off copy row, in the modal's first step: the command and its Copy
|
||||
side by side. */
|
||||
.update-command {
|
||||
margin: 6px 0 4px;
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
gap: 10px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.update-command code {
|
||||
flex: 1 1 260px;
|
||||
min-width: 0;
|
||||
font: 13px/1.5 var(--mono);
|
||||
color: var(--ink);
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--rule-2);
|
||||
border-radius: 8px;
|
||||
padding: 10px 12px;
|
||||
white-space: pre-wrap;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.dash-nudge-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
|
||||
.dash-nudge-actions .btn.tiny { margin-bottom: 0; }
|
||||
.dash-working {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
width: fit-content;
|
||||
margin-top: 10px;
|
||||
padding: 7px 14px;
|
||||
color: var(--accent);
|
||||
background: var(--accent-soft);
|
||||
border: 1px solid var(--accent-line);
|
||||
border-radius: 10px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.dash-group { margin-bottom: 30px; }
|
||||
|
||||
/* A switch, not a checkbox look: it filters the menu live rather than being
|
||||
an answer. The real checkbox stays in the tree (visually hidden) so the
|
||||
keyboard, focus ring and screen readers all work as for any input. */
|
||||
.dash-toggle {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
margin: -12px 0 26px;
|
||||
font-size: 13px;
|
||||
color: var(--ink-2);
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
.dash-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
|
||||
.dash-toggle-track {
|
||||
position: relative;
|
||||
flex: none;
|
||||
width: 34px;
|
||||
height: 20px;
|
||||
border-radius: 999px;
|
||||
background: var(--panel-2);
|
||||
border: 1px solid var(--rule-2);
|
||||
transition: background 0.15s ease, border-color 0.15s ease;
|
||||
}
|
||||
.dash-toggle-track::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 2px;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
border-radius: 50%;
|
||||
background: var(--ink-3);
|
||||
transition: transform 0.15s ease, background 0.15s ease;
|
||||
}
|
||||
.dash-toggle input:checked + .dash-toggle-track { background: var(--accent); border-color: var(--accent); }
|
||||
.dash-toggle input:checked + .dash-toggle-track::after { transform: translateX(14px); background: var(--accent-ink); }
|
||||
.dash-toggle input:focus-visible + .dash-toggle-track { outline: 2px solid var(--accent); outline-offset: 2px; }
|
||||
.dash-toggle:hover .dash-toggle-track { border-color: var(--accent-line); }
|
||||
|
||||
.dash-empty { margin: 0 0 30px; font-size: 13.5px; color: var(--ink-3); font-style: italic; }
|
||||
.dash-group-title {
|
||||
margin: 0 0 12px;
|
||||
font-size: 11.5px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.09em;
|
||||
text-transform: uppercase;
|
||||
color: var(--ink-3);
|
||||
border-bottom: 1px solid var(--rule);
|
||||
padding-bottom: 8px;
|
||||
}
|
||||
|
||||
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
|
||||
|
||||
/* A card IS a button, so it carries the reset the page's other big clickable
|
||||
surfaces do; the look is the panel look with a lift on hover, and the
|
||||
accent border that elsewhere means "the thing in play". */
|
||||
.dash-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
padding: 16px;
|
||||
border: 1px solid var(--rule-2);
|
||||
border-radius: var(--radius);
|
||||
background: var(--panel);
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
color: var(--ink);
|
||||
cursor: pointer;
|
||||
transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
|
||||
}
|
||||
.dash-card:hover:not(:disabled) {
|
||||
transform: translateY(-2px);
|
||||
border-color: var(--accent-line);
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
.dash-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
||||
.dash-card:disabled { cursor: default; opacity: 0.55; }
|
||||
.dash-card.is-suggested { border-color: var(--accent); }
|
||||
.dash-card.is-going { border-color: var(--accent); opacity: 1; }
|
||||
|
||||
.dash-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
||||
.dash-chip {
|
||||
font-size: 10.5px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--ink-3);
|
||||
border: 1px solid var(--rule-2);
|
||||
border-radius: 999px;
|
||||
padding: 2px 8px;
|
||||
}
|
||||
.dash-card.is-suggested .dash-chip { color: var(--accent); border-color: var(--accent-line); }
|
||||
|
||||
.dash-card-title { font-size: 15px; font-weight: 650; }
|
||||
.dash-card-blurb { font-size: 13px; color: var(--ink-2); flex: 1; }
|
||||
.dash-card-detail { font-size: 12px; color: var(--accent); }
|
||||
|
||||
.dash-card-foot {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
margin-top: 4px;
|
||||
padding-top: 10px;
|
||||
border-top: 1px solid var(--rule);
|
||||
}
|
||||
/* Wraps at the dashes rather than cut off: a command missing its end
|
||||
("/plan2code-3-implement-revi…") is no command at all. */
|
||||
.dash-card-cmd {
|
||||
font-family: var(--mono);
|
||||
font-size: 11.5px;
|
||||
color: var(--ink-3);
|
||||
min-width: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.dash-card-go { color: var(--accent); font-weight: 700; transition: transform 0.15s ease; }
|
||||
.dash-card:hover:not(:disabled) .dash-card-go { transform: translateX(3px); }
|
||||
|
||||
/* The reason a card is off. The card greys via :disabled; this line is why,
|
||||
so the menu teaches the pipeline instead of just refusing clicks. */
|
||||
.dash-card-off { font-size: 12px; color: var(--ink-3); font-style: italic; }
|
||||
|
||||
/* -------------------------------------------------------- spec picker */
|
||||
|
||||
/* The picker's chips are the same vocabulary as the rail's items: a bordered
|
||||
lozenge that lights up on the current one. */
|
||||
.spec-pick { margin-bottom: 30px; }
|
||||
.spec-row { display: flex; flex-wrap: wrap; gap: 10px; }
|
||||
.spec-chip {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
padding: 10px 14px;
|
||||
border: 1px solid var(--rule-2);
|
||||
border-radius: var(--radius);
|
||||
background: var(--panel);
|
||||
font: inherit;
|
||||
text-align: left;
|
||||
color: var(--ink);
|
||||
cursor: pointer;
|
||||
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
||||
}
|
||||
.spec-chip:hover { border-color: var(--accent-line); }
|
||||
.spec-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
||||
.spec-chip.is-sel { border-color: var(--accent); box-shadow: var(--shadow); }
|
||||
.spec-chip-name { font-size: 13.5px; font-weight: 650; }
|
||||
.spec-chip-state {
|
||||
font-size: 10.5px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--accent);
|
||||
}
|
||||
.spec-chip:not(.is-sel) .spec-chip-state { color: var(--ink-3); }
|
||||
.spec-chip-detail { font-size: 11.5px; color: var(--ink-3); }
|
||||
/* A handoff in the picker: the same lozenge, dashed, in the stage colour. */
|
||||
.spec-chip.is-handoff { border-style: dashed; }
|
||||
.spec-chip.is-handoff .spec-chip-state, .spec-chip.is-handoff:not(.is-sel) .spec-chip-state { color: var(--stage); }
|
||||
.spec-chip.is-handoff.is-sel { border-style: solid; border-color: var(--stage); }
|
||||
.spec-chip.is-handoff.is-deleting { opacity: 0.5; }
|
||||
|
||||
/* What a picked handoff shows under the picker. */
|
||||
.handoff-preview {
|
||||
margin: 0 0 30px;
|
||||
padding: 18px 20px;
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--stage);
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
.handoff-preview-title { font: 600 20px/1.25 var(--serif); margin: 0 0 4px; }
|
||||
.handoff-preview-meta { margin: 0 0 14px; font-size: 12.5px; color: var(--ink-3); }
|
||||
.handoff-preview-label {
|
||||
margin: 0 0 3px;
|
||||
font-size: 10.5px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
color: var(--stage);
|
||||
}
|
||||
.handoff-preview-next { margin: 0 0 16px; font-size: 14px; color: var(--ink); }
|
||||
.handoff-preview-actions { display: flex; flex-wrap: wrap; gap: 10px; }
|
||||
.handoff-preview-actions .btn.danger { margin-left: auto; }
|
||||
.modal.handoff-read { max-width: 720px; }
|
||||
.modal.handoff-read[open] { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
|
||||
.handoff-body { flex: 1; min-height: 0; overflow-y: auto; margin-top: 8px; }
|
||||
.modal.handoff-read .modal-actions { flex: none; }
|
||||
|
||||
/* A spec's Delete button sits beside its chip, not inside it: a button cannot
|
||||
hold a button. Quiet until the chip is hovered or focused. */
|
||||
.spec-chip-wrap { position: relative; display: flex; }
|
||||
.spec-chip-wrap.is-fixed .spec-chip:not(.is-sel) { opacity: 0.6; }
|
||||
.spec-chip-wrap .spec-chip { padding-right: 36px; }
|
||||
.spec-chip-del {
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
right: 6px;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border: 1px solid transparent;
|
||||
border-radius: 6px;
|
||||
background: transparent;
|
||||
color: var(--ink-3);
|
||||
font: inherit;
|
||||
font-size: 15px;
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
opacity: 0.55;
|
||||
}
|
||||
.spec-chip-wrap:hover .spec-chip-del,
|
||||
.spec-chip-del:focus-visible { opacity: 1; }
|
||||
.spec-chip-del:hover { color: var(--warn); border-color: var(--warn); opacity: 1; }
|
||||
.spec-chip-del:focus-visible { outline: 2px solid var(--warn); outline-offset: 1px; }
|
||||
.spec-chip-del:disabled { cursor: default; opacity: 0.3; }
|
||||
/* A fixed bug's Delete is always shown, as a pill at the chip's bottom right;
|
||||
the chip makes room below its lines so the pill never covers the name. The
|
||||
chip's is-fixed dimming targets .spec-chip, so the pill keeps full strength. */
|
||||
.spec-chip-wrap.is-fixed .spec-chip { padding-right: 14px; padding-bottom: 36px; }
|
||||
.spec-chip-del-label {
|
||||
position: absolute;
|
||||
right: 8px;
|
||||
bottom: 8px;
|
||||
padding: 2px 10px;
|
||||
border: 1px solid var(--warn);
|
||||
border-radius: 999px;
|
||||
background: var(--panel);
|
||||
color: var(--warn);
|
||||
font: inherit;
|
||||
font-size: 12.5px;
|
||||
font-weight: 600;
|
||||
line-height: 1.5;
|
||||
cursor: pointer;
|
||||
}
|
||||
.spec-chip-del-label:hover:not(:disabled) { background: var(--warn-soft); }
|
||||
.spec-chip-del-label:focus-visible { outline: 2px solid var(--warn); outline-offset: 1px; }
|
||||
.spec-chip-del-label:disabled { cursor: default; opacity: 0.4; }
|
||||
.spec-chip-wrap.is-deleting .spec-chip { opacity: 0.5; }
|
||||
.delete-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0 0; font-size: 13.5px; }
|
||||
.delete-facts dt { color: var(--ink-3); }
|
||||
.delete-facts dd { margin: 0; overflow-wrap: anywhere; }
|
||||
.delete-confirm { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
|
||||
.delete-confirm[hidden] { display: none; }
|
||||
.delete-confirm input {
|
||||
padding: 8px 10px;
|
||||
border: 1px solid var(--rule-2);
|
||||
border-radius: var(--radius);
|
||||
background: var(--panel);
|
||||
color: var(--ink);
|
||||
font: inherit;
|
||||
}
|
||||
.delete-confirm input:focus-visible { outline: 2px solid var(--warn); outline-offset: 1px; }
|
||||
|
||||
/* ------------------------------------------------- dashboard confirm */
|
||||
|
||||
/* The beat between "I clicked a card" and "it is running": what the pick is,
|
||||
what it will do, and a START that means it. Narrower than the menu, centred
|
||||
like the launching pane it precedes. */
|
||||
.dash-confirm {
|
||||
max-width: 560px;
|
||||
margin: 3vh auto 0;
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
justify-items: center;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* A smaller stage than the launching hero: the same sky, a moment shorter. */
|
||||
.confirm-stage { height: 130px; }
|
||||
.confirm-stage .sky .star { animation: star-fly var(--dur, 5s) linear var(--delay, 0s) infinite; }
|
||||
|
||||
.confirm-planny {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
bottom: 12px;
|
||||
width: 58px;
|
||||
height: 80px;
|
||||
transform: translateX(-50%);
|
||||
filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
|
||||
}
|
||||
|
||||
.confirm-head { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
|
||||
.dash-confirm .dash-title { margin: 2px 0 0; }
|
||||
.confirm-about { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
|
||||
.confirm-detail { margin: 0; font-size: 13px; color: var(--accent); }
|
||||
.confirm-spec { margin: 0; font-size: 13px; color: var(--ink-2); }
|
||||
.confirm-spec code { font-family: var(--mono); font-size: 12px; }
|
||||
.confirm-cmd { margin: 2px 0 0; }
|
||||
.confirm-cmd code {
|
||||
font-family: var(--mono);
|
||||
font-size: 12.5px;
|
||||
color: var(--ink-2);
|
||||
background: var(--panel-2);
|
||||
border: 1px solid var(--rule);
|
||||
border-radius: 6px;
|
||||
padding: 4px 10px;
|
||||
}
|
||||
.confirm-actions { display: flex; gap: 10px; margin-top: 10px; }
|
||||
|
||||
/* ------------------------------------------------------- launching pane */
|
||||
|
||||
.launching {
|
||||
max-width: 560px;
|
||||
margin: 4vh auto 0;
|
||||
text-align: center;
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
justify-items: center;
|
||||
}
|
||||
|
||||
/* The same sky the dock fills behind Planny, here in a stage sized for a
|
||||
hero: the mask fades the stars at the edges exactly the way it does in
|
||||
the aside. */
|
||||
.launch-stage {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 180px;
|
||||
overflow: hidden;
|
||||
-webkit-mask-image: radial-gradient(120% 100% at 50% 40%, #000 42%, transparent 78%);
|
||||
mask-image: radial-gradient(120% 100% at 50% 40%, #000 42%, transparent 78%);
|
||||
}
|
||||
.launch-sky { opacity: 0.9; }
|
||||
/* The dock only animates its stars while .is-flying; centre stage they are
|
||||
the show, so the flight runs unconditionally. */
|
||||
.launch-stage .sky .star { animation: star-fly var(--dur, 5s) linear var(--delay, 0s) infinite; }
|
||||
|
||||
.launch-planny {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
bottom: 26px;
|
||||
width: 74px;
|
||||
height: 102px;
|
||||
margin-left: -37px;
|
||||
/* The dock's flight keyframes carry the forward lean; a second, slower bob
|
||||
on top keeps a long wait from reading as a loop on rails. */
|
||||
animation:
|
||||
planny-fly 1.7s ease-in-out infinite,
|
||||
launch-bob 3.4s ease-in-out infinite;
|
||||
}
|
||||
@keyframes launch-bob {
|
||||
0%, 100% { margin-bottom: 0; }
|
||||
50% { margin-bottom: 10px; }
|
||||
}
|
||||
|
||||
.launch-title { margin: 0; font: 600 clamp(24px, 4vw, 34px)/1.12 var(--serif); }
|
||||
.launch-quip {
|
||||
margin: 0;
|
||||
font-size: 14.5px;
|
||||
font-weight: 600;
|
||||
color: var(--accent);
|
||||
/* The line swaps on a timer; a minimum keeps the hint under it from
|
||||
hopping around as the words change length. */
|
||||
min-height: 1.4em;
|
||||
animation: launch-quip-in 0.35s ease-out;
|
||||
}
|
||||
@keyframes launch-quip-in {
|
||||
from { opacity: 0; transform: translateY(5px); }
|
||||
to { opacity: 1; transform: none; }
|
||||
}
|
||||
.launch-hint { margin: 0; font-size: 12.5px; color: var(--ink-3); max-width: 46ch; }
|
||||
/* A line, never a banner: no border, no background, no icon. */
|
||||
.approval-tip { margin: 18px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }
|
||||
|
||||
Reference in new issue
Block a user