Skip to content

Make the Tengwar gap rule actually apply#538

Merged
dcellison merged 1 commit into
mainfrom
site/tengwar_gap_specificity
Jul 23, 2026
Merged

Make the Tengwar gap rule actually apply#538
dcellison merged 1 commit into
mainfrom
site/tengwar_gap_specificity

Conversation

@dcellison

Copy link
Copy Markdown
Owner

Root cause of the unmoving gap, with apology owed: the three spacing PRs (#534, #535, #537) were visual no-ops. The margin lived on a single-class selector, .entry-teng, and the explorer's generic .entry-body p rule outweighs it, so the paragraph kept its stock .25rem margin the whole time and every merged nudge was silently discarded. The gap the maintainer has been looking at never changed once.

This PR makes the rule real and lands the end state the instruction sequence pointed at:

  • The selector becomes .entry-body p.entry-teng, which outweighs the generic paragraph rule.
  • The SVG becomes display: block inside its line, removing the line-box leading that was adding its own slice to the gap.
  • The margin is set to -0.85rem against the head's fixed 1rem bottom padding.

Measured in headless Chrome against the built stylesheet with the real kaeli entry markup: the gap between the IPA line's bottom and the rendering's top goes from 32.6px to 3.1px at the site's root font size, a hairline. The bottom margin (0.8rem before the description) also takes effect now for the same reason.

The single tunable remains the -0.85rem top margin. The measurement harness was a throwaway probe page in the session scratchpad; no server was started and nothing was added to the repository beyond this stylesheet change.

@dcellison
dcellison merged commit b989af0 into main Jul 23, 2026
1 check passed
@dcellison
dcellison deleted the site/tengwar_gap_specificity branch July 23, 2026 11:46
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