gridsome.org icon indicating copy to clipboard operation
gridsome.org copied to clipboard

Text selection impossible on top of titles

Open cyrilf opened this issue 5 years ago • 1 comments

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

https://github.com/gridsome/gridsome.org/blob/f563027d4a8bc07c96ae023ba62a933c687d60b7/src/assets/style/docs.scss#L21-L23

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?

cyrilf avatar Jun 02 '19 10:06 cyrilf

I solved this problem, but ... can you add my pool request and then I will create a new one?

dmtrshat avatar Jul 29 '19 04:07 dmtrshat