pandorga 2.3.9 → 2.3.10
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 +6 -0
- data/assets/css/ledger/home.css +39 -65
- data/lib/pandorga/commands/new.rb +1 -1
- data/lib/pandorga/version.rb +1 -1
- data/scripts/test/test-css-structure.rb +9 -6
- data/scripts/test/test-hero-16x9.rb +3 -3
- data/scripts/test/test-hero-name.rb +18 -27
- data/scripts/test/test-home-hero-scale.rb +48 -0
- data/scripts/test/test-regression-gate.mjs +9 -5
- data/scripts/validate.sh +1 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d8d027036d8947006600c5cda526d17bad6aa99185257f006d1f1d4181f3664e
|
|
4
|
+
data.tar.gz: da34ed30504edce2e132812ba47cfcd9e4b75eccd745040a5f81d1526ad8e490
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6fa92c04ddf95c28fc6cfec3d415d333087d43663bc8dbeed71dad645a9b59cdfd79cbd5b332478f579268ccfce8f71de430cb1bf50fea3b92450e4420f066aa
|
|
7
|
+
data.tar.gz: f868ec1375f2ae31097d0dbb87d3a82dbd299f5df61ed8aec5d2552e9658979252e931fe40d856bd4ac3dcdd95cdfa6dbbb13060d50cca483fc932aaa8b49f56
|
data/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
## [Unreleased]
|
|
4
4
|
|
|
5
|
+
## [2.3.10] — 2026-10-30
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- CR-24: Hero name always band title + 2pt from `--type-section` / `--type-section-lg` (PLT-AC-98/99); soft overlay lightened so the figure reads while title/summary stay ≥7:1, target ~9–11:1 (PLT-AC-100). See [features/home-hero-scale-overlay.md](docs/features/home-hero-scale-overlay.md).
|
|
10
|
+
|
|
5
11
|
## [2.3.9] — 2026-10-30
|
|
6
12
|
|
|
7
13
|
### Fixed
|
data/assets/css/ledger/home.css
CHANGED
|
@@ -151,14 +151,12 @@
|
|
|
151
151
|
min-height: calc(var(--type-body) * 1.35);
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
/*
|
|
155
|
-
|
|
156
|
-
family-line width). From 640px the floor follows `.section-title` up to
|
|
157
|
-
`--type-section-lg`. Wider columns still grow toward `--type-page-lg`. */
|
|
154
|
+
/* PLT-AC-98: hero name tracks home band titles (+2pt), not photo/cqi width.
|
|
155
|
+
Band `.section-title` uses --type-section, then --type-section-lg from 768px. */
|
|
158
156
|
.home-hero-title {
|
|
159
157
|
font-family: var(--font-title);
|
|
160
158
|
font-weight: 400;
|
|
161
|
-
font-size:
|
|
159
|
+
font-size: calc(var(--type-section) + 2pt);
|
|
162
160
|
line-height: 1.05;
|
|
163
161
|
letter-spacing: -0.02em;
|
|
164
162
|
color: var(--color-on-surface);
|
|
@@ -185,44 +183,23 @@
|
|
|
185
183
|
padding: 0 0.1em;
|
|
186
184
|
}
|
|
187
185
|
|
|
188
|
-
@media (min-width: 640px) {
|
|
189
|
-
.home-hero-title {
|
|
190
|
-
font-size: clamp(var(--type-section-lg), calc(100cqi * 0.92 / 6.9), var(--type-page-lg));
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
/* Below 768px the name is 3pt larger than the clamp above, and the only
|
|
195
|
-
wrap point is the gap between the given name and the family name. */
|
|
196
|
-
@media (max-width: 639px) {
|
|
197
|
-
.home-hero-title {
|
|
198
|
-
white-space: normal;
|
|
199
|
-
font-size: calc(clamp(var(--type-section), calc(100cqi * 0.92 / 6.9), var(--type-page-lg)) + 3pt);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
@media (min-width: 640px) and (max-width: 767px) {
|
|
204
|
-
.home-hero-title {
|
|
205
|
-
white-space: normal;
|
|
206
|
-
font-size: calc(clamp(var(--type-section-lg), calc(100cqi * 0.92 / 6.9), var(--type-page-lg)) + 3pt);
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
186
|
@media (max-width: 767px) {
|
|
187
|
+
/* Only wrap between given and family name. */
|
|
211
188
|
.home-hero-given,
|
|
212
189
|
.home-hero-family {
|
|
213
190
|
display: inline-block;
|
|
214
191
|
white-space: nowrap;
|
|
215
192
|
}
|
|
216
|
-
}
|
|
217
193
|
|
|
218
|
-
@media (min-width: 768px) and (max-width: 1023px) {
|
|
219
194
|
.home-hero-title {
|
|
220
|
-
|
|
195
|
+
white-space: normal;
|
|
221
196
|
}
|
|
222
197
|
}
|
|
223
198
|
|
|
224
199
|
@media (min-width: 768px) {
|
|
225
200
|
.home-hero-title {
|
|
201
|
+
/* Same token step as .home-band .ledger-section-banner .section-title */
|
|
202
|
+
font-size: calc(var(--type-section-lg) + 2pt);
|
|
226
203
|
white-space: nowrap;
|
|
227
204
|
}
|
|
228
205
|
}
|
|
@@ -1905,8 +1882,8 @@ html[data-theme="light"] .home-featured .ledger-poster {
|
|
|
1905
1882
|
object-position: center;
|
|
1906
1883
|
}
|
|
1907
1884
|
|
|
1908
|
-
/* Soft edgeless photo overlay (C4 / PLT-AC-89) — full-bleed darkening, no panel.
|
|
1909
|
-
Stops
|
|
1885
|
+
/* Soft edgeless photo overlay (C4 / PLT-AC-89 / PLT-AC-100) — full-bleed darkening, no panel.
|
|
1886
|
+
Stops lightened vs 2.3.7 so the figure reads; vignette/pool still scale; target ~9–11:1. */
|
|
1910
1887
|
.home-hero-portrait::after {
|
|
1911
1888
|
content: "";
|
|
1912
1889
|
position: absolute;
|
|
@@ -1917,26 +1894,26 @@ html[data-theme="light"] .home-featured .ledger-poster {
|
|
|
1917
1894
|
background:
|
|
1918
1895
|
radial-gradient(
|
|
1919
1896
|
ellipse 75% 60% at 55% 32%,
|
|
1920
|
-
rgba(0, 0, 0, calc(0.
|
|
1921
|
-
rgba(0, 0, 0, calc(0.
|
|
1922
|
-
rgba(0, 0, 0, calc(0.
|
|
1897
|
+
rgba(0, 0, 0, calc(0.02 * var(--home-hero-vignette) / 0.6)) 0%,
|
|
1898
|
+
rgba(0, 0, 0, calc(0.14 * var(--home-hero-vignette) / 0.6)) 50%,
|
|
1899
|
+
rgba(0, 0, 0, calc(0.36 * var(--home-hero-vignette) / 0.6)) 100%
|
|
1923
1900
|
),
|
|
1924
1901
|
linear-gradient(
|
|
1925
1902
|
90deg,
|
|
1926
|
-
rgba(0, 0, 0, calc(0.
|
|
1927
|
-
rgba(0, 0, 0, calc(0.
|
|
1928
|
-
rgba(0, 0, 0, calc(0.
|
|
1929
|
-
rgba(0, 0, 0, calc(0.
|
|
1903
|
+
rgba(0, 0, 0, calc(0.48 * var(--home-hero-vignette) / 0.6)) 0%,
|
|
1904
|
+
rgba(0, 0, 0, calc(0.38 * var(--home-hero-vignette) / 0.6)) 14%,
|
|
1905
|
+
rgba(0, 0, 0, calc(0.24 * var(--home-hero-vignette) / 0.6)) 34%,
|
|
1906
|
+
rgba(0, 0, 0, calc(0.10 * var(--home-hero-vignette) / 0.6)) 54%,
|
|
1930
1907
|
transparent 76%
|
|
1931
1908
|
),
|
|
1932
1909
|
linear-gradient(
|
|
1933
1910
|
180deg,
|
|
1934
|
-
rgba(0, 0, 0, calc(0.
|
|
1935
|
-
rgba(0, 0, 0, calc(0.
|
|
1936
|
-
rgba(0, 0, 0, calc(0.
|
|
1937
|
-
rgba(0, 0, 0, calc(0.
|
|
1938
|
-
rgba(0, 0, 0, calc(0.
|
|
1939
|
-
rgba(0, 0, 0, calc(0.
|
|
1911
|
+
rgba(0, 0, 0, calc(0.14 * var(--home-hero-vignette) / 0.6)) 0%,
|
|
1912
|
+
rgba(0, 0, 0, calc(0.06 * var(--home-hero-vignette) / 0.6)) 14%,
|
|
1913
|
+
rgba(0, 0, 0, calc(0.10 * var(--home-hero-vignette) / 0.6)) 28%,
|
|
1914
|
+
rgba(0, 0, 0, calc(0.38 * var(--home-hero-vignette) / 0.6)) 52%,
|
|
1915
|
+
rgba(0, 0, 0, calc(0.58 * var(--home-hero-vignette) / 0.6)) 72%,
|
|
1916
|
+
rgba(0, 0, 0, calc(0.68 * var(--home-hero-vignette) / 0.6)) 100%
|
|
1940
1917
|
);
|
|
1941
1918
|
}
|
|
1942
1919
|
|
|
@@ -2022,30 +1999,30 @@ html[data-theme="light"] .home-featured .ledger-poster {
|
|
|
2022
1999
|
height: 100%;
|
|
2023
2000
|
object-fit: cover;
|
|
2024
2001
|
object-position: center;
|
|
2025
|
-
filter: saturate(0.
|
|
2002
|
+
filter: saturate(0.95) contrast(1.06) brightness(1.05);
|
|
2026
2003
|
}
|
|
2027
2004
|
|
|
2028
|
-
/*
|
|
2005
|
+
/* PLT-AC-100: stack overlay lightened — figure visible, text still ≥7:1 */
|
|
2029
2006
|
.home-hero-portrait::after {
|
|
2030
2007
|
border-radius: 0;
|
|
2031
2008
|
background:
|
|
2032
2009
|
radial-gradient(
|
|
2033
2010
|
ellipse 85% 50% at 50% 14%,
|
|
2034
|
-
rgba(0, 0, 0, calc(0.
|
|
2035
|
-
rgba(0, 0, 0, calc(0.
|
|
2036
|
-
rgba(0, 0, 0, calc(0.
|
|
2011
|
+
rgba(0, 0, 0, calc(0.04 * var(--home-hero-vignette) / 0.6)) 0%,
|
|
2012
|
+
rgba(0, 0, 0, calc(0.16 * var(--home-hero-vignette) / 0.6)) 50%,
|
|
2013
|
+
rgba(0, 0, 0, calc(0.36 * var(--home-hero-vignette) / 0.6)) 100%
|
|
2037
2014
|
),
|
|
2038
2015
|
linear-gradient(
|
|
2039
2016
|
180deg,
|
|
2040
|
-
rgba(0, 0, 0, calc(0.
|
|
2041
|
-
rgba(0, 0, 0, calc(0.
|
|
2042
|
-
rgba(0, 0, 0, calc(0.
|
|
2043
|
-
rgba(0, 0, 0, calc(0.
|
|
2044
|
-
rgba(0, 0, 0, calc(0.
|
|
2045
|
-
rgba(0, 0, 0, calc(0.
|
|
2046
|
-
rgba(0, 0, 0, calc(0.
|
|
2047
|
-
rgba(0, 0, 0, calc(0.
|
|
2048
|
-
rgba(0, 0, 0, calc(0.
|
|
2017
|
+
rgba(0, 0, 0, calc(0.16 * var(--home-hero-vignette) / 0.6)) 0%,
|
|
2018
|
+
rgba(0, 0, 0, calc(0.12 * var(--home-hero-vignette) / 0.6)) 6%,
|
|
2019
|
+
rgba(0, 0, 0, calc(0.28 * var(--home-hero-vignette) / 0.6)) 16%,
|
|
2020
|
+
rgba(0, 0, 0, calc(0.48 * var(--home-hero-vignette) / 0.6)) 28%,
|
|
2021
|
+
rgba(0, 0, 0, calc(0.58 * var(--home-hero-vignette) / 0.6)) 40%,
|
|
2022
|
+
rgba(0, 0, 0, calc(0.62 * var(--home-hero-vignette) / 0.6)) 52%,
|
|
2023
|
+
rgba(0, 0, 0, calc(0.58 * var(--home-hero-vignette) / 0.6)) 66%,
|
|
2024
|
+
rgba(0, 0, 0, calc(0.42 * var(--home-hero-vignette) / 0.6)) 82%,
|
|
2025
|
+
rgba(0, 0, 0, calc(0.28 * var(--home-hero-vignette) / 0.6)) 100%
|
|
2049
2026
|
);
|
|
2050
2027
|
}
|
|
2051
2028
|
|
|
@@ -2068,11 +2045,9 @@ html[data-theme="light"] .home-featured .ledger-poster {
|
|
|
2068
2045
|
background: transparent;
|
|
2069
2046
|
}
|
|
2070
2047
|
|
|
2071
|
-
/*
|
|
2048
|
+
/* PLT-AC-98: stack inherits token+2pt; keep photo ink/shadow */
|
|
2072
2049
|
.home-ledger .home-hero-title,
|
|
2073
2050
|
.home-hero-title {
|
|
2074
|
-
white-space: normal;
|
|
2075
|
-
font-size: clamp(1.9rem, 7vw, 2.6rem);
|
|
2076
2051
|
line-height: 1.08;
|
|
2077
2052
|
max-width: 100%;
|
|
2078
2053
|
color: #ffffff;
|
|
@@ -2297,7 +2272,7 @@ html[data-theme="light"] .home-featured .ledger-poster {
|
|
|
2297
2272
|
max-width: none;
|
|
2298
2273
|
object-fit: cover;
|
|
2299
2274
|
object-position: center;
|
|
2300
|
-
filter: saturate(0.
|
|
2275
|
+
filter: saturate(0.95) contrast(1.06) brightness(1.05);
|
|
2301
2276
|
}
|
|
2302
2277
|
|
|
2303
2278
|
.home-hero-plate .ledger-frame-corners,
|
|
@@ -2321,11 +2296,10 @@ html[data-theme="light"] .home-featured .ledger-poster {
|
|
|
2321
2296
|
background: transparent;
|
|
2322
2297
|
}
|
|
2323
2298
|
|
|
2324
|
-
/*
|
|
2299
|
+
/* PLT-AC-98: desk uses type-section-lg + 2pt (set ≥768); keep photo ink */
|
|
2325
2300
|
.home-ledger .home-hero-title,
|
|
2326
2301
|
.home-hero-title {
|
|
2327
2302
|
white-space: nowrap;
|
|
2328
|
-
font-size: calc(clamp(1.85rem, 2.6vw, 2.55rem) + 2pt);
|
|
2329
2303
|
line-height: 1.08;
|
|
2330
2304
|
max-width: 100%;
|
|
2331
2305
|
overflow: hidden;
|
|
@@ -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.10"
|
|
28
28
|
gem "csv"
|
|
29
29
|
gem "base64"
|
|
30
30
|
RUBY
|
data/lib/pandorga/version.rb
CHANGED
|
@@ -298,16 +298,19 @@ if declaration_bodies(home_sheet, ".home-hero-summary").any? { |body| declaratio
|
|
|
298
298
|
errors << "assets/css/ledger/home.css: .home-hero-summary must use --color-legend (PLT-AC-23)"
|
|
299
299
|
end
|
|
300
300
|
|
|
301
|
-
# PLT-AC-62 / PLT-AC-68.
|
|
301
|
+
# PLT-AC-62 / PLT-AC-68. Cinzel and obsolete 5.55 divisors stay gone.
|
|
302
302
|
if home_sheet.match?(/Cinzel/i) || home_sheet.include?("5.55")
|
|
303
303
|
errors << "assets/css/ledger/home.css must not contain Cinzel or obsolete 5.55 comments/divisors (PLT-AC-68)"
|
|
304
304
|
end
|
|
305
|
-
#
|
|
306
|
-
unless home_sheet.include?("calc(
|
|
307
|
-
errors << "assets/css/ledger/home.css:
|
|
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)"
|
|
308
308
|
end
|
|
309
|
-
unless home_sheet.include?("calc(
|
|
310
|
-
errors << "assets/css/ledger/home.css:
|
|
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)"
|
|
311
|
+
end
|
|
312
|
+
if home_sheet.include?("100cqi") || home_sheet.include?("1.85rem, 2.6vw") || home_sheet.include?("1.9rem, 7vw")
|
|
313
|
+
errors << "assets/css/ledger/home.css: hero title must not use cqi/vw clamps (PLT-AC-98)"
|
|
311
314
|
end
|
|
312
315
|
|
|
313
316
|
# PLT-AC-69. Inventory / project logo icon font-sizes +2pt.
|
|
@@ -221,12 +221,12 @@ end
|
|
|
221
221
|
# ── 51.6 Name from 1024px ───────────────────────────────────────────────────
|
|
222
222
|
|
|
223
223
|
item(6) do
|
|
224
|
-
#
|
|
224
|
+
# PLT-AC-98: desk name is type-section-lg + 2pt (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(
|
|
229
|
-
media:
|
|
228
|
+
"calc(var(--type-section-lg) + 2pt)",
|
|
229
|
+
media: "(min-width:768px)")
|
|
230
230
|
end
|
|
231
231
|
|
|
232
232
|
# ── 51.7 Markup ─────────────────────────────────────────────────────────────
|
|
@@ -132,39 +132,30 @@ check!(long["family"] == (1..8).map { |index| "Tok#{index}" }.join(" "),
|
|
|
132
132
|
symbols = Pandorga::IdentityName.resolve({ first_name: "Ada", last_name: "Rivera Santos" })
|
|
133
133
|
check!(symbols["family"] == "Rivera Santos", "symbol keys work, got #{symbols.inspect}")
|
|
134
134
|
|
|
135
|
-
# ── PLT-AC-15 / PLT-AC-
|
|
135
|
+
# ── PLT-AC-15 / PLT-AC-98 ───────────────────────────────────────────────────
|
|
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:
|
|
140
|
-
"base name size
|
|
141
|
-
check!(hero.include?("
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
"missing 640-767 size query")
|
|
146
|
-
check!(hero.include?("calc(clamp(var(--type-section-lg), calc(100cqi * 0.92 / 6.9), var(--type-page-lg)) + 3pt)"),
|
|
147
|
-
"from 640px to 767px the name must be the section-lg clamp plus 3pt")
|
|
148
|
-
# CR-22.1 supersedes desktop --hero-name-fit 6.9 with the approved B3 clamp.
|
|
149
|
-
check!(css.include?("calc(clamp(1.85rem, 2.6vw, 2.55rem) + 2pt)"),
|
|
150
|
-
"desktop B3 name clamp must be present (CR-22.1)")
|
|
151
|
-
check!(css.include?("clamp(1.9rem, 7vw, 2.6rem)"),
|
|
152
|
-
"stack B3 name clamp must be present (CR-22.1)")
|
|
153
|
-
|
|
154
|
-
plain = hero.index("@media (min-width: 640px) {")
|
|
155
|
-
banded = hero.index("@media (min-width: 640px) and (max-width: 767px)")
|
|
156
|
-
check!(plain && banded && banded > plain,
|
|
157
|
-
"the +3pt band must follow the plain 640px clamp so it wins")
|
|
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)")
|
|
143
|
+
check!(!hero.include?("100cqi") && !css.include?("1.85rem, 2.6vw") && !css.include?("1.9rem, 7vw"),
|
|
144
|
+
"hero name must not use cqi/vw clamps (PLT-AC-98)")
|
|
158
145
|
|
|
159
146
|
phone = hero[/@media \(max-width: 767px\) \{.*?\n\}/m]
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
147
|
+
# Nested rules: match from the media opener through the last name part selectors.
|
|
148
|
+
check!(hero.include?("@media (max-width: 767px)") &&
|
|
149
|
+
hero.include?(".home-hero-given") &&
|
|
150
|
+
hero.include?(".home-hero-family") &&
|
|
151
|
+
hero.include?("inline-block") &&
|
|
152
|
+
hero.include?("white-space: nowrap"),
|
|
153
|
+
"on a phone each name is an unbreakable unit")
|
|
154
|
+
|
|
155
|
+
desktop = hero[/@media \(min-width: 768px\)[\s\S]*?(?=\.home-hero-summary|\z)/]
|
|
166
156
|
check!(desktop && desktop.include?("white-space: nowrap"),
|
|
167
157
|
"from 768px the name stays on one line")
|
|
168
|
-
check!(
|
|
158
|
+
check!(desktop && desktop.include?("var(--type-section-lg) + 2pt"),
|
|
159
|
+
"768px media must set type-section-lg + 2pt")
|
|
169
160
|
|
|
170
161
|
puts "PASS test-hero-name"
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# PLT-AC-98…100 — hero name = band title + 2pt; overlay lighter than 2.3.7.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
errors = []
|
|
7
|
+
home = File.read(File.expand_path("../../assets/css/ledger/home.css", __dir__))
|
|
8
|
+
|
|
9
|
+
unless home.include?("font-size: calc(var(--type-section) + 2pt)")
|
|
10
|
+
errors << "home.css: base .home-hero-title must be calc(var(--type-section) + 2pt) (PLT-AC-98)"
|
|
11
|
+
end
|
|
12
|
+
unless home.include?("font-size: calc(var(--type-section-lg) + 2pt)")
|
|
13
|
+
errors << "home.css: ≥768 .home-hero-title must be calc(var(--type-section-lg) + 2pt) (PLT-AC-98)"
|
|
14
|
+
end
|
|
15
|
+
if home.match?(/\.home-hero-title[^{]*\{[^}]*100cqi/) || home.include?("1.85rem, 2.6vw") || home.include?("1.9rem, 7vw")
|
|
16
|
+
errors << "home.css: .home-hero-title must not size from cqi/vw (PLT-AC-98)"
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
# Band titles still on the same tokens the hero tracks.
|
|
20
|
+
unless home.include?(".home-band .ledger-section-banner .section-title") && home.include?("font-size: var(--type-section)")
|
|
21
|
+
errors << "home.css: band .section-title must keep --type-section (PLT-AC-98)"
|
|
22
|
+
end
|
|
23
|
+
unless home.include?("font-size: var(--type-section-lg)")
|
|
24
|
+
errors << "home.css: band .section-title ≥768 must keep --type-section-lg (PLT-AC-98)"
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Overlay still soft/edgeless, no panel on copy; lighter stops than 2.3.7 (0.92 / 0.88).
|
|
28
|
+
unless home.include?(".home-hero-portrait::after")
|
|
29
|
+
errors << "home.css: soft ::after overlay missing (PLT-AC-100)"
|
|
30
|
+
end
|
|
31
|
+
if home.include?("rgba(0, 0, 0, calc(0.92 * var(--home-hero-vignette) / 0.6))") ||
|
|
32
|
+
home.include?("rgba(0, 0, 0, calc(0.88 * var(--home-hero-vignette) / 0.6))")
|
|
33
|
+
errors << "home.css: overlay still uses 2.3.7 deep stops 0.92/0.88 (PLT-AC-100)"
|
|
34
|
+
end
|
|
35
|
+
# Copy must stay transparent (no panel).
|
|
36
|
+
home.scan(/\.home-hero-copy\s*\{[^}]+\}/m).each do |block|
|
|
37
|
+
next unless block.include?("background:")
|
|
38
|
+
unless block.include?("background: transparent")
|
|
39
|
+
errors << "home.css: .home-hero-copy must stay background: transparent (PLT-AC-100)"
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
if errors.empty?
|
|
44
|
+
puts "OK home-hero-scale (PLT-AC-98…100)"
|
|
45
|
+
else
|
|
46
|
+
warn errors.join("\n")
|
|
47
|
+
exit 1
|
|
48
|
+
end
|
|
@@ -563,16 +563,20 @@ const ASSERT_EXPRESSION = `
|
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
|
|
566
|
-
// PLT-AC-86: name fits
|
|
566
|
+
// PLT-AC-86 / PLT-AC-99: name fits; h1 − band h2 in [2.4, 3.0] px
|
|
567
567
|
if (title && hb.width > 40) {
|
|
568
568
|
const tr = title.getBoundingClientRect();
|
|
569
569
|
if (tr.right > hb.right + 1) {
|
|
570
570
|
errors.push('Hero name right (' + tr.right.toFixed(1) + ') past panel right (' + hb.right.toFixed(1) + ') (PLT-AC-86)');
|
|
571
571
|
}
|
|
572
|
-
const
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
572
|
+
const band = document.querySelector('.home-band .ledger-section-banner .section-title');
|
|
573
|
+
if (band) {
|
|
574
|
+
const h1 = parseFloat(getComputedStyle(title).fontSize);
|
|
575
|
+
const h2 = parseFloat(getComputedStyle(band).fontSize);
|
|
576
|
+
const delta = h1 - h2;
|
|
577
|
+
if (delta < 2.4 || delta > 3.0) {
|
|
578
|
+
errors.push('Hero h1−band h2 delta ' + delta.toFixed(2) + 'px not in [2.4, 3.0] (PLT-AC-99)');
|
|
579
|
+
}
|
|
576
580
|
}
|
|
577
581
|
}
|
|
578
582
|
|
data/scripts/validate.sh
CHANGED
|
@@ -80,6 +80,7 @@ TESTS=(
|
|
|
80
80
|
scripts/test/test-studio-section-texts.rb
|
|
81
81
|
scripts/test/test-home-article-cards.rb
|
|
82
82
|
scripts/test/test-home-hero-c4.rb
|
|
83
|
+
scripts/test/test-home-hero-scale.rb
|
|
83
84
|
scripts/test/test-detail-action-icons.rb
|
|
84
85
|
scripts/test/test-parallel-content-publish.rb
|
|
85
86
|
scripts/test/test-mobile-density-home-measure.rb
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pandorga
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.3.
|
|
4
|
+
version: 2.3.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- The Pandorga contributors
|
|
@@ -445,6 +445,7 @@ files:
|
|
|
445
445
|
- scripts/test/test-home-band-art.rb
|
|
446
446
|
- scripts/test/test-home-band-intro.rb
|
|
447
447
|
- scripts/test/test-home-hero-c4.rb
|
|
448
|
+
- scripts/test/test-home-hero-scale.rb
|
|
448
449
|
- scripts/test/test-home-lists.rb
|
|
449
450
|
- scripts/test/test-hydrate-reserve.rb
|
|
450
451
|
- scripts/test/test-install-functions.rb
|