From c0aaee409d18fad711b1f13a69b9f2163bf36c23 Mon Sep 17 00:00:00 2001 From: argszero Date: Mon, 28 Sep 2026 06:19:43 +0800 Subject: [PATCH] docs(ui): stop claiming a .bar-label alias the stylesheet no longer has MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The comment above `.bar-row .bar-top` read "(线上 .bar-label 为其别名)" — i.e. it asserted that writing `class="bar-label"` today still renders. It does not. `git grep -n 'bar-label'` over the whole tree returns exactly one hit: that comment. There is no `.bar-label` rule, no markup emits it, and `docs/prototype/aitokenpool-console.html` does not carry it either — so the three possible consumers (rule / implementation / prototype) are all absent. `git show 75dcb2c` (#154, the shared component layer) is where the name was removed: the same commit deletes `.bar-row .bar-label` and adds `.bar-row .bar-top`, and its message reads "bar-label/bar -> bar-top/bar-track/bar-fill". The alias claim was written by that very commit, so it has been false since it was authored. #154 left two such breadcrumbs. #316 fixed the `.stat` one; this is the other. The wording mirrors the phrasing #316 landed for `.stat-card` — name the historical name and say there is no alias rule, rather than inventing one (the rejected alternative in both cases: adding a real `.bar-label` rule). Also bumps `ui/index.html`'s `style.css?v=` token, as every style.css change in this file's history does. No behavioural change: one comment plus a cache-bust token. --- ui/css/style.css | 3 ++- ui/index.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/css/style.css b/ui/css/style.css index eed9c6f..2dc102e 100644 --- a/ui/css/style.css +++ b/ui/css/style.css @@ -1198,7 +1198,8 @@ textarea.input:focus { border-color: var(--accent); } .bar-track { height: 8px; border-radius: 999px; background: var(--fg-soft); overflow: hidden; } .bar-fill { height: 100%; border-radius: 999px; background: var(--accent); } .bar-fill.alt { background: color-mix(in oklch, var(--accent) 45%, var(--muted)); } -/* .bar-row .bar-top:原型「名称左 / 数值右」的行头(线上 .bar-label 为其别名) */ +/* .bar-row .bar-top:原型「名称左 / 数值右」的行头; + #154 起以原型规范名取代历史名 .bar-label(那一整族规则已删,这里**没有**别名规则) */ .bar-row .bar-top { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; } /* ---- 空态 ---- */ diff --git a/ui/index.html b/ui/index.html index eaf1048..15747de 100644 --- a/ui/index.html +++ b/ui/index.html @@ -5,7 +5,7 @@ AITokenPool - +