完成全项目响应式审核与换机交接
This commit is contained in:
@@ -19,12 +19,14 @@ foreach ($expected in @(
|
||||
'/pages/family/f01-family-feed',
|
||||
'ModulePageBackground',
|
||||
'PageHeader',
|
||||
'AppButton'
|
||||
'AppButton',
|
||||
'@use "../../styles/adaptive-frame-profiles.scss" as adaptive;',
|
||||
'@include adaptive.adaptive-family-panel;'
|
||||
)) {
|
||||
Assert-Contains $page $expected "F10 contract missing: $expected"
|
||||
}
|
||||
|
||||
foreach ($forbidden in @('<ModulePage page-id="f10"', 'import ModulePage from')) {
|
||||
foreach ($forbidden in @('<ModulePage page-id="f10"', 'import ModulePage from', 'class="video-status-card__skin"', 'module-content-frame.png')) {
|
||||
if ($page.Contains($forbidden)) { throw "F10 retains forbidden dependency: $forbidden" }
|
||||
}
|
||||
|
||||
@@ -32,7 +34,7 @@ if ($page -match '(?m)^\s*position\s*:\s*relative\s*;') {
|
||||
throw 'F10 ordinary page content must not use position: relative'
|
||||
}
|
||||
|
||||
foreach ($selector in @('.video-status-lead text', '.video-status-card__body')) {
|
||||
foreach ($selector in @('.video-status-lead text')) {
|
||||
$escapedSelector = [regex]::Escape($selector)
|
||||
if ($page -notmatch "(?s)$escapedSelector\s*\{[^}]*z-index\s*:\s*1\s*;") {
|
||||
throw "F10 grid content must render above its decorative skin: $selector"
|
||||
|
||||
Reference in New Issue
Block a user