Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

refactor(web): 删掉九组没人用的样式,并加一条覆盖门槛

longmeidaocaf2c6e2ead3
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.py
index e1f9614ed..21b2fecfb 100644
--- a/tests/test_web_ui.py
+++ b/tests/test_web_ui.py
@@ -18,6 +18,10 @@ class WebUiSourceTests(unittest.TestCase):
cls.page = chr(10).join(
path.read_text(encoding="utf-8") for path in sources
)
+ # 「谁用到了这个类名」只能问模板一侧。样式表自己不算——把 app.css 也接进来
+ # 比对,每个选择器都会匹配到它自己的定义。
+ markup = [web / "index.html", web / "app.js", *sorted((web / "js").glob("*.js"))]
+ cls.markup = chr(10).join(path.read_text(encoding="utf-8") for path in markup)
# 页面源断言必须自带有界失败信息。assertIn 失败时会把整个 index.html(约 189 KB)
# 原样塞进错误消息,一条失败就产出 195 KB 输出;工具管道遇到超大输出会转存成文件,
@@ -140,6 +144,32 @@ class WebUiSourceTests(unittest.TestCase):
self.assertNotIn("--fs-", css.split("--fs-xs")[0][-40:],
"刻度必须从 --fs-xs 开始,别在前面塞更小的档")
+ def test_every_class_selector_in_the_stylesheet_is_actually_used(self):
+ """样式表里的每个类选择器都要有人用它。
+
+ 没人用的规则不会报错,只会一直被读、被改、被当成「现在的样子」来推理。
+ 实测一次就清出九组:`.fdetails` 那一整套折叠摘要、`.mediatabs`、
+ `.edge .srcrow`、`.javhint`、`.photosets`、`.meta .whosep`、`.reviewhead`、
+ `.resourceerror`——对应的 JS 早就删了或改了名,样式留在原地。
+
+ 两类例外,都必须是「前缀 + 运行时拼出来的一段」,不接受逐个类名的豁免:
+ vendor 在运行时自己加的类(Video.js、Swiper),以及模板里用模板串拼出来的
+ 类名(`' cat-'+cat` 这种,源码里不会出现完整的 `cat-artist`)。
+ """
+ # 注释里会写类名当例子,`url()` 里的域名(www.w3.org)会被当成 `.org`。
+ css = re.sub(r"/\*.*?\*/", "", self.css, flags=re.S)
+ css = re.sub(r"url\([^)]*\)", "url()", css)
+ selectors = set(re.findall(r"\.(-?[A-Za-z_][A-Za-z0-9_-]*)", css))
+ vendor = ("vjs-", "swiper-")
+ composed = ("cat-", "r34-", "idgroup-", "geist-note-", "skeleton-")
+ # 前缀豁免要能兑现:拼接那一处必须真的在模板里。
+ for prefix in composed:
+ self.assertIn(prefix, self.markup, f"{prefix} 已经没人拼了,连同规则一起删")
+ unused = sorted(
+ name for name in selectors
+ if name not in self.markup and not name.startswith(vendor + composed))
+ self.assertEqual(unused, [], f"样式表里有没人用的类选择器:{unused}")
+
def test_pill_shapes_are_reserved_for_things_that_are_actually_tags(self):
"""整圆胶囊有一个来源,普通元信息不许长成标签。
@@ -1870,7 +1900,6 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains('title="${esc(label)}" aria-label="${esc(label)}"')
self.assertPageContains(".src{display:grid;place-items:center;width:20px;height:20px;padding:0;border:0;background:transparent}")
self.assertPageContains(".srcbig{display:inline-grid;place-items:center;width:22px;height:22px;padding:0;border:0;background:transparent}")
- self.assertPageContains(".edge .srcrow button{width:52px;height:44px")
def test_beeg_evidence_driven_surfaces_are_translucent_and_rail_is_continuous(self):
self.assertPageContains(".brandpill{")
@@ -3372,7 +3401,6 @@ class WebUiSourceTests(unittest.TestCase):
路径则整个消失(关闭按钮上「没有 x」就是这么来的)。
"""
for rule in (
- ".mediatabs button svg{width:16px;height:16px;stroke:currentColor;fill:none",
".photoback svg{width:15px;height:15px;stroke:currentColor;fill:none",
".media-circle svg{display:block;width:24px;height:24px;flex:none;stroke:currentColor;fill:none",
):
diff --git a/web/app.css b/web/app.css
index 0c8960cda..ea34250c2 100644
--- a/web/app.css
+++ b/web/app.css
@@ -227,7 +227,7 @@ button[aria-busy="true"],[role="button"][aria-busy="true"]{
.playlistcards{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}.playlistcard{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;padding:12px;border:1px solid var(--line-soft);border-radius:12px;background:var(--surface);min-width:0}.playlistcover{position:relative;aspect-ratio:16/10;border:0;border-radius:8px;background:#000;overflow:hidden;padding:0;cursor:pointer}.playlistcover:disabled{cursor:default}.playlistcover img{width:100%;height:100%;object-fit:cover}.playlistcover span{position:absolute;right:5px;bottom:5px;border-radius:5px;background:#000b;color:#fff;padding:3px 6px;font-size:var(--fs-xs)}.playlistmeta{display:grid;align-content:center;gap:6px;min-width:0}.playlistmeta input{min-width:0;width:100%;font-weight:600}.playlistmeta small{color:var(--muted)}.playlistactions{grid-column:1/-1;display:flex;gap:7px;justify-content:flex-end}.playlistactions .danger{color:var(--drop)}
.playlistdialog{width:min(520px,calc(100vw - 28px));border:1px solid var(--line);border-radius:var(--floating-radius);background:var(--surface);color:var(--ink);padding:0;box-shadow:0 2px 4px #0003,0 24px 80px #000b}.playlistdialog::backdrop{background:#000a;backdrop-filter:blur(5px)}.playlistdialoghead{display:flex;align-items:center;justify-content:space-between;padding:16px 17px;border-bottom:1px solid var(--line-soft)}.playlistdialoghead h2{margin:0;font-size:var(--fs-xl)}.playlistdialoghead button{width:34px;height:34px;border:0;border-radius:var(--control-radius);background:transparent;color:var(--ink);display:grid;place-items:center;cursor:pointer}.playlistdialoghead button:hover{background:var(--hover)}.playlistdialoghead svg{width:19px;height:19px;stroke:currentColor;fill:none}.playlistdialogbody{padding:17px}.playlistpicklist{display:grid;gap:7px;margin-top:16px;max-height:320px;overflow-y:auto;overscroll-behavior:contain}.playlistpickrow{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--border-10);border-radius:var(--control-radius);background:var(--overlay-5);color:var(--ink);padding:11px 12px;text-align:left;cursor:pointer}.playlistpickrow:hover{border-color:var(--tungsten)}.playlistpickrow small{color:var(--muted)}
.runtimegate{display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:center;gap:12px;margin:0 0 12px;padding:10px 12px;border:1px solid color-mix(in srgb,var(--meter) 35%,var(--line));border-radius:var(--control-radius);background:color-mix(in srgb,var(--meter) 8%,var(--surface));color:var(--ink);font-size:var(--fs-sm)}.runtimegate>svg{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.runtimegate span{min-width:0}.runtimegate a{color:var(--ink);font-weight:650;text-decoration:none}.runtimegate a:hover{color:var(--tungsten);text-decoration:none}
-.review{--review-fieldset-height:440px;padding:0 0 42px}.reviewhead{display:flex;align-items:baseline;gap:12px;padding:2px 2px 0;margin-bottom:12px}.reviewhead h2{margin:0;font-size:var(--fs-xl)}.reviewtabs{display:flex;gap:6px;overflow-x:auto;margin-bottom:16px;scrollbar-width:none}.reviewtabs::-webkit-scrollbar{display:none}.reviewtabs button{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border-15);border-radius:var(--control-radius);background:transparent;color:var(--ink-2);padding:7px 14px;cursor:pointer;font-size:var(--fs-sm);white-space:nowrap}.reviewtabs button:hover{border-color:var(--tungsten);color:var(--ink)}.reviewtabs button[aria-pressed="true"]{background:var(--tungsten-soft);border-color:var(--tungsten);color:var(--tungsten);font-weight:600}.reviewtabs .n{color:var(--muted);font-size:var(--fs-xs)}.reviewsection{margin-bottom:20px}.reviewsection h3{margin:0 0 9px;font-size:var(--fs-lg)}.reviewlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:14px;align-items:start}
+.review{--review-fieldset-height:440px;padding:0 0 42px}.reviewtabs{display:flex;gap:6px;overflow-x:auto;margin-bottom:16px;scrollbar-width:none}.reviewtabs::-webkit-scrollbar{display:none}.reviewtabs button{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border-15);border-radius:var(--control-radius);background:transparent;color:var(--ink-2);padding:7px 14px;cursor:pointer;font-size:var(--fs-sm);white-space:nowrap}.reviewtabs button:hover{border-color:var(--tungsten);color:var(--ink)}.reviewtabs button[aria-pressed="true"]{background:var(--tungsten-soft);border-color:var(--tungsten);color:var(--tungsten);font-weight:600}.reviewtabs .n{color:var(--muted);font-size:var(--fs-xs)}.reviewsection{margin-bottom:20px}.reviewsection h3{margin:0 0 9px;font-size:var(--fs-lg)}.reviewlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:14px;align-items:start}
/* 判定状态用左侧色条表达:整卡描边在一列里扫过去时反而认不出来 */
.reviewitem{position:relative;display:flex;flex-direction:column;box-sizing:border-box;height:var(--review-fieldset-height);margin:0;padding:0;min-width:0;overflow:hidden;background:var(--surface);border:1px solid var(--line-soft);border-radius:12px}.reviewitem::before{content:'';position:absolute;z-index:3;left:0;top:0;bottom:0;width:3px;background:transparent}.reviewitem[data-decision="approved"]::before{background:var(--keep)}.reviewitem[data-decision="rejected"]::before{background:var(--drop)}.reviewitem[data-decision="skipped"]::before{background:var(--muted)}.reviewitem[data-decision="rejected"],.reviewitem[data-decision="skipped"]{opacity:.6}.reviewitem h4{margin:0 0 6px;font-size:var(--fs-lg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reviewitem p{margin:4px 0;color:var(--muted);font-size:var(--fs-xs);line-height:1.55;overflow-wrap:anywhere}
.reviewitem>.geist-fieldset-content{flex:1;min-height:0;padding:20px}.reviewcontent{height:100%}
@@ -471,21 +471,12 @@ body.entity-open .index{overflow-x:visible}
background:transparent;border-bottom:1px solid transparent}
.entitytagbar+.entitysection .entitycollectionhead{top:calc(var(--topH) + var(--filterH))}
.entitycollectionhead h3{margin:0;flex:0 0 auto}.entitycollectionhead .javlayout{display:inline-flex;gap:2px}
-/* 关注页与实体页共用视频 / 图片圆形切换按钮。 */
-.mediatabs{display:flex;gap:8px;margin:0 0 18px;border-bottom:1px solid var(--line-soft)}
-.mediatabs[hidden]{display:none}
-.mediatabs button{display:flex;align-items:center;gap:7px;border:0;background:transparent;color:var(--muted);
- padding:8px 4px 10px;margin-bottom:-1px;border-bottom:2px solid transparent;cursor:pointer;font-size:var(--fs-sm)}
-/* 图标是 Lucide 的描边路径,`stroke:currentColor;fill:none` 少一样就会被浏览器
- 按默认的 fill:black/stroke:none 画成黑块——深色底上等于看不见。 */
-.mediatabs button svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2}
-.mediatabs button b{font-weight:400;font-size:var(--fs-xs);color:var(--muted)}
-.mediatabs button:hover{color:var(--ink-2)}
-.mediatabs button[aria-pressed="true"]{color:var(--ink);border-bottom-color:var(--tungsten)}
.photohead{display:flex;align-items:center;gap:10px;margin:0 0 12px}
.photohead h3{margin:0}
.photoback{display:flex;align-items:center;gap:4px;height:28px;padding:0 10px 0 6px;border:1px solid var(--line);
border-radius:var(--control-radius);background:transparent;color:var(--ink-2);font-size:var(--fs-xs);cursor:pointer}
+/* 图标是 Lucide 的描边路径,`stroke:currentColor;fill:none` 少一样就会被浏览器
+ 按默认的 fill:black/stroke:none 画成黑块——深色底上等于看不见。 */
.photoback svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2}
.photoback:hover{background:var(--overlay-5);color:var(--ink)}
/* 瀑布流:账本没有图片宽高,等宽多列流式排版正好不需要比例,也不用等图加载完再算位置。 */
@@ -622,7 +613,6 @@ body.photolight-open{overflow:hidden}
/* 窄屏断点写在这一段之后:和上面同优先级,写在前面会被原样盖掉。 */
@media (max-width:640px){
.photowall{column-count:2;column-gap:8px}
- .photosets{grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:12px}
.photozoom input{width:72px}.photozoom b{display:none}
.photolight .photomain .swiper-zoom-container{padding:12px 12px 70px}
.photolight.has-strip .photomain .swiper-zoom-container{padding-bottom:136px}
@@ -803,7 +793,7 @@ main{position:relative;z-index:1;padding:14px 16px 90px}
.count.count-actions-only{position:relative;top:auto;min-height:0;margin:0 0 16px;padding:0;justify-content:flex-end}
.count.count-actions-only:empty{display:none}
.resourcesync{scroll-margin-top:calc(var(--topH) + 18px);display:grid;gap:16px}.resourcesync>h2{margin:0;font-size:var(--fs-xl)}
-.resourcesyncbox,.resourcepanel{overflow:clip;border:1px solid var(--line-soft);border-radius:12px;background:var(--surface)}.resourcesyncbody{padding:20px}.resourcesyncbody p{max-width:760px;margin:0;color:var(--muted);font-size:var(--fs-sm);line-height:1.55}.resourcesyncfooter,.resourceapplyrow{box-sizing:border-box;min-height:var(--fieldset-bar-h);display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:8px 20px;border-top:1px solid var(--line-soft);background:var(--overlay-5)}.resourcesyncfooter p,.resourceapplyrow>p{margin:0;color:var(--muted);font-size:var(--fs-xs);line-height:1.5}.resourceaction{box-sizing:border-box;height:36px;padding:0 12px;border:1px solid var(--border-15);border-radius:var(--control-radius);background:var(--surface);color:var(--ink-2);display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;font:inherit;font-size:var(--fs-sm);font-weight:550;cursor:pointer;transition:background-color .12s,border-color .12s,color .12s}.resourceaction:hover:not(:disabled){background:var(--hover);border-color:color-mix(in srgb,var(--ink) 28%,transparent);color:var(--ink)}.resourceaction:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.resourceaction:disabled{cursor:default;opacity:.68}.resourceaction svg{width:16px;height:16px;stroke:currentColor;fill:none}#resourceSyncResult:empty{display:none}.resourcescanning,.resourceerror{margin:0;padding:14px 16px;border:1px solid var(--line-soft);border-radius:var(--control-radius);color:var(--muted)}.resourceerror{color:var(--drop)}.resourcesources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.resourcesources article{display:grid;gap:4px;min-width:0;padding:16px}.resourcesources article+article{border-left:1px solid var(--line-soft)}.resourcesourcetitle{display:flex;align-items:center;justify-content:space-between;gap:12px}.resourcesourcetitle span{font-size:var(--fs-xs)}.resourcesources .online{color:var(--success)}.resourcesources .offline{color:var(--drop)}.resourcesources strong{margin-top:10px;font-size:var(--fs-2xl);font-variant-numeric:tabular-nums}.resourcesources small,.resourcecache small{color:var(--muted)}/* 这里是一排读数,不是又一个盒子。原先它自带填色和分格线,和下面的操作条同色,
+.resourcesyncbox,.resourcepanel{overflow:clip;border:1px solid var(--line-soft);border-radius:12px;background:var(--surface)}.resourcesyncbody{padding:20px}.resourcesyncbody p{max-width:760px;margin:0;color:var(--muted);font-size:var(--fs-sm);line-height:1.55}.resourcesyncfooter,.resourceapplyrow{box-sizing:border-box;min-height:var(--fieldset-bar-h);display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:8px 20px;border-top:1px solid var(--line-soft);background:var(--overlay-5)}.resourcesyncfooter p,.resourceapplyrow>p{margin:0;color:var(--muted);font-size:var(--fs-xs);line-height:1.5}.resourceaction{box-sizing:border-box;height:36px;padding:0 12px;border:1px solid var(--border-15);border-radius:var(--control-radius);background:var(--surface);color:var(--ink-2);display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;font:inherit;font-size:var(--fs-sm);font-weight:550;cursor:pointer;transition:background-color .12s,border-color .12s,color .12s}.resourceaction:hover:not(:disabled){background:var(--hover);border-color:color-mix(in srgb,var(--ink) 28%,transparent);color:var(--ink)}.resourceaction:focus-visible{outline:2px solid var(--tungsten);outline-offset:2px}.resourceaction:disabled{cursor:default;opacity:.68}.resourceaction svg{width:16px;height:16px;stroke:currentColor;fill:none}#resourceSyncResult:empty{display:none}.resourcescanning{margin:0;padding:14px 16px;border:1px solid var(--line-soft);border-radius:var(--control-radius);color:var(--muted)}.resourcesources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.resourcesources article{display:grid;gap:4px;min-width:0;padding:16px}.resourcesources article+article{border-left:1px solid var(--line-soft)}.resourcesourcetitle{display:flex;align-items:center;justify-content:space-between;gap:12px}.resourcesourcetitle span{font-size:var(--fs-xs)}.resourcesources .online{color:var(--success)}.resourcesources .offline{color:var(--drop)}.resourcesources strong{margin-top:10px;font-size:var(--fs-2xl);font-variant-numeric:tabular-nums}.resourcesources small,.resourcecache small{color:var(--muted)}/* 这里是一排读数,不是又一个盒子。原先它自带填色和分格线,和下面的操作条同色,
两条带子连在一起看不出边界;框里再套框也是多余的一层。 */
.resourcecache{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 32px;border-top:1px solid var(--line-soft);padding:16px 20px}.resourcecache>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:4px 16px}.resourcecache b{font-size:var(--fs-2xl);font-variant-numeric:tabular-nums}.resourcecache span{font-weight:650}.resourcecache small{grid-column:1/-1}.resourceapplyrow .resourcesyncok{color:var(--success)}.resourcedanger{color:var(--drop)}.resourcedanger:hover:not(:disabled){border-color:color-mix(in srgb,var(--drop) 42%,transparent);background:color-mix(in srgb,var(--drop) 8%,transparent);color:var(--drop)}.resourcesyncok{margin:0;color:var(--success)}
.tagbar,.count,.entitytagbar,.entitycollectionhead{transition:background-color .16s ease,border-color .16s ease}
@@ -988,14 +978,6 @@ body[data-density="dense"] .junkcard .junkactions button span{display:none}
.srcbig img,.srcbig svg{width:17px;height:17px;border-radius:4px;object-fit:contain;flex:none}
.srcbig svg{stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.srcbig.metered{color:var(--meter)}.srcbig.free{color:var(--keep)}
-/* 侧栏来源筛选 */
-.edge .srcrow{margin-top:10px;padding-top:10px;border-top:1px solid var(--line-soft);
- display:flex;flex-direction:column;gap:4px;align-items:center}
-.edge .srcrow button{width:52px;height:44px;border-radius:12px;display:flex;flex-direction:column;
- align-items:center;justify-content:center;gap:2px;font-size:var(--fs-xs);color:var(--muted)}
-.edge .srcrow button img,.edge .srcrow button svg{width:17px;height:17px;border-radius:4px;object-fit:contain}
-.edge .srcrow button[aria-pressed="true"]{background:var(--tungsten-soft);color:var(--tungsten)}
-.edge .srcrow button.off{opacity:.34}
.dur{position:absolute;right:6px;bottom:6px;z-index:2;background:color-mix(in srgb,#000 70%,transparent);
color:#F2EADF;padding:2px 6px;border-radius:3px;transition:opacity .15s ease}
@media (hover:hover) and (pointer:fine){
@@ -1021,7 +1003,6 @@ body[data-density="dense"] .junkcard .junkactions button span{display:none}
.mavstack .mav:nth-child(2){z-index:2}
.mavstack .mav:nth-child(3){z-index:1}
.mavstack .mav:hover{z-index:4;box-shadow:0 0 0 2px var(--tungsten)}
-.meta .whosep{color:var(--muted);margin:0 -4px}
.meta .whomore{color:var(--muted)}
.mtext{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.meta .t{font-size:var(--fs-md);line-height:1.35;min-height:2.7em;overflow:hidden;display:-webkit-box;
@@ -1926,7 +1907,6 @@ body.drawer-open .edge{opacity:0;pointer-events:none} /* 展开时窄栏让位
给它们切「封面」没有意义。 */
.javbar{display:flex;align-items:center;gap:8px;padding:0 0 10px;flex-wrap:wrap}
.javbar[hidden]{display:none}
-.javhint{color:var(--muted);font-size:var(--fs-xs);margin-right:4px}
.javbar button{width:34px;height:30px;display:inline-grid;place-items:center;border-radius:var(--control-radius);border:1px solid var(--overlay-10);background:transparent;color:var(--ink-2);cursor:pointer;padding:0}.javbar button svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8}.javbar button:hover{background:var(--hover);color:var(--ink)}.javbar button[aria-pressed="true"]{background:var(--tungsten-soft);color:var(--tungsten);border-color:color-mix(in srgb,var(--tungsten) 45%,transparent)}
.javlayout{min-width:0;margin:0;padding:3px;border:1px solid var(--line-soft);border-radius:8px;background:var(--overlay-5)}.javlayout label{position:relative;display:inline-grid;width:34px;height:28px;place-items:center;border-radius:6px;color:var(--muted);cursor:pointer}.javlayout input{position:absolute;inline-size:1px;block-size:1px;opacity:0}.javlayout label:hover{color:var(--ink)}.javlayout label:has(input:checked){background:var(--surface);color:var(--tungsten);box-shadow:0 1px 2px #0005}.javlayout label:has(input:focus-visible){outline:2px solid var(--tungsten);outline-offset:2px}.javlayout svg{width:17px;height:17px;stroke:currentColor;fill:none;stroke-width:1.8}
/* 取景:正封模式下,整张封套要把镜头推到右半边;本身就是竖版正封的则整张用。
@@ -1978,19 +1958,6 @@ body.drawer-open .edge{opacity:0;pointer-events:none} /* 展开时窄栏让位
.followfilters .pill .n{margin-left:5px;color:inherit}
.followfilters .sourcepill{width:40px;padding:0}
.followfilters .sourcepill .ficon{width:21px;height:21px;margin:0}
-/* 折叠摘要按 Vercel 设置行的 title + description 结构:标题一行、说明弱化一行,
- 尖角指引符与文字之间留出固定间距,不再靠一个空格硬贴。 */
-.fdetails{margin-inline:-16px}
-.fdetails summary,.fdetails p{padding-inline:16px;margin-inline:0}
-.fdetails summary{border-bottom:1px solid var(--border-10);padding-bottom:8px}
-.fdetails summary{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:9px;row-gap:3px;
- justify-content:start;cursor:pointer;list-style:none}
-.fdetails summary::-webkit-details-marker{display:none}
-.fdetails summary::before{content:"›";grid-column:1;grid-row:1;display:block;line-height:1.5;transition:transform .12s}
-.fdetails[open] summary::before{transform:rotate(90deg)}
-.fdetails .fsumhead{grid-column:2;grid-row:1;font-size:var(--fs-sm);font-weight:600;color:var(--ink)}
-.fdetails .fsumdesc{grid-column:2;grid-row:2;font-size:var(--fs-xs);line-height:1.5;color:var(--muted)}
-.fdetails p{margin:6px 0 0}
.ficon{width:14px;height:14px;border-radius:3px;object-fit:contain;
vertical-align:-2px;margin-right:5px}
.fauthorhead .ficon{margin-right:2px}
@@ -2349,8 +2316,6 @@ details.fcred{display:block}
.faliasmanager{margin-left:-13px;margin-right:-13px}
.faliasmanager>summary{padding:2px 13px}
.faliasmanager>.fcollapse{padding:4px 13px 14px}
- .fdetails{margin-inline:-13px}
- .fdetails summary,.fdetails p{padding-inline:13px}
.faddform{grid-template-columns:minmax(0,1fr) auto}
.faddform>.fsearchinput{grid-column:1/-1}
.faddform>.fbtn.primary{width:100%}