Skip to content

CSS: restore specificity, modernise styles - #58

Merged
piotrl merged 2 commits into
masterfrom
claude/css-modernise-dd9a66
Nov 3, 2026
Merged

piotrl merged 2 commits into
masterfrom
claude/css-modernise-dd9a66

Conversation

@piotrl

@piotrl piotrl commented Nov 3, 2026

Copy link
Copy Markdown
Owner

Two commits:

  1. fix(css): replace @scope with native nesting so inner rules keep .gh-profile-card x specificity (host rules like .content a no longer win).
  2. refactor(css): float → grid/flex, :not() instead of override rules, working .repo-name ellipsis, --ghc-* custom properties with fallbacks, max-width: 100%.

Visual result at 280px unchanged (before/after screenshots compared; ~9px diff at 8% fuzz). npm run build:check passes.

🤖 Generated with Claude Code

piotrl and others added 2 commits November 3, 2026 22:23
@scope adds no specificity, so rules like `a` (0,0,1) lost to host-page
selectors such as `.content a`. Nesting under `.gh-profile-card` yields
`.gh-profile-card a` (0,1,1) as the old Sass output did, and drops the
Baseline-newly-available @scope requirement.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- float layout -> grid on .profile (avatar spans rows), flex on .followMe; no clear hacks
- override rules -> :not() (li separators, repo borders)
- .repo-name: real ellipsis (block + overflow hidden + nowrap)
- repeated colors -> --ghc-* custom properties with fallbacks for host theming
- width: 280px + max-width: 100%

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@piotrl
piotrl force-pushed the claude/css-modernise-dd9a66 branch from 7705a6f to fc40f95 Compare November 3, 2026 21:23
@piotrl
piotrl merged commit 5eef038 into master Nov 3, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant