pandorga 2.3.16 → 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.
@@ -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 + 2pt (not cqi/vw).
306
- unless home_sheet.include?("font-size: calc(var(--type-section) + 2pt)")
307
- errors << "assets/css/ledger/home.css: hero title must be type-section + 2pt (PLT-AC-98)"
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) + 2pt)")
310
- errors << "assets/css/ledger/home.css: hero title ≥768 must be type-section-lg + 2pt (PLT-AC-98)"
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 + 2pt (set at ≥768, not vw)
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) + 2pt)",
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) + 2pt);"),
140
- "base name size is type-section + 2pt (PLT-AC-98)")
141
- check!(hero.include?("font-size: calc(var(--type-section-lg) + 2pt);"),
142
- "from 768px name is type-section-lg + 2pt (PLT-AC-98)")
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) + 2pt"),
159
- "768px media must set type-section-lg + 2pt")
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"