Bladeren bron

fixed slow scrolling bug with ScrollAnywhere

REJack 5 jaren geleden
bovenliggende
commit
d67c3a0812
6 gewijzigde bestanden met toevoegingen van 5 en 3 verwijderingen
  1. 1 1
      build/scss/_layout.scss
  2. 1 1
      dist/css/adminlte.css
  3. 0 0
      dist/css/adminlte.css.map
  4. 0 0
      dist/css/adminlte.min.css
  5. 0 0
      dist/css/adminlte.min.css.map
  6. 3 1
      docs/layout.md

+ 1 - 1
build/scss/_layout.scss

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

+ 1 - 1
dist/css/adminlte.css

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

File diff suppressed because it is too large
+ 0 - 0
dist/css/adminlte.css.map


File diff suppressed because it is too large
+ 0 - 0
dist/css/adminlte.min.css


File diff suppressed because it is too large
+ 0 - 0
dist/css/adminlte.min.css.map


+ 3 - 1
docs/layout.md

@@ -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}
 
 

Some files were not shown because too many files changed in this diff