Skip to content

Commit 978ff2b

Browse files
committed
remove smooth scroll
1 parent 131c81c commit 978ff2b

File tree

3 files changed

+1
-21
lines changed

3 files changed

+1
-21
lines changed

python_docs_theme/layout.html

-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ <h3>{{ _('Navigation') }}</h3>
7777
<script type="text/javascript" src="{{ pathto('_static/copybutton.js', 1) }}"></script>
7878
<script type="text/javascript" src="{{ pathto('_static/menu.js', 1) }}"></script>
7979
<script type="text/javascript" src="{{ pathto('_static/search-focus.js', 1) }}"></script>
80-
<script type="text/javascript" src="{{ pathto('_static/smooth.js', 1) }}"></script>
8180
<script type="text/javascript" src="{{ pathto('_static/themetoggle.js', 1) }}"></script>
8281
{%- endif -%}
8382
{%- endif -%}

python_docs_theme/static/pydoctheme.css

+1-5
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ div.versionremoved .versionmodified {
777777
}
778778
}
779779

780-
@media (prefers-reduced-motion) {
780+
@media (prefers-reduced-motion: reduce) {
781781
div.document {
782782
animation: none;
783783
transition: none;
@@ -786,8 +786,4 @@ div.versionremoved .versionmodified {
786786
#sidebarbutton {
787787
transition: none;
788788
}
789-
790-
html {
791-
scroll-behavior: auto;
792-
}
793789
}

python_docs_theme/static/smooth.js

-15
This file was deleted.

0 commit comments

Comments
 (0)