chore: stop justifying the home and internships prose - #199
Merged
Conversation
.text-justify was a Bootstrap 4 class the site carried forward after Bootstrap 5 dropped it. Every one of its seven uses sat inside a col-md-6, which is the worst place for justified text: the column is about 540px at desktop and 355px between the md and lg breakpoints, so each line has few enough words that the leftover space lands in a handful of gaps rather than spreading out. Nothing set hyphens: auto to take the edge off. At narrow widths the intro read with word spaces roughly three times their natural size. It was inconsistent on top of that. Two pages of ten were justified; the FAQ, principles, contribute, get-started and vscode pages under the same navbar were always ragged-right, and now the whole site is. One of the seven did nothing at all -- the funding line fits on a single line at desktop width, and justification never applies to a paragraph's last one. Co-Authored-By: Claude Opus 5 (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.
.text-justifyis a Bootstrap 4 class the site carried forward after Bootstrap 5 dropped it. This removes the rule and its seven uses, leavingglobal.cssat 156 lines.Why
Every use sat inside a
col-md-6, which is the worst place for justified text. The column is about 540px at desktop and 355px between the md and lg breakpoints, so each line holds few enough words that the leftover space lands in a handful of gaps instead of spreading out — and nothing sethyphens: autoto take the edge off. At narrow widths the intro rendered with word spaces roughly three times their natural size ("Flix is a principled effect-oriented" across one line), and the internships page did the same.It was also inconsistent: two pages of ten were justified. The FAQ, principles, contribute, get-started and vscode pages under the same navbar have always been ragged-right. Now the whole site is.
One of the seven did nothing at all — the funding line ("Flix is generously funded by a range of instruments from:") fits on a single line at desktop width, and justification never applies to a paragraph's last line.
What changed
index.astro— the class removed from six paragraphs: the lead, Why Effects?, Why Flix?, "Moreover, Flix builds on…", "Actively Developed and Maintained", and the funding lineinternships.astro— removed from the column<div>, which had been justifying all six paragraphs at onceglobal.css— rule and comment deletedastro checkand the build are clean, with notext-justifyleft in source or output. Reviewed in the browser at desktop and narrow widths before committing.🤖 Generated with Claude Code