We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48a7a87 commit 5d1e15fCopy full SHA for 5d1e15f
1 file changed
app/assets/main.css
@@ -58,6 +58,15 @@ html {
58
-webkit-font-smoothing: antialiased;
59
-moz-osx-font-smoothing: grayscale;
60
text-rendering: optimizeLegibility;
61
+ scroll-behavior: smooth;
62
+ scroll-padding-top: 5rem; /* Offset for fixed header - otherwise anchor headers are cutted */
63
+}
64
+
65
+/* Disable smooth scrolling if user prefers reduced motion */
66
+@media (prefers-reduced-motion: reduce) {
67
+ html {
68
+ scroll-behavior: auto;
69
+ }
70
}
71
72
/*
0 commit comments