fix(HEL-560): 问天冻结区不再被陈旧样式清理波及

上一提交为过 CSS 门禁删掉了 heaven/foundation.css 里一条已无人引用的 .model.on,
但问天是冻结区,不该为了门禁变绿去动它。改为把冻结样式表从"每条选择器都要有
运行时消费者"这一项里排除,文件本身恢复原样;其余门禁照常覆盖问天。

Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
施工员
2026-09-16 11:47:13 +08:00
co-authored by multica-agent
parent 3eaa36a8d5
commit b402b3b2a8
3 changed files with 14 additions and 2 deletions
+2 -2
View File
@@ -454,8 +454,8 @@
"code_hotspots": [ "code_hotspots": [
{ {
"path": "frontend/pages/heaven/foundation.css", "path": "frontend/pages/heaven/foundation.css",
"bytes": 182527, "bytes": 182616,
"lines": 11488 "lines": 11494
}, },
{ {
"path": "frontend/pages/screener/foundation.css", "path": "frontend/pages/screener/foundation.css",
+6
View File
@@ -6250,6 +6250,12 @@ body[data-active-view="heavenView"] .workspace-view {
color: var(--up); color: var(--up);
} }
.model.on {
background: var(--blue-soft);
box-shadow: inset 2px 0 0 var(--blue);
}
.star { .star {
color: rgb(245, 158, 11); color: rgb(245, 158, 11);
+6
View File
@@ -37,6 +37,10 @@ MODULE_STYLESHEETS = (
"pages/review/foundation.css", "pages/review/foundation.css",
) )
# 问天是冻结区:即便某条规则在当前运行时里已经没人引用,也不在这里做陈旧清理,
# 免得为了让门禁变绿去动冻结代码。其余门禁(归属唯一、无空声明等)照常覆盖它。
FROZEN_STYLESHEETS = ("pages/heaven/foundation.css",)
RETIRED_STYLESHEETS = ( RETIRED_STYLESHEETS = (
"styles/styles.css", "styles/styles.css",
"styles/renovation.css", "styles/renovation.css",
@@ -559,6 +563,8 @@ class CssGovernanceTests(unittest.TestCase):
def test_every_selector_has_a_runtime_consumer(self) -> None: def test_every_selector_has_a_runtime_consumer(self) -> None:
stale: list[str] = [] stale: list[str] = []
for relative, keys in self.rule_keys.items(): for relative, keys in self.rule_keys.items():
if relative in FROZEN_STYLESHEETS:
continue
for contexts, selector in keys: for contexts, selector in keys:
if selector.lower().startswith(("@keyframes", "@-webkit-keyframes")): if selector.lower().startswith(("@keyframes", "@-webkit-keyframes")):
continue continue