gridsome / gridsome/gridsome.org

Text selection impossible on top of titles

Open
#191 1 comment 0 reactions 1 assignee Claimed by @tomtev View on GitHub
bug
Dominant language
Vue
Stars
292
Forks
301
PR merge metrics
No merged PRs in 30d

Description

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](https://user-images.githubusercontent.com/1302282/58760114-ecfab800-8576-11e9-9803-4b2660d86bc0.png)

----

## Solution

Can't we just do something like:

```css
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?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.