Repository navigation
Drag the logo to see each element's classes - #92
Merged
Merged
Conversation
Press the header or footer logo and drag it: the mark lifts off and outlines the element under the pointer in the colours of `fxcss pick`, with its classes labelled underneath. Classes from the site's own stylesheet are preferred over Tailwind's layered utilities, and long utility lists are shortened. Releasing or pressing Escape flies the logo home. The click that ends a drag is swallowed, so neither the logo nor whatever it was dropped on activates, while plain clicks, modified clicks and touch input behave as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Drag the fxcss logo in the header or footer and it becomes
fxcss pickfor the website: the element under it gets the picker's pink outline, with its classes labelled underneath (above it when the element reaches the bottom of the window). It labels the nearest element that has a class. When some of those classes come from the site's own stylesheet rather than Tailwind's utility layer, only they are shown, so the 41-class "Zoom into the tab" button reads.detail-toggle; utility-only lists are shortened.Releasing or pressing Escape returns the logo, instantly with reduced motion, and Escape no longer reaches the time machine or search while the logo is held. The click that ends a drag is swallowed, so dropping the logo on a link activates nothing, while plain clicks still go home and modified clicks still open new tabs. Touch input is unchanged. The logo link can no longer be dragged natively, for example to the bookmarks bar.
Validation:
Expected CI failure:
npm run check:auditreports GHSA-g3hv-75wg-m249 (moderate;minimatchbefore 11.0.1, reached only through theshadcnCLI dev dependency). This branch leaves the lockfile unchanged fromwebsite, so the audit step should fail there too, and CI will skip the build and browser steps that follow it. Those pass locally.🤖 Generated with Claude Code