mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-29 21:21:18 -08:00
Add Learning, move tool folders under .plan2code, and the Loop, Snake and console changes
AI Assisted
This commit is contained in:
1 parent
de8a05b958
commit
bb5bd5986d
87 files changed
+9163
-256
No files matched your search
@@ -21,6 +21,10 @@
|
||||
flex-direction: column;
|
||||
}
|
||||
.modal.activities[open] { display: flex; }
|
||||
/* While the picker is showing, the two columns of rows only need so much room:
|
||||
wider and the name and blurb sit far from their score. A game keeps the
|
||||
whole window. */
|
||||
.modal.activities:has(#activities-picker:not([hidden])) { max-width: 1100px; }
|
||||
.modal.activities h2,
|
||||
.modal.activities .modal-blurb,
|
||||
.modal.activities .modal-actions { flex: none; }
|
||||
|
||||
@@ -714,6 +714,12 @@
|
||||
.loop-end-phases code { font-family: var(--mono); font-size: 12px; }
|
||||
.loop-end-files { margin: 0; padding-left: 18px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
|
||||
.loop-end-heading, .loop-end .loop-line { overflow-wrap: anywhere; }
|
||||
.loop-end .loop-why, .loop-end .loop-advice {
|
||||
padding: 9px 13px; border-left: 4px solid var(--warn); border-radius: 0 6px 6px 0;
|
||||
background: var(--warn-soft); color: var(--ink); font-size: 14px; line-height: 1.5; max-width: 75ch; margin: 0;
|
||||
}
|
||||
.loop-end .loop-advice { border-left-color: var(--accent); background: var(--accent-soft); }
|
||||
.loop-end .loop-advice strong { color: var(--accent); }
|
||||
/* Each button with one plain line under it saying what it does. */
|
||||
.loop-end-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
|
||||
.loop-end-choice { display: grid; gap: 6px; align-content: start; justify-items: start; }
|
||||
|
||||
@@ -86,6 +86,10 @@
|
||||
padding: 1px 5px;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
/* Help, "Learning": one example lesson, set apart like a quoted card. */
|
||||
.help-panel .help-example { margin: 0 0 12px; padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--rule); border-left-width: 4px; border-radius: var(--radius); }
|
||||
.help-panel .help-example p { margin: 0 0 4px; }
|
||||
.help-panel .help-example p:last-child { margin-bottom: 0; }
|
||||
/* 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;
|
||||
|
||||
@@ -0,0 +1,198 @@
|
||||
/* Learning on the dashboard: the slim row (screens/learning-row.js) and the
|
||||
waiting banner. From the saved prototype's variant A
|
||||
(specs/project-learning/prototypes/learning-row.html), on the page's own
|
||||
tokens: the prototype's hold color is --stage, its border --rule. */
|
||||
|
||||
/* The row. Under the spec picker while it needs the person (not set up, off,
|
||||
paused); after the last card group while on. */
|
||||
.learn-row { position: relative; }
|
||||
.learn-row.is-top { margin: 0 0 22px; }
|
||||
.learn-row.is-bottom { margin: 4px 0 18px; }
|
||||
.learn-line {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px 12px;
|
||||
padding: 8px 12px;
|
||||
border-top: 1px solid var(--rule);
|
||||
border-bottom: 1px solid var(--rule);
|
||||
font-size: 14px;
|
||||
color: var(--ink);
|
||||
}
|
||||
/* Paused for you: the amber tint, so a paused person sees it at a glance. */
|
||||
.learn-row.is-paused .learn-line {
|
||||
background: var(--stage-soft);
|
||||
border: 1px solid var(--stage);
|
||||
border-radius: calc(var(--radius) * 0.7);
|
||||
}
|
||||
.learn-label { font-weight: 650; }
|
||||
.learn-pill {
|
||||
font-size: 10.5px;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.08em;
|
||||
text-transform: uppercase;
|
||||
padding: 2px 8px;
|
||||
border: 1px solid var(--rule-2);
|
||||
border-radius: 999px;
|
||||
color: var(--ink-3);
|
||||
}
|
||||
.learn-pill.is-on { color: var(--accent); border-color: var(--accent); }
|
||||
.learn-pill.is-hold { color: var(--stage); border-color: var(--stage); }
|
||||
.learn-say { flex: 1 1 14em; min-width: 0; color: var(--ink-3); }
|
||||
.learn-row.is-paused .learn-say { color: var(--ink); }
|
||||
.learn-controls { margin-left: auto; display: flex; align-items: center; gap: 12px; }
|
||||
.learn-controls .btn { margin: 0; }
|
||||
|
||||
/* Pause for me: a sliding switch. Amber while paused. */
|
||||
.learn-switch {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
font: inherit;
|
||||
min-height: 24px;
|
||||
padding: 0;
|
||||
background: none;
|
||||
border: 0;
|
||||
color: var(--ink);
|
||||
cursor: pointer;
|
||||
}
|
||||
.learn-switch:disabled { opacity: 0.45; cursor: not-allowed; }
|
||||
.learn-track {
|
||||
position: relative;
|
||||
flex: none;
|
||||
width: 34px;
|
||||
height: 20px;
|
||||
box-sizing: border-box;
|
||||
border-radius: 999px;
|
||||
background: var(--bg);
|
||||
border: 1px solid var(--rule-2);
|
||||
}
|
||||
.learn-track::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 2px;
|
||||
left: 2px;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
border-radius: 50%;
|
||||
background: var(--ink-3);
|
||||
transition: left 0.15s ease;
|
||||
}
|
||||
.learn-switch.is-on .learn-track { background: var(--stage); border-color: var(--stage); }
|
||||
.learn-switch.is-on .learn-track::after { left: 16px; background: var(--panel); }
|
||||
.learn-switch:hover:not(:disabled) .learn-track { border-color: var(--accent); }
|
||||
|
||||
.learn-link {
|
||||
font: inherit;
|
||||
font-size: 13px;
|
||||
min-height: 24px;
|
||||
padding: 0 4px;
|
||||
background: none;
|
||||
border: 0;
|
||||
color: var(--accent);
|
||||
text-decoration: underline;
|
||||
cursor: pointer;
|
||||
}
|
||||
.learn-link:hover { text-decoration-thickness: 2px; }
|
||||
.learn-switch:focus-visible,
|
||||
.learn-link:focus-visible,
|
||||
.learn-more-item:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
|
||||
|
||||
/* More: at the bottom of the page, so it opens upward. */
|
||||
.learn-more {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 100%;
|
||||
z-index: 5;
|
||||
min-width: 17em;
|
||||
margin: 0 0 4px;
|
||||
padding: 4px;
|
||||
list-style: none;
|
||||
text-align: left;
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--rule);
|
||||
border-radius: calc(var(--radius) * 0.7);
|
||||
box-shadow: var(--shadow);
|
||||
font-size: 13.5px;
|
||||
color: var(--ink);
|
||||
}
|
||||
.learn-more[hidden] { display: none; }
|
||||
.learn-more-item { padding: 7px 10px; border-radius: calc(var(--radius) * 0.5); cursor: pointer; }
|
||||
.learn-more-item:hover,
|
||||
.learn-more-item:focus { background: var(--accent-soft); outline: none; }
|
||||
.learn-more-item.is-danger { color: var(--warn); border-top: 1px solid var(--rule); border-top-left-radius: 0; border-top-right-radius: 0; }
|
||||
.learn-more-item[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
|
||||
.learn-more-item[aria-disabled="true"]:hover { background: none; }
|
||||
|
||||
/* Lessons waiting: the banner nearest the title, in the accent tint. */
|
||||
.dash-nudge.learn-banner { border-left-width: 4px; }
|
||||
.learn-banner .btn { margin: 0 0 0 auto; }
|
||||
|
||||
/* Open the lessons: each file under its own name. */
|
||||
.learn-lessons-file + .learn-lessons-file { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--rule); }
|
||||
.learn-lessons-name { margin: 0 0 6px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
|
||||
|
||||
/* The lessons card (screens/cards.js buildLessons): one block per waiting
|
||||
item, each with its own choices and nothing chosen at first. */
|
||||
.lessons-opening { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-3); }
|
||||
.lessons-rows { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
|
||||
.lessons-row {
|
||||
padding: 12px 14px;
|
||||
border: 1px solid var(--rule);
|
||||
border-radius: calc(var(--radius) * 0.7);
|
||||
background: var(--panel);
|
||||
}
|
||||
.lessons-row.is-chosen { border-color: var(--accent); }
|
||||
.lessons-row p { margin: 0 0 6px; }
|
||||
.lessons-heading { font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
|
||||
.lessons-text { font-weight: 600; color: var(--ink); }
|
||||
.lessons-why,
|
||||
.lessons-found { font-size: 13.5px; color: var(--ink-2); }
|
||||
.lessons-origin,
|
||||
.lessons-note { font-size: 12.5px; color: var(--ink-3); }
|
||||
.lessons-fix-label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
|
||||
.lessons-fix blockquote {
|
||||
margin: 0 0 8px;
|
||||
padding: 6px 10px;
|
||||
border-left: 3px solid var(--rule-2);
|
||||
font-family: var(--mono);
|
||||
font-size: 12.5px;
|
||||
white-space: pre-wrap;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
.lessons-fix .lessons-after { border-left-color: var(--accent); }
|
||||
.lessons-become { margin: 0 0 6px; padding-left: 18px; font-size: 13.5px; }
|
||||
/* Flagged and refused: said in words, not only in color. */
|
||||
.lessons-flag,
|
||||
.lessons-refused {
|
||||
padding: 5px 9px;
|
||||
border-radius: calc(var(--radius) * 0.5);
|
||||
font-size: 13px;
|
||||
background: var(--stage-soft);
|
||||
color: var(--ink);
|
||||
}
|
||||
.lessons-refused { background: var(--warn-soft); color: var(--warn); }
|
||||
.lessons-choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
|
||||
.lessons-choices .btn { margin: 0; }
|
||||
.lessons-edit { margin-top: 10px; display: grid; gap: 8px; }
|
||||
.lessons-field { margin: 0; }
|
||||
.lessons-input,
|
||||
.lessons-select { width: 100%; box-sizing: border-box; }
|
||||
.lessons-error { margin: 10px 0 0; }
|
||||
.lessons-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
|
||||
.lessons-summary { margin: 0; font-size: 13.5px; color: var(--ink-2); }
|
||||
.lessons-foot .btn { margin: 0 0 0 auto; }
|
||||
.lessons-first-lesson {
|
||||
margin: 14px 0 0;
|
||||
padding: 12px 14px;
|
||||
border-left: 4px solid var(--accent);
|
||||
background: var(--accent-soft);
|
||||
border-radius: calc(var(--radius) * 0.5);
|
||||
}
|
||||
.lessons-first-lesson p { margin: 0 0 4px; }
|
||||
.lessons-first-about { margin: 12px 0 0; }
|
||||
.lessons-later { margin-top: 8px; }
|
||||
|
||||
/* Review from the dashboard: the same card in a dialog over the menu. */
|
||||
.modal.lessons-dialog { width: min(720px, calc(100vw - 32px)); }
|
||||
.lessons-dialog .card { margin: 0; box-shadow: none; border: 0; padding: 0; }
|
||||
Reference in new issue
Block a user