Skip to content

Text selection impossible on top of titles #191

@cyrilf

Description

@cyrilf

All the h1, h2 and h3 have a positive padding-top and a negative margin-top like:

h1, h2, h3 {
padding-top: 6rem;
margin-top: -5rem;

Because of this negative margin-top the text above any title can't be selected (in the green area):

Screenshot from 2019-06-02 20-38-44


Solution

Can't we just do something like:

h1, h2, h3 {
  margin-top: 6rem;
}

If yes, I'm happy to open a PR.
Otherwise I'm curious about the usage of a negative margin/positive padding in this case?

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions