Commit 92691aa
committed
Editor: inset shadow + line-number gutter; home: section eyebrows
Three independent changes per the latest impeccable review.
1. Inset shadow on .runner-editor
Adds the "recessed surface" convention for editable text inputs:
box-shadow: inset 0 1px 2px rgba(82, 16, 0, 0.04). Very subtle —
the editor reads as a slot the eye can rest into rather than a
flat panel like the output. The focus-within state stacks the
inset shadow with the existing 3px accent glow.
2. Line-number gutter
CodeMirror gains lineNumbers() in public/editor.js. The
.cm-gutters CSS (was display: none) now styles the gutter as a
transparent strip with --hairline-soft right border, --muted
tabular-nums numerals, .85em font-size, right-aligned with 2ch
minimum width and var(--space-2) right padding. This is the
IDE-style "code area" convention from Replit/Codecademy/Stripe
docs — strongest single signal that the panel is editable code.
3. Section eyebrows on the home page (prototype)
render_home() groups the 109 examples by section in the order
each section first appears in the manifest, then emits one
eyebrow divider per section followed by every example in that
section. 13 eyebrows total: Basics, Data Model, Text, Control
Flow, Iteration, Collections, Functions, Classes, Errors,
Modules, Types, Standard Library, Async.
The eyebrow markup uses the existing .eyebrow class plus a new
.grid-section rule that spans grid-column: 1 / -1 to act as a
full-width row break inside the auto-fit grid. No new chrome,
one CSS rule.
Cards lose their per-card section eyebrow (was redundant with
the divider above) — each card is now just h2 (title) + meta
(summary). The test that asserts the card markup still passes
because it only checks the <a class="card" href="..."> opening
tag.
62 tests pass; SEO/cache lint clears 110 pages; ruff clean.1 parent 20d4e6f commit 92691aa
6 files changed
Lines changed: 36 additions & 21 deletions
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| 60 | + | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
113 | | - | |
114 | | - | |
| 116 | + | |
| 117 | + | |
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
| |||
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| 60 | + | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
113 | | - | |
114 | | - | |
| 116 | + | |
| 117 | + | |
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
499 | 499 | | |
500 | 500 | | |
501 | 501 | | |
502 | | - | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
503 | 506 | | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
513 | 521 | | |
514 | | - | |
515 | 522 | | |
516 | 523 | | |
517 | 524 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
0 commit comments