Repository navigation
Conversation
|
In the call, was mentioned that left-justified footer is easier to read. |
| grid-template-columns: | ||
| [screen-start] calc(max(2rem, 50% - 720px) + 1.25rem) | ||
| [screen-inset-start page-start page-inset-start body-outset-start body-start body-inset-start middle-start gutter-left-start gutter-left-end gutter-right-start] | ||
| 1fr | ||
| [gutter-right-end middle-end body-inset-end body-end body-outset-end] | ||
| 20.5rem | ||
| [page-inset-end page-end screen-inset-end] max(2rem, 50% - 720px) | ||
| [screen-end]; |
There was a problem hiding this comment.
Is it possible to reformat like this, or does the auto-formatter complain?
| grid-template-columns: | |
| [screen-start] calc(max(2rem, 50% - 720px) + 1.25rem) | |
| [screen-inset-start page-start page-inset-start body-outset-start body-start body-inset-start middle-start gutter-left-start gutter-left-end gutter-right-start] | |
| 1fr | |
| [gutter-right-end middle-end body-inset-end body-end body-outset-end] | |
| 20.5rem | |
| [page-inset-end page-end screen-inset-end] max(2rem, 50% - 720px) | |
| [screen-end]; | |
| grid-template-columns: | |
| [screen-start] | |
| calc(max(2rem, 50% - 720px) + 1.25rem) | |
| [screen-inset-start page-start page-inset-start body-outset-start body-start body-inset-start middle-start gutter-left-start gutter-left-end gutter-right-start] | |
| 1fr | |
| [gutter-right-end middle-end body-inset-end body-end body-outset-end] | |
| 20.5rem | |
| [page-inset-end page-end screen-inset-end] | |
| max(2rem, 50% - 720px) | |
| [screen-end]; |
| */ | ||
| @media (min-width: 1024px) { | ||
| grid-template-columns: | ||
| [screen-start] calc(max(2rem, 50% - 720px) + 1.25rem) |
There was a problem hiding this comment.
TODO: code formatting to make this section more readable, plus some more comments (e.g, "matching the alignment of items in the topbar" etc)
@lundybernard Here's what it looks like with left-aligned footer text items:
To my eye, both the community description and the list of links look off-center. The list of links looks off because the longest element (which is the only one actually centered) is in the middle of the link list, so the (short) last element stands out as uncentered w/r/t the icons below it. For the description, it ends up offcenter because of extra whitespace on the right edge due to word wrapping (moreso or less so depending on where the line wraps). For the description we could do My personal take is:
WDYT? |
|
I spent some time playing around with variants. The easiest solution that I prefer is to left-align everything: A slightly fancier solution leaves the icons centered: I had @3M1LY-lb dig up a few references that validate my gut feeling. "WCAG forbids only full justification, and WebAIM, BDA, NHS, Material, Fluent, USWDS, and NN/g all say to left-align multi-line text and lists." I can post a report if anyone is interested. British Dyslexia Association style guide: "Left align text, without justification. This makes it easier to find the start and finish of each line." |



closes #13, closes #16
width-before-after.mp4
assisted by Claude Opus 5.5