feat(ui): micro-interactions — press feedback, stat lift, number bump, reduced-motion (v1.18 E) - #52
Merged
Merged
Conversation
…, reduced-motion (v1.18 E)
11 of 12 tasks
argszero
added a commit
that referenced
this pull request
Sep 27, 2026
…#316) `ui/README.md` said the stat-card hover lift lives on `.stat:hover`, and the comment above `.stat-card` in `ui/css/style.css` said that class is "provided as an alias of `.stat`". Neither is true: the stylesheet has zero `.stat` rules, `class="stat"` appears nowhere in `ui/`, and the only `.stat` text left in the sheet sits inside that comment. `75dcb2c` (#154) deleted the `.stat` family and moved to the prototype name `.stat-card`; it updated neither the README line (`bbde077` / #52 wrote it when the name was still `.stat`) nor the comment it wrote in the same commit. The hover lift has been on `.stat-card:hover` (ui/css/style.css:1110) ever since. Name the selector that has a rule, and say where the old name went. The stylesheet token is bumped because this touches ui/css/style.css.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements item E (动效与系统偏好 / Micro-interactions & system preference) of the UI/UE round-3 wave (rant
2026-08-17T18:06:09, branchfeat/ui-ue-round3, version v1.18).Three acceptance points:
.btn:active:not(:disabled) { transform: scale(0.98) }, smooth via the existingtransition: all .15son.btn; disabled buttons excluded (pointer-events: nonealready blocks them)..stat:hoverliftstranslateY(-2px)with border/shadow elevation, matching the existing.card:hoverlanguage (0.15–0.18s transitions).bump(el)helper (remove.bump→ reflow → re-add, replaying@keyframes numJump:translateY(-3px) scale(1.02), 0.35s). Wired into all 4 balance-mutation points:#side-balance+#wallet-balance#side-balance#side-balanceisMeso bumping another user doesn't animate an unchanged balance)Plus
prefers-reduced-motion: reduce— a global media block clampsanimation-duration/transition-durationto 0.01ms,animation-iteration-countto 1, andscroll-behaviorto auto: animations/transitions disabled, all functionality preserved.Design notes
#side-balanceis an inline<b>— needsdisplay:inline-blockfortransformto animate.*, *::before, *::after), so it covers the existing view/tbody fade-ins too.Verification
node --check✓ ·cargo test✓ ·cargo fmt --check✓Rant (verbatim)
Docs
docs/user-stories.mdv1.18 entry extended with item E (remaining F–G noted)ui/README.md: new "动效与系统偏好约定" section