Repository navigation
feat(tools): polish tool cards, sliders, and color inputs - #46
Merged
Merged
Conversation
✅ PR Checks passedTypecheck ( |
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.
Tool cards react again, sliders got fill trails, and the Icon Maker color picker is now the shared one.
What changed
@media (hover: hover)gate added in fix(tools): smooth mobile scrolling and stop sticky card hover #45 left the cards inert on browsers that misreport hover support. Back to a plain.tool-item:hover.src/scripts/range-fill.tspaints the filled trail up to the thumb (WebKit via a CSS variable, Firefox via::-moz-range-progress); thumbs are white with a soft glow. Icon Maker's hue slider keeps its rainbow track.src/scripts/tools/color-picker.ts+src/components/ColorField.astro. QR Generator's foreground/background use it instead of the native OS color box, and Icon Maker's own fields use the same component. Also fixed the picker's HSV→RGB conversion, which returned the wrong channel for the 120°–180° sector.:focus-visiblering (tool cards and footer links are anchors and had none), andprefers-reduced-motion: reducenow disables transitions and animations while keeping the busy spinner.transition: all, hex colors normalized to lowercase everywhere,.color-field.cp-disabledpromoted to the shared stylesheet,docs/README.mdarchitecture map refreshed.Touched areas
src/styles/tool.css,src/styles/global.css,src/styles/tools/icon-maker.csssrc/components/ColorField.astro,src/scripts/tools/color-picker.ts,src/scripts/range-fill.tssrc/scripts/tools/icon-maker.ts,src/scripts/tools/qr-generator.ts,src/scripts/tools/lib.tssrc/pages/tools/icon-maker.astro,src/pages/tools/qr-generator.astro,src/pages/design.astroAGENTS.md,docs/README.mdTesting
npm run build— 12 pages builtnpx astro check— 0 errorsBuilt with minimax-m3.1-flash-free in the OpenCode harness, running in T3 Code.