style: apply CHRNX character-led sections

This commit is contained in:
chrnx committed 2026-08-12 17:40:22 -05:00
1 parent 5518e3598a
commit 11ac0ac715
3 files changed
+643 -8

No files matched your search

+19
View File
@@ -271,3 +271,22 @@ test( 'character-led openings share the exact stage class contract', () => {
assert.match( read( 'patterns/about.php' ), /chrnx-character-facets/ );
assert.match( read( 'blocks/topic-hero/render.php' ), /chrnx-topic-hero__fallback/ );
} );
test( 'character stages define the shared mockup effect and responsive geometry', () => {
const components = read( 'assets/css/components.css' );
for ( const token of [
'--chrnx-character-accent',
'--chrnx-character-halo',
'--chrnx-character-wash',
'--chrnx-character-shadow',
] ) {
assert.match( components, new RegExp( token ), `${ token } must be shared` );
}
assert.match( components, /\.chrnx-character-stage\s*\{[\s\S]*?grid-template-columns:\s*minmax\(0,\s*55fr\)\s+minmax\(0,\s*45fr\)/ );
assert.match( components, /\.chrnx-character-stage__atmosphere::before/ );
assert.match( components, /\.chrnx-character-stage__atmosphere::after/ );
assert.match( components, /\.chrnx-character-stage__art\s*>\s*\.chrnx-responsive-portrait/ );
assert.match( components, /@media \(max-width:\s*780px\)[\s\S]*?\.chrnx-character-stage\s*\{[\s\S]*?grid-template-columns:\s*1fr/ );
assert.match( components, /@media \(prefers-reduced-motion:\s*reduce\)[\s\S]*?\.chrnx-character-stage/ );
} );