pandorga 2.3.17 → 2.3.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/_includes/content-runtime/43-blocks.html +12 -14
- data/assets/css/ledger/home.css +238 -7
- data/lib/pandorga/commands/new.rb +1 -1
- data/lib/pandorga/version.rb +1 -1
- data/scripts/test/render-parity/blocks/project-inventory-row.json +7 -6
- data/scripts/test/render-parity/run-absent-field-checks.mjs +3 -0
- data/scripts/test/test-css-structure.rb +63 -5
- data/scripts/test/test-hero-16x9.rb +2 -2
- data/scripts/test/test-hero-name.rb +6 -6
- data/scripts/test/test-home-desk-layout.mjs +568 -0
- data/scripts/test/test-home-desk-layout.rb +21 -0
- data/scripts/test/test-home-hero-c4.rb +79 -7
- data/scripts/test/test-home-hero-scale.rb +5 -5
- data/scripts/test/test-regression-gate.mjs +58 -5
- data/scripts/validate.sh +1 -0
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b63a3180eb48c3a7a344374ec47fa77ade61e31bf1765d063406741ba5387049
|
|
4
|
+
data.tar.gz: c2823b9b968b6199f793c06e46da69d547a309b6dac2b4f5226f3c257222612f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 89bedf4e95b80e91220e84ef8295ccbc70f60d1680ea54d31becbc1367fbd1f5fde102bc452142e2a048820518bd700793487d898b5ed249271b100c2692fd1c
|
|
7
|
+
data.tar.gz: 51fdd0e74f58954dedbd2af34417accaa3a2abe27e534966d2433fbdca4cc9e3b7b76a4844be3f86c1b896906f4abb232553efe5e8f68ce8546f6f1cda7c1499
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
## 2.3.21
|
|
6
|
+
|
|
7
|
+
- Desktop Projects (≥1024): contents page — icon + body-face name; selected row opens an 11rem 16:9 picture (and a clamped presentation blurb beside it when width allows). Selected row uses `--color-surface-high` gray wash with equal top/bottom padding; icon and name stay vertically centered. No mark bar, folio, year, or tags on the row. Specimen card hidden (PLT-AC-88/104/105/106).
|
|
8
|
+
|
|
9
|
+
## 2.3.20
|
|
10
|
+
|
|
11
|
+
- Desktop Projects (≥1024): inventory row names use the theme dropdown face (`--font-body` / `.theme-choice`: body size, weight, 0.01em tracking) instead of `--font-title` (PLT-AC-88). No-truncation list-first layout from 2.3.19 unchanged.
|
|
12
|
+
|
|
13
|
+
## 2.3.19
|
|
14
|
+
|
|
15
|
+
- Desktop Projects (≥1024): inventory row names use `--font-title` (serif, same face as band `.section-title`) instead of `--font-label`; drop label letter-spacing (PLT-AC-88).
|
|
16
|
+
- List column is `max-content` so names never truncate; specimen track `minmax(0, 1fr)` and the plate caps at +25% but shrinks to give the list room (PLT-AC-88). Ellipsis kept only as a last-resort overflow guard.
|
|
17
|
+
|
|
18
|
+
## 2.3.18
|
|
19
|
+
|
|
20
|
+
- Desktop Projects (≥1024): inventory becomes a full-column list (icon + name, ellipsis, row height = `--home-icon-btn-size`); bench and banner fill the column (~0 side gaps) (PLT-AC-88 rewrite).
|
|
21
|
+
- Specimen plate **+25%** at ≥1440 (`15.3125rem` tall, 16:9); narrow desktop 1024–1359 keeps list ≥8.5rem and scales the plate (PLT-AC-88).
|
|
22
|
+
- Hero name = band title **+4pt** at every viewport (was +2pt) (PLT-AC-98/99 rewrite); rendered gate at 390/1280/1440/1920 (`test-home-desk-layout`).
|
|
23
|
+
- Tablet 900–1023 keeps the prior centered icon-column island.
|
|
24
|
+
|
|
3
25
|
## 2.3.17
|
|
4
26
|
|
|
5
27
|
- CR-24 overlay: strength (`::after`) now paints **true black** `rgba(0,0,0,…)` so it darkens photo areas monotonically (2.3.16 charcoal shade brightened dark regions and made strength effectively dead / slightly inverted) (PLT-AC-103).
|
|
@@ -350,9 +350,10 @@
|
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
/* Rack card for the home portfolio bench.
|
|
353
|
-
* Desktop:
|
|
353
|
+
* Desktop contents (PLT-AC-88): icon glyph + name; the selected row opens
|
|
354
|
+
* the 16:9 plate and, when width allows, a clamped presentation blurb.
|
|
354
355
|
* The mobile strip shows the project glyph only. Selectable rows update
|
|
355
|
-
* the specimen. */
|
|
356
|
+
* the specimen below 1024px. */
|
|
356
357
|
function renderProjectInventoryRow(item, options) {
|
|
357
358
|
options = options || {};
|
|
358
359
|
var f = blockFields(item);
|
|
@@ -362,7 +363,6 @@
|
|
|
362
363
|
var selectable = !!options.selectable;
|
|
363
364
|
var selected = !!options.selected;
|
|
364
365
|
var slug = item.slug || f.slug || '';
|
|
365
|
-
var index = options.index;
|
|
366
366
|
|
|
367
367
|
// A selectable row is a real button. role=button on an article is
|
|
368
368
|
// what the audit flags, and the button already handles Enter and Space.
|
|
@@ -388,19 +388,13 @@
|
|
|
388
388
|
escapeHtml(initial) + '</div>';
|
|
389
389
|
}
|
|
390
390
|
|
|
391
|
-
var
|
|
391
|
+
var poster = renderPosterMedia(fm.thumbnail, name, {
|
|
392
|
+
srcset: fm.thumbnail_srcset,
|
|
393
|
+
sizes: '11rem'
|
|
394
|
+
});
|
|
395
|
+
var html = '<div class="home-project-inventory-media">' + poster + media + '</div>';
|
|
392
396
|
html += '<div class="home-project-inventory-body">';
|
|
393
397
|
|
|
394
|
-
var code = renderMetaStrip([
|
|
395
|
-
index != null && index !== ''
|
|
396
|
-
? '<span class="code-technical home-project-inventory-index">' + escapeHtml(twoDigits(index)) + '</span>'
|
|
397
|
-
: '',
|
|
398
|
-
fm.label ? escapeHtml(fm.label) : ''
|
|
399
|
-
]);
|
|
400
|
-
if (code) {
|
|
401
|
-
html += '<div class="home-project-inventory-code">' + code + '</div>';
|
|
402
|
-
}
|
|
403
|
-
|
|
404
398
|
if (selectable) {
|
|
405
399
|
html += '<h3 class="home-project-inventory-title card-title">' +
|
|
406
400
|
escapeHtml(name) + '</h3>';
|
|
@@ -409,6 +403,10 @@
|
|
|
409
403
|
'<a class="ledger-card-stretch" href="' + escapeAttr(href) + '">' +
|
|
410
404
|
escapeHtml(name) + '</a></h3>';
|
|
411
405
|
}
|
|
406
|
+
var blurb = String(fm.tagline || f.preview || '').trim();
|
|
407
|
+
if (blurb) {
|
|
408
|
+
html += '<p class="home-project-inventory-excerpt">' + escapeHtml(blurb) + '</p>';
|
|
409
|
+
}
|
|
412
410
|
html += '</div>';
|
|
413
411
|
if (fm.icon) {
|
|
414
412
|
html += '<span class="home-project-inventory-glyph material-symbols-outlined" aria-hidden="true">' +
|
data/assets/css/ledger/home.css
CHANGED
|
@@ -151,12 +151,12 @@
|
|
|
151
151
|
min-height: calc(var(--type-body) * 1.35);
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
/* PLT-AC-98: hero name tracks home band titles (+
|
|
154
|
+
/* PLT-AC-98: hero name tracks home band titles (+4pt), not photo/cqi width.
|
|
155
155
|
Band `.section-title` uses --type-section, then --type-section-lg from 768px. */
|
|
156
156
|
.home-hero-title {
|
|
157
157
|
font-family: var(--font-title);
|
|
158
158
|
font-weight: 400;
|
|
159
|
-
font-size: calc(var(--type-section) +
|
|
159
|
+
font-size: calc(var(--type-section) + 4pt);
|
|
160
160
|
line-height: 1.05;
|
|
161
161
|
letter-spacing: -0.02em;
|
|
162
162
|
color: var(--color-on-surface);
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
@media (min-width: 768px) {
|
|
200
200
|
.home-hero-title {
|
|
201
201
|
/* Same token step as .home-band .ledger-section-banner .section-title */
|
|
202
|
-
font-size: calc(var(--type-section-lg) +
|
|
202
|
+
font-size: calc(var(--type-section-lg) + 4pt);
|
|
203
203
|
white-space: nowrap;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
@@ -531,6 +531,9 @@ html[data-theme="light"] .home-hero-plate {
|
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
|
|
534
|
+
|
|
535
|
+
/* Desktop from 1024px is the contents page (PLT-AC-88). */
|
|
536
|
+
|
|
534
537
|
@media (min-width: 1280px) {
|
|
535
538
|
.home-featured.home-featured--illustrated {
|
|
536
539
|
grid-template-columns: minmax(0, 1fr) 15rem;
|
|
@@ -1297,7 +1300,7 @@ button.home-project-inventory-row {
|
|
|
1297
1300
|
/* Inventory left of specimen, flush to card (gap ≤ 2× button gap);
|
|
1298
1301
|
column width = button width; plate 16:9 at ~215.6×383.3 (+25% CR-21e);
|
|
1299
1302
|
card hugs plate + padding; visible Explore label removed (CR-21d). */
|
|
1300
|
-
/*
|
|
1303
|
+
/* Tablet 900–1023: keep icon-column island centered (desktop ≥1024 is PLT-AC-88). */
|
|
1301
1304
|
.home-band[data-home-kind="portfolio"] .home-band-inner,
|
|
1302
1305
|
#home-projects .home-band-inner {
|
|
1303
1306
|
display: flex;
|
|
@@ -2085,7 +2088,7 @@ html[data-theme="light"] .home-featured .ledger-poster {
|
|
|
2085
2088
|
background: transparent;
|
|
2086
2089
|
}
|
|
2087
2090
|
|
|
2088
|
-
/* PLT-AC-98: stack inherits token+
|
|
2091
|
+
/* PLT-AC-98: stack inherits token+4pt; keep photo ink/shadow */
|
|
2089
2092
|
.home-ledger .home-hero-title,
|
|
2090
2093
|
.home-hero-title {
|
|
2091
2094
|
line-height: 1.08;
|
|
@@ -2177,6 +2180,7 @@ html[data-theme="light"] .home-featured .ledger-poster {
|
|
|
2177
2180
|
text-shadow: none;
|
|
2178
2181
|
background: rgba(255, 255, 255, 0.92);
|
|
2179
2182
|
}
|
|
2183
|
+
|
|
2180
2184
|
}
|
|
2181
2185
|
|
|
2182
2186
|
/* ── Desktop masthead (>= 1024): 50/50 hero | projects ── */
|
|
@@ -2248,7 +2252,7 @@ html[data-theme="light"] .home-featured .ledger-poster {
|
|
|
2248
2252
|
padding-inline: 0;
|
|
2249
2253
|
display: flex;
|
|
2250
2254
|
flex-direction: column;
|
|
2251
|
-
align-items:
|
|
2255
|
+
align-items: stretch;
|
|
2252
2256
|
justify-content: flex-start;
|
|
2253
2257
|
min-height: 0;
|
|
2254
2258
|
box-sizing: border-box;
|
|
@@ -2336,7 +2340,7 @@ html[data-theme="light"] .home-featured .ledger-poster {
|
|
|
2336
2340
|
background: transparent;
|
|
2337
2341
|
}
|
|
2338
2342
|
|
|
2339
|
-
/* PLT-AC-98: desk uses type-section-lg +
|
|
2343
|
+
/* PLT-AC-98: desk uses type-section-lg + 4pt (set ≥768); keep photo ink */
|
|
2340
2344
|
.home-ledger .home-hero-title,
|
|
2341
2345
|
.home-hero-title {
|
|
2342
2346
|
white-space: nowrap;
|
|
@@ -2427,6 +2431,233 @@ html[data-theme="light"] .home-featured .ledger-poster {
|
|
|
2427
2431
|
text-shadow: none;
|
|
2428
2432
|
background: rgba(255, 255, 255, 0.92);
|
|
2429
2433
|
}
|
|
2434
|
+
|
|
2435
|
+
/* PLT-AC-88 contents: icon + name; the selected row opens a small picture
|
|
2436
|
+
and, when width allows, a clamped presentation blurb beside it. */
|
|
2437
|
+
.home-band[data-home-kind="portfolio"] {
|
|
2438
|
+
--home-projects-block-width: 100%;
|
|
2439
|
+
}
|
|
2440
|
+
|
|
2441
|
+
.home-band[data-home-kind="portfolio"] .home-section-note {
|
|
2442
|
+
max-width: 100%;
|
|
2443
|
+
align-self: stretch;
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
.home-band[data-home-kind="portfolio"] .ledger-section-banner,
|
|
2447
|
+
#home-projects .ledger-section-banner {
|
|
2448
|
+
width: 100%;
|
|
2449
|
+
max-width: 100%;
|
|
2450
|
+
align-self: stretch;
|
|
2451
|
+
margin-inline: 0;
|
|
2452
|
+
}
|
|
2453
|
+
|
|
2454
|
+
.home-projects-bench {
|
|
2455
|
+
display: block;
|
|
2456
|
+
width: 100%;
|
|
2457
|
+
max-width: 100%;
|
|
2458
|
+
margin-inline: 0;
|
|
2459
|
+
min-width: 0;
|
|
2460
|
+
}
|
|
2461
|
+
|
|
2462
|
+
.home-project-specimen,
|
|
2463
|
+
.home-project-specimen-slot {
|
|
2464
|
+
display: none;
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2467
|
+
.home-projects-inventory-wrap,
|
|
2468
|
+
.home-project-inventory {
|
|
2469
|
+
display: flex;
|
|
2470
|
+
flex-direction: column;
|
|
2471
|
+
align-items: stretch;
|
|
2472
|
+
width: 100%;
|
|
2473
|
+
max-width: none;
|
|
2474
|
+
min-width: 0;
|
|
2475
|
+
gap: 0;
|
|
2476
|
+
}
|
|
2477
|
+
|
|
2478
|
+
.home-projects-inventory-wrap {
|
|
2479
|
+
container-type: inline-size;
|
|
2480
|
+
container-name: projects-inventory;
|
|
2481
|
+
}
|
|
2482
|
+
|
|
2483
|
+
/* PLT-AC-88 / PLT-AC-104: icon shares only the name row so centers align.
|
|
2484
|
+
PLT-AC-105/106: selected row = --color-surface-high wash; equal top/bottom pad. */
|
|
2485
|
+
button.home-project-inventory-row,
|
|
2486
|
+
.home-project-inventory-row {
|
|
2487
|
+
display: grid;
|
|
2488
|
+
grid-template-columns: 2.5rem minmax(0, 1fr);
|
|
2489
|
+
grid-template-areas:
|
|
2490
|
+
"icon name"
|
|
2491
|
+
". plate";
|
|
2492
|
+
column-gap: var(--space-md);
|
|
2493
|
+
row-gap: var(--space-xs);
|
|
2494
|
+
align-items: center;
|
|
2495
|
+
width: 100%;
|
|
2496
|
+
height: auto;
|
|
2497
|
+
min-height: 0;
|
|
2498
|
+
justify-content: stretch;
|
|
2499
|
+
/* Equal outer pad: wash top→name == picture bottom→wash bottom (PLT-AC-106). */
|
|
2500
|
+
padding: 0.65rem 0.5rem;
|
|
2501
|
+
border: 0;
|
|
2502
|
+
border-bottom: 1px solid var(--border-gentle);
|
|
2503
|
+
border-radius: 0;
|
|
2504
|
+
background: transparent;
|
|
2505
|
+
outline: none;
|
|
2506
|
+
box-sizing: border-box;
|
|
2507
|
+
position: relative;
|
|
2508
|
+
}
|
|
2509
|
+
|
|
2510
|
+
.home-project-inventory-row:hover,
|
|
2511
|
+
.home-project-inventory-row:focus-visible {
|
|
2512
|
+
background: transparent;
|
|
2513
|
+
outline: none;
|
|
2514
|
+
}
|
|
2515
|
+
|
|
2516
|
+
.home-project-inventory-row.is-selected {
|
|
2517
|
+
background: var(--color-surface-high);
|
|
2518
|
+
outline: none;
|
|
2519
|
+
}
|
|
2520
|
+
|
|
2521
|
+
.home-project-inventory-row:focus-visible {
|
|
2522
|
+
outline: 2px solid var(--color-primary);
|
|
2523
|
+
outline-offset: 2px;
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
.home-project-inventory-body {
|
|
2527
|
+
display: contents;
|
|
2528
|
+
}
|
|
2529
|
+
|
|
2530
|
+
.home-project-inventory-code,
|
|
2531
|
+
.home-project-inventory-year,
|
|
2532
|
+
.home-project-inventory-tags {
|
|
2533
|
+
display: none;
|
|
2534
|
+
}
|
|
2535
|
+
|
|
2536
|
+
.home-project-inventory-row > .home-project-inventory-glyph,
|
|
2537
|
+
.home-project-inventory-glyph {
|
|
2538
|
+
grid-area: icon;
|
|
2539
|
+
display: inline-flex;
|
|
2540
|
+
align-items: center;
|
|
2541
|
+
justify-content: center;
|
|
2542
|
+
align-self: center;
|
|
2543
|
+
justify-self: center;
|
|
2544
|
+
width: 2.5rem;
|
|
2545
|
+
height: 2.5rem;
|
|
2546
|
+
margin: 0;
|
|
2547
|
+
padding: 0;
|
|
2548
|
+
overflow: hidden;
|
|
2549
|
+
border: 0;
|
|
2550
|
+
border-radius: 0;
|
|
2551
|
+
background: transparent;
|
|
2552
|
+
box-sizing: border-box;
|
|
2553
|
+
font-size: calc(1.375rem + 2pt);
|
|
2554
|
+
line-height: 1;
|
|
2555
|
+
color: var(--color-on-surface-variant);
|
|
2556
|
+
}
|
|
2557
|
+
|
|
2558
|
+
.home-project-inventory-row > .home-project-inventory-glyph.material-symbols-outlined,
|
|
2559
|
+
.home-project-inventory-row .home-project-inventory-glyph.material-symbols-outlined {
|
|
2560
|
+
font-size: calc(1.375rem + 2pt);
|
|
2561
|
+
}
|
|
2562
|
+
|
|
2563
|
+
.home-project-inventory-row.is-selected > .home-project-inventory-glyph,
|
|
2564
|
+
.home-project-inventory-row:hover > .home-project-inventory-glyph,
|
|
2565
|
+
.home-project-inventory-row:focus-visible > .home-project-inventory-glyph {
|
|
2566
|
+
color: var(--color-primary);
|
|
2567
|
+
}
|
|
2568
|
+
|
|
2569
|
+
.home-project-inventory-media {
|
|
2570
|
+
display: none;
|
|
2571
|
+
grid-area: plate;
|
|
2572
|
+
width: 11rem;
|
|
2573
|
+
max-width: 11rem;
|
|
2574
|
+
aspect-ratio: 16 / 9;
|
|
2575
|
+
overflow: hidden;
|
|
2576
|
+
margin: 0;
|
|
2577
|
+
justify-self: start;
|
|
2578
|
+
align-self: start;
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2581
|
+
.home-project-inventory-row.is-selected .home-project-inventory-media {
|
|
2582
|
+
display: block;
|
|
2583
|
+
}
|
|
2584
|
+
|
|
2585
|
+
.home-project-inventory-media > .ledger-poster,
|
|
2586
|
+
.home-project-inventory-media > .projects-plate {
|
|
2587
|
+
width: 100%;
|
|
2588
|
+
height: 100%;
|
|
2589
|
+
aspect-ratio: 16 / 9;
|
|
2590
|
+
}
|
|
2591
|
+
|
|
2592
|
+
.home-project-inventory-media:has(.ledger-poster) .home-project-inventory-mark {
|
|
2593
|
+
display: none;
|
|
2594
|
+
}
|
|
2595
|
+
|
|
2596
|
+
.home-project-inventory-excerpt {
|
|
2597
|
+
display: none;
|
|
2598
|
+
grid-area: excerpt;
|
|
2599
|
+
margin: 0;
|
|
2600
|
+
min-width: 0;
|
|
2601
|
+
max-width: 100%;
|
|
2602
|
+
overflow: hidden;
|
|
2603
|
+
font-family: var(--font-body);
|
|
2604
|
+
font-size: var(--type-body);
|
|
2605
|
+
font-weight: var(--weight-body);
|
|
2606
|
+
line-height: var(--leading-body);
|
|
2607
|
+
color: var(--color-on-surface-variant);
|
|
2608
|
+
text-align: start;
|
|
2609
|
+
overflow-wrap: break-word;
|
|
2610
|
+
word-break: normal;
|
|
2611
|
+
-webkit-box-orient: vertical;
|
|
2612
|
+
-webkit-line-clamp: 4;
|
|
2613
|
+
text-overflow: ellipsis;
|
|
2614
|
+
align-self: start;
|
|
2615
|
+
}
|
|
2616
|
+
|
|
2617
|
+
/* Beside the picture when the inventory can hold plate + blurb; otherwise picture only.
|
|
2618
|
+
Icon stays on the name row only (PLT-AC-104). Excerpt top-aligns with the plate. */
|
|
2619
|
+
@container projects-inventory (min-width: 28rem) {
|
|
2620
|
+
.home-project-inventory-row.is-selected {
|
|
2621
|
+
grid-template-columns: 2.5rem 11rem minmax(0, 1fr);
|
|
2622
|
+
grid-template-areas:
|
|
2623
|
+
"icon name name"
|
|
2624
|
+
". plate excerpt";
|
|
2625
|
+
align-items: start;
|
|
2626
|
+
}
|
|
2627
|
+
|
|
2628
|
+
.home-project-inventory-row.is-selected > .home-project-inventory-glyph,
|
|
2629
|
+
.home-project-inventory-row.is-selected .home-project-inventory-title {
|
|
2630
|
+
align-self: center;
|
|
2631
|
+
}
|
|
2632
|
+
|
|
2633
|
+
.home-project-inventory-row.is-selected .home-project-inventory-excerpt {
|
|
2634
|
+
display: -webkit-box;
|
|
2635
|
+
margin: 0;
|
|
2636
|
+
align-self: start;
|
|
2637
|
+
}
|
|
2638
|
+
}
|
|
2639
|
+
|
|
2640
|
+
.home-project-inventory-title {
|
|
2641
|
+
grid-area: name;
|
|
2642
|
+
display: block;
|
|
2643
|
+
margin: 0;
|
|
2644
|
+
min-width: 0;
|
|
2645
|
+
max-width: 100%;
|
|
2646
|
+
overflow: visible;
|
|
2647
|
+
text-overflow: clip;
|
|
2648
|
+
white-space: normal;
|
|
2649
|
+
font-family: var(--font-body);
|
|
2650
|
+
font-size: clamp(1.45rem, 2.2vw, 2.05rem);
|
|
2651
|
+
font-weight: var(--weight-body);
|
|
2652
|
+
letter-spacing: 0;
|
|
2653
|
+
text-transform: none;
|
|
2654
|
+
line-height: 1.15;
|
|
2655
|
+
color: var(--color-on-surface);
|
|
2656
|
+
background: none;
|
|
2657
|
+
align-self: center;
|
|
2658
|
+
}
|
|
2659
|
+
|
|
2660
|
+
|
|
2430
2661
|
}
|
|
2431
2662
|
|
|
2432
2663
|
/* Wider desktop: B3 @1440 ≈ 637×693 (w/h ≈ 0.92) */
|
|
@@ -24,7 +24,7 @@ module Pandorga
|
|
|
24
24
|
|
|
25
25
|
gem "pandorga", "~> 2.0"
|
|
26
26
|
# Local checkout: gem "pandorga", path: "../pandorga"
|
|
27
|
-
# GitHub tag: gem "pandorga", github: "alexandrelheinen/pandorga", tag: "v2.3.
|
|
27
|
+
# GitHub tag: gem "pandorga", github: "alexandrelheinen/pandorga", tag: "v2.3.21"
|
|
28
28
|
gem "csv"
|
|
29
29
|
gem "base64"
|
|
30
30
|
RUBY
|
data/lib/pandorga/version.rb
CHANGED
|
@@ -25,25 +25,26 @@
|
|
|
25
25
|
"selectors": [
|
|
26
26
|
"button.home-project-inventory-row",
|
|
27
27
|
"div.home-project-inventory-media",
|
|
28
|
+
"div.ledger-poster",
|
|
28
29
|
"div.home-project-inventory-mark",
|
|
29
|
-
"div.home-project-inventory-code",
|
|
30
|
-
"span.home-project-inventory-index",
|
|
31
30
|
"h3.home-project-inventory-title",
|
|
31
|
+
"p.home-project-inventory-excerpt",
|
|
32
32
|
"span.home-project-inventory-glyph"
|
|
33
33
|
],
|
|
34
34
|
"forbidden": [
|
|
35
35
|
"ledger-card-stretch",
|
|
36
36
|
"role=\"button\"",
|
|
37
|
-
"ledger-poster",
|
|
38
37
|
"home-project-inventory-copy",
|
|
39
38
|
"home-project-inventory-resources",
|
|
40
|
-
"home-project-inventory-resource"
|
|
39
|
+
"home-project-inventory-resource",
|
|
40
|
+
"home-project-inventory-code",
|
|
41
|
+
"home-project-inventory-year",
|
|
42
|
+
"home-project-inventory-tags"
|
|
41
43
|
],
|
|
42
44
|
"contains": [
|
|
43
|
-
">02<",
|
|
44
|
-
">Simulation<",
|
|
45
45
|
">ARCO<",
|
|
46
46
|
">route<",
|
|
47
|
+
"A city-scale race replayed from telemetry.",
|
|
47
48
|
"aria-pressed=\"false\"",
|
|
48
49
|
"title=\"ARCO\"",
|
|
49
50
|
"data-slug=\"arco\""
|
|
@@ -248,6 +248,9 @@ omits(
|
|
|
248
248
|
[
|
|
249
249
|
'home-project-inventory-code',
|
|
250
250
|
'home-project-inventory-index',
|
|
251
|
+
'home-project-inventory-year',
|
|
252
|
+
'home-project-inventory-tags',
|
|
253
|
+
'home-project-inventory-excerpt',
|
|
251
254
|
'ledger-status',
|
|
252
255
|
'home-project-inventory-copy',
|
|
253
256
|
'ledger-poster',
|
|
@@ -247,6 +247,64 @@ require_declarations(
|
|
|
247
247
|
errors, "assets/css/ledger/home.css", home_sheet,
|
|
248
248
|
".home-projects-bench", ["grid-template-columns: var(--home-icon-btn-size) max-content", "column-gap: calc(var(--space-xs) * 2)", "width: max-content", "margin-inline: auto"]
|
|
249
249
|
)
|
|
250
|
+
# PLT-AC-88 contents: large body-face lines, no ellipsis, small opened picture.
|
|
251
|
+
require_declarations(
|
|
252
|
+
errors, "assets/css/ledger/home.css", home_sheet,
|
|
253
|
+
".home-projects-bench", ["width: 100%", "margin-inline: 0"]
|
|
254
|
+
)
|
|
255
|
+
require_declarations(
|
|
256
|
+
errors, "assets/css/ledger/home.css", home_sheet,
|
|
257
|
+
".home-project-inventory-body", ["display: contents"]
|
|
258
|
+
)
|
|
259
|
+
require_declarations(
|
|
260
|
+
errors, "assets/css/ledger/home.css", home_sheet,
|
|
261
|
+
".home-project-inventory-title", ["white-space: normal", "font-family: var(--font-body)", "font-weight: var(--weight-body)", "font-size: clamp(1.45rem, 2.2vw, 2.05rem)"]
|
|
262
|
+
)
|
|
263
|
+
require_declarations(
|
|
264
|
+
errors, "assets/css/ledger/home.css", home_sheet,
|
|
265
|
+
".home-project-inventory-code", ["display: none"]
|
|
266
|
+
)
|
|
267
|
+
require_declarations(
|
|
268
|
+
errors, "assets/css/ledger/home.css", home_sheet,
|
|
269
|
+
".home-project-inventory-year", ["display: none"]
|
|
270
|
+
)
|
|
271
|
+
require_declarations(
|
|
272
|
+
errors, "assets/css/ledger/home.css", home_sheet,
|
|
273
|
+
".home-project-inventory-tags", ["display: none"]
|
|
274
|
+
)
|
|
275
|
+
require_declarations(
|
|
276
|
+
errors, "assets/css/ledger/home.css", home_sheet,
|
|
277
|
+
".home-project-inventory-excerpt", ["-webkit-line-clamp: 4", "overflow: hidden"]
|
|
278
|
+
)
|
|
279
|
+
require_declarations(
|
|
280
|
+
errors, "assets/css/ledger/home.css", home_sheet,
|
|
281
|
+
".home-project-inventory-glyph", ["overflow: hidden", "grid-area: icon"]
|
|
282
|
+
)
|
|
283
|
+
if home_sheet.match?(/\.home-project-inventory-title[^{]*\{[^}]*text-overflow:\s*ellipsis/)
|
|
284
|
+
errors << "assets/css/ledger/home.css: .home-project-inventory-title must not ellipsize (PLT-AC-88)"
|
|
285
|
+
end
|
|
286
|
+
if home_sheet.match?(/--mk-h:\s*0\.42em/)
|
|
287
|
+
errors << "assets/css/ledger/home.css: thin 0.42em selected mark bar must be gone (PLT-AC-105)"
|
|
288
|
+
end
|
|
289
|
+
if home_sheet.include?("data-contents-select")
|
|
290
|
+
errors << "assets/css/ledger/home.css: data-contents-select switch must be removed (PLT-AC-105)"
|
|
291
|
+
end
|
|
292
|
+
unless home_sheet.match?(/\.home-project-inventory-row\.is-selected[^{]*\{[^}]*background:\s*var\(--color-surface-high\)/m)
|
|
293
|
+
errors << "assets/css/ledger/home.css: selected row must use --color-surface-high (PLT-AC-105)"
|
|
294
|
+
end
|
|
295
|
+
unless home_sheet.match?(/padding:\s*0\.65rem\s+0\.5rem/)
|
|
296
|
+
errors << "assets/css/ledger/home.css: selected row must use equal outer padding (PLT-AC-106)"
|
|
297
|
+
end
|
|
298
|
+
# PLT-AC-104 survives strip_comments via the name-row-only grid hole.
|
|
299
|
+
unless home_sheet.match?(/grid-template-areas:[^;]*"\. plate"/m) || home_sheet.match?(/grid-template-areas:[^;]*"\. plate excerpt"/m)
|
|
300
|
+
errors << "assets/css/ledger/home.css: icon must share only the name row (PLT-AC-104)"
|
|
301
|
+
end
|
|
302
|
+
unless home_sheet.match?(/\.home-project-inventory-glyph[^{]*\{[^}]*align-self:\s*center/m) || home_sheet.include?("align-self: center")
|
|
303
|
+
errors << "assets/css/ledger/home.css: glyph/title must center on the name row (PLT-AC-104)"
|
|
304
|
+
end
|
|
305
|
+
if home_sheet.match?(/--home-specimen-plate-height:\s*15\.3125rem/)
|
|
306
|
+
errors << "assets/css/ledger/home.css: desktop must not keep 15.3125rem (PLT-AC-88)"
|
|
307
|
+
end
|
|
250
308
|
require_declarations(
|
|
251
309
|
errors, "assets/css/ledger/home.css", home_sheet,
|
|
252
310
|
".home-specimen-strip .ledger-meta", ["display: block", "white-space: normal"]
|
|
@@ -302,12 +360,12 @@ end
|
|
|
302
360
|
if home_sheet.match?(/Cinzel/i) || home_sheet.include?("5.55")
|
|
303
361
|
errors << "assets/css/ledger/home.css must not contain Cinzel or obsolete 5.55 comments/divisors (PLT-AC-68)"
|
|
304
362
|
end
|
|
305
|
-
# PLT-AC-98 / PLT-AC-86 supersession: hero name = band title token +
|
|
306
|
-
unless home_sheet.include?("font-size: calc(var(--type-section) +
|
|
307
|
-
errors << "assets/css/ledger/home.css: hero title must be type-section +
|
|
363
|
+
# PLT-AC-98 / PLT-AC-86 supersession: hero name = band title token + 4pt (not cqi/vw).
|
|
364
|
+
unless home_sheet.include?("font-size: calc(var(--type-section) + 4pt)")
|
|
365
|
+
errors << "assets/css/ledger/home.css: hero title must be type-section + 4pt (PLT-AC-98)"
|
|
308
366
|
end
|
|
309
|
-
unless home_sheet.include?("font-size: calc(var(--type-section-lg) +
|
|
310
|
-
errors << "assets/css/ledger/home.css: hero title ≥768 must be type-section-lg +
|
|
367
|
+
unless home_sheet.include?("font-size: calc(var(--type-section-lg) + 4pt)")
|
|
368
|
+
errors << "assets/css/ledger/home.css: hero title ≥768 must be type-section-lg + 4pt (PLT-AC-98)"
|
|
311
369
|
end
|
|
312
370
|
if home_sheet.include?("100cqi") || home_sheet.include?("1.85rem, 2.6vw") || home_sheet.include?("1.9rem, 7vw")
|
|
313
371
|
errors << "assets/css/ledger/home.css: hero title must not use cqi/vw clamps (PLT-AC-98)"
|
|
@@ -221,11 +221,11 @@ end
|
|
|
221
221
|
# ── 51.6 Name from 1024px ───────────────────────────────────────────────────
|
|
222
222
|
|
|
223
223
|
item(6) do
|
|
224
|
-
# PLT-AC-98: desk name is type-section-lg +
|
|
224
|
+
# PLT-AC-98: desk name is type-section-lg + 4pt (set at ≥768, not vw)
|
|
225
225
|
title = ".home-hero-title"
|
|
226
226
|
expect_decl(title, "white-space", "nowrap", media: DESKTOP)
|
|
227
227
|
expect_decl(title, "font-size",
|
|
228
|
-
"calc(var(--type-section-lg) +
|
|
228
|
+
"calc(var(--type-section-lg) + 4pt)",
|
|
229
229
|
media: "(min-width:768px)")
|
|
230
230
|
end
|
|
231
231
|
|
|
@@ -136,10 +136,10 @@ check!(symbols["family"] == "Rivera Santos", "symbol keys work, got #{symbols.in
|
|
|
136
136
|
|
|
137
137
|
hero = css[/\.home-hero-title \{.*?(?=\.home-hero-summary)/m]
|
|
138
138
|
check!(hero, "missing hero title block")
|
|
139
|
-
check!(hero.include?("font-size: calc(var(--type-section) +
|
|
140
|
-
"base name size is type-section +
|
|
141
|
-
check!(hero.include?("font-size: calc(var(--type-section-lg) +
|
|
142
|
-
"from 768px name is type-section-lg +
|
|
139
|
+
check!(hero.include?("font-size: calc(var(--type-section) + 4pt);"),
|
|
140
|
+
"base name size is type-section + 4pt (PLT-AC-98)")
|
|
141
|
+
check!(hero.include?("font-size: calc(var(--type-section-lg) + 4pt);"),
|
|
142
|
+
"from 768px name is type-section-lg + 4pt (PLT-AC-98)")
|
|
143
143
|
check!(!hero.include?("100cqi") && !css.include?("1.85rem, 2.6vw") && !css.include?("1.9rem, 7vw"),
|
|
144
144
|
"hero name must not use cqi/vw clamps (PLT-AC-98)")
|
|
145
145
|
|
|
@@ -155,7 +155,7 @@ check!(hero.include?("@media (max-width: 767px)") &&
|
|
|
155
155
|
desktop = hero[/@media \(min-width: 768px\)[\s\S]*?(?=\.home-hero-summary|\z)/]
|
|
156
156
|
check!(desktop && desktop.include?("white-space: nowrap"),
|
|
157
157
|
"from 768px the name stays on one line")
|
|
158
|
-
check!(desktop && desktop.include?("var(--type-section-lg) +
|
|
159
|
-
"768px media must set type-section-lg +
|
|
158
|
+
check!(desktop && desktop.include?("var(--type-section-lg) + 4pt"),
|
|
159
|
+
"768px media must set type-section-lg + 4pt")
|
|
160
160
|
|
|
161
161
|
puts "PASS test-hero-name"
|