mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-25 19:23:55 +00:00
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:
parent
93ebc3b389
commit
216e481ed5
1 changed files with 5 additions and 16 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue