iter(g255): 减少动效下归零全站悬停位移

This commit is contained in:
HIsheR
2026-10-26 22:17:19 +08:00
parent 6437132ba3
commit 48efb44a26
8 changed files with 50 additions and 18 deletions
+14
View File
@@ -5295,3 +5295,17 @@ h5.ua-type-title { font-size: var(--ua-font-size-md); }
width: 100%; /* 不确定态降级为满宽淡条:不再左右扫,语义仍是「进行中」 */
}
}
/* ---- 减少动效:悬停上浮 / 按压回缩一律归零 ----
位移是最容易诱发前庭不适的一类动效,且它只提供「手感」、不表达状态;
颜色 / 描边 / 阴影过渡保留,用户要减的是「动」,不是反馈。
用 ua- 类通配写一条全局规则,新增组件不再需要各自补降级(audit:motion 认这条作全量兜底)。 */
@media (prefers-reduced-motion: reduce) {
[class^='ua-']:hover,
[class*=' ua-']:hover,
[class^='ua-']:active,
[class*=' ua-']:active {
transform: none !important; /* 上浮 / 缩放 / 回缩全部归零 */
translate: none !important; /* 少数组件用独立 translate 属性做位移,一并归零 */
}
}