Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revisit vertical cadence #34

Open
MinchinWeb opened this issue Mar 31, 2024 · 0 comments
Open

Revisit vertical cadence #34

MinchinWeb opened this issue Mar 31, 2024 · 0 comments

Comments

@MinchinWeb
Copy link
Owner

MinchinWeb commented Mar 31, 2024

Consider indenting paragraphs, over having a vertical spacer between them (as is now down). The CSS would be something like:

p {
  margin-bottom:  0;
  max-width: 65ch;
}
p + p,
ol + p,
ul + p {
  text-indent: 2em;
}

p + p is used to apply this only to paragraphs that follow another paragraph, so not the first paragraph after a heading.


Could also consider setting a hard maximum width for lines; between 45 and 75 is generally recommended; I think I'm currently ~55 characters per line. CSS like:

p {
  max-width: 65ch;
}

Revisit line spacing. Balance it so it "breathes" but also stays connected. Have it as a whole number of pixels.

With that in hand, revisit padding and line height of other elements, such as headings but also panels, headers (nav bar), and horizontal rules, to make sure the combined space of those element is a multiple of the (effective) line height. The idea is to establish a baseline height that gets repeated down and down the page.

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

No branches or pull requests

1 participant