fixed slow scrolling bug with ScrollAnywhere

This commit is contained in:
REJack 2020-04-01 17:41:46 +02:00
parent 282ff7f6ce
commit d67c3a0812
6 changed files with 8 additions and 6 deletions

View file

@ -2,7 +2,7 @@
// Core: Layout
//
html {
html.scroll-smooth {
scroll-behavior: smooth;
}

View file

@ -10096,7 +10096,7 @@ a.text-dark:hover, a.text-dark:focus {
}
}
html {
html.scroll-smooth {
scroll-behavior: smooth;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -41,7 +41,9 @@ You can also use the following classes for responsive changes with placing
- use the class `.layout-*-footer-not-fixed` to get a not fixed footer.
> ##### Tip!
> If you want to use anchors with a fixed navbar, you need to add `.anchor` to you hidden anchor, e.g. `<a id="testAnchor" class="anchor"></a>`.
> If you want to use anchors with a fixed navbar, you need to add `.anchor` to you hidden anchor, e.g. `<a id="testAnchor" class="anchor"></a>`.
>
> To get a smooth scrolling to the anchor you need to add `.scroll-smooth` to your HTML tag like this `<html class="scroll-smooth">` otherwise it jumps directly to your anchor, `.scroll-smooth` can cause issues with a Chrome extension called ScrollAnywhere.
{: .quote-info}