完成50%

This commit is contained in:
2026-07-23 08:23:59 +08:00
parent 9b0ad62df4
commit f1edc6b533
218 changed files with 24318 additions and 5514 deletions
@@ -31,6 +31,10 @@ Assert-Match $header '(?s)\.header-icon-button\s*\{[^}]*display:\s*grid;[^}]*pla
if ($header -match '(?s)\.header-icon-button\s*\{[^}]*position\s*:') {
throw 'PageHeader icon button must not be a positioning context'
}
Assert-Match $header '(?s)\.header-brand\s*\{[^}]*display:\s*grid;[^}]*min-height:\s*88rpx;[^}]*place-items:\s*center;' 'PageHeader decorative brand must preserve the header grid without becoming interactive'
if ($header -match '(?s)\.header-brand\s*\{[^}]*position\s*:') {
throw 'PageHeader decorative brand must not be a positioning context'
}
Assert-Match $header '(?s)\.header-logo,\s*\.header-notice-icon,\s*\.notice-dot\s*\{[^}]*grid-area:\s*1 / 1;' 'PageHeader icon and notice dot must share one grid cell'
if ($header -match '(?s)\.notice-dot\s*\{[^}]*position\s*:') {
throw 'PageHeader notice dot must use grid alignment instead of positioning'