diff options
author | Jinyuan Huang <88757735+BernieHuang2008@users.noreply.github.com> | 2023-09-14 05:49:15 +0000 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2023-09-14 16:26:10 +0200 |
commit | 0984b00b7e1ee9baba6229afe41e9a09a7c0d76c (patch) | |
tree | 3d906449fe247942edf493667b6300e01a2ff735 /searx/static | |
parent | bf7af99ef2ce76a8c12e279698de5253a7700e7f (diff) | |
download | searxng-0984b00b7e1ee9baba6229afe41e9a09a7c0d76c.tar.gz searxng-0984b00b7e1ee9baba6229afe41e9a09a7c0d76c.zip |
[mod] UI smooth scroll added / CSS scroll-behavior
This PR improves the UX by making auto-scroll more smoother. The css is changed
so all the auto-scroll will be smoother but User-scroll will not be influenced.
The scroll-behavior CSS property sets the behavior for a scrolling box when
scrolling is triggered by the navigation or CSSOM scrolling APIs.[1]
[1] https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior
Diffstat (limited to 'searx/static')
-rw-r--r-- | searx/static/themes/simple/src/less/style.less | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/searx/static/themes/simple/src/less/style.less b/searx/static/themes/simple/src/less/style.less index ccfc221a2..9fb70208a 100644 --- a/searx/static/themes/simple/src/less/style.less +++ b/searx/static/themes/simple/src/less/style.less @@ -63,6 +63,8 @@ html { background-color: var(--color-base-background); padding: 0; margin: 0; + + scroll-behavior: smooth; } body, |