Category grid#149
Draft
andy5995 wants to merge 2 commits into
Draft
Conversation
Pairs with ivan-hc/AM:tools/am2pla-site change that switches _categories_buttons() from emitting a wrapping line of bold-italic markdown links to a <div class="cat-grid"> of <a class="cat-pill"> elements (with the AppImages link carrying a "cat-pill--all" modifier). Layout uses grid-template-columns: repeat(auto-fit, minmax(8.5em, 1fr)) so the grid reflows to 2-3 columns on mobile and 5-6 on desktop without media-query gymnastics. .cat-pill--all (AppImages only) is bold with an accent background so it stands out as the meta-category. Light- and dark-theme overrides live inside the existing prefers-color-scheme media blocks, mirroring how table/body colors are already split. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Pairs with ivan-hc/AM:tools/am2pla-site change that wraps the existing <div class="cat-grid"> in <div class="cat-menu"> with a hidden checkbox + <label class="cat-menu-button">☰ Categories</label> toggle. Layout: button is display:none on desktop (≤600px is the breakpoint). On narrow viewports the button becomes the only visible control; .cat-grid collapses to display:none and re-appears as display:grid when the checkbox is :checked, via the adjacent-sibling combinator. No JavaScript needed. Theme colors mirror the existing .cat-pill rules; button uses the same neutral background as a normal pill. Co-Authored-By: Claude Opus 4.7 (1M context) <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.
For ivan-hc/AM#2384