Fix ancor scroll overflow

Mentioned here https://github.com/transloadit/uppy/pull/2128#issue-387905559

https://mobile.twitter.com/hakimel/status/1257252729128435712 thanks @nqst ;)
This commit is contained in:
Artur Paikin 2020-05-04 16:34:28 +02:00
parent 93ebc3b389
commit 216e481ed5

View file

@ -207,9 +207,11 @@
margin-left: 20px;
}
// h2, h3 {
// padding-top: 80px;
// }
// Fix ancor scroll overflow (i.e. /docs/uppy#upload) for headings
[id] {
scroll-margin-top: 6em;
}
// for ancor links to work with fixed header
h2:before, h3:before {
@ -235,19 +237,6 @@
> h2 {
font-size: 1.3em;
margin: 0.5em 0 .4em 0;
// padding-bottom: .2em;
// position: relative;
// border-bottom: 1px solid $color-border;
// &:before {
// content: "#";
// color: $color-primary;
// position: absolute;
// left: -0.7em;
// top: -4px;
// font-size: 1.2em;
// font-weight: bold;
// }
}
.post h3,