Skip to content

Consider removing top margin from basic typography blocks. #100

@joemcgill

Description

@joemcgill

While working on the hmn.md redesign, I'm finding the need to remove top margins from paragraphs within builder blocks. A strategy I've found helpful in order to address these types of issues is to adopt single-direction margin declarations. The idea is best explained in this CSS Wizardry article, but here are a few benefits (excerpted from the article).

  • Easier to define vertical rhythm in one fell swoop.
  • More confidence in (re)moving components if you know their margins all push in the same direction.
  • Components and elements don’t have to necessarily live in a certain order if their margins aren’t dependent on adjoining sides.
  • Not being concerned with collapsing margins means one less thing to worry about.

@sambulance, @mattheu – what would you think about adopting this for our base typography styles?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions