Skip to content

Fix drop-cap styling: only first letter (C/B/T/O) is large - #14

Merged
tig merged 1 commit into
mainfrom
cursor/cbto-drop-cap-fix-d35e
Aug 23, 2026
Merged

Fix drop-cap styling: only first letter (C/B/T/O) is large#14
tig merged 1 commit into
mainfrom
cursor/cbto-drop-cap-fix-d35e

Conversation

@tig

@tig tig commented Aug 23, 2026

Copy link
Copy Markdown
Member

The rank cards and joy rows were styling the entire lens name at 2rem for the C lens. On mobile this rendered as a giant "C" followed by what looked like small-caps "USTOMER".

Changes

  • Add dropCapName() helper in js/cbto.js that wraps the first letter of each lens name in <span class="cbto-letter">
  • Apply this to both rank cards (.cbto-card-name) and joy rows (.cbto-joy-name-main)
  • Style .cbto-letter at 2rem in CSS, applying to all four lenses (C, B, T, O) equally
  • Remove the C-lens-specific rules that made the entire name 2rem
  • PIEP synonyms (" / Product", etc.) remain at their normal muted styling

Result

  • Customer renders as Customer (large C, normal "ustomer")
  • Business renders as Business (large B, normal "usiness")
  • Technology renders as Technology (large T, normal "echnology")
  • Organization renders as Organization (large O, normal "rganization")

All visible copy remains sentence case. No text-transform or small-caps. The check script passes.

Open in Web Open in Cursor 

- Add dropCapName() helper to wrap first letter in span.cbto-letter
- Apply 2rem font-size only to .cbto-letter, not the entire name
- Remove C-lens-specific 2rem rules for .cbto-card-name and .cbto-joy-name-main
- All four lenses now have consistent drop-cap styling
- PIEP synonyms remain at normal size (muted styling)

Co-authored-by: Tig <tig@users.noreply.github.com>
@tig
tig marked this pull request as ready for review August 23, 2026 02:53
@tig
tig merged commit 5a2ccf2 into main Aug 23, 2026
2 checks 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.

2 participants