fix(web): 搜索框聚焦双框与滚动条

- 组件库 Input:聚焦只用边框变主色,不再叠加 outline(文本框点击也会命中 :focus-visible)
- 页面全局 :focus-visible 收窄到非表单控件,避免覆盖输入框自身的 outline 处理
- 搜索框恢复旧版浅边框 + 卡片阴影,聚焦不追加边框/焦点环
- Layout 新增 hideScrollbar,内容区滚动条隐藏(旧版行为)
This commit is contained in:
stash
2026-10-28 20:29:36 +08:00
parent 1942e201e9
commit 95b6cedb06
3 changed files with 17 additions and 5 deletions
+4 -3
View File
@@ -90,9 +90,10 @@
transform: translateX(-50%);
}
/* 旧版搜索是「无边框 + 卡片阴影」 */
.search-row > *:first-child {
border-color: transparent;
/* 旧版搜索是「浅边框 + 卡片阴影」,聚焦时不额外加边框/焦点环 */
.search-row > *:first-child,
.search-row > *:first-child:focus-within {
border-color: var(--su-border);
box-shadow: var(--su-shadow-card);
}