We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b862f11 commit 69c885cCopy full SHA for 69c885c
python_docs_theme/layout.html
@@ -37,6 +37,7 @@
37
38
{% block extrahead %}
39
<link rel="shortcut icon" type="image/png" href="{{ pathto('_static/' + theme_root_icon, 1) }}" />
40
+ <meta name="viewport" content="width=device-width,initial-scale=0.8">
41
{% if builder != "htmlhelp" %}
42
{% if not embedded %}<script type="text/javascript" src="{{ pathto('_static/copybutton.js', 1) }}"></script>{% endif %}
43
{% endif %}
python_docs_theme/static/sidebar.js
@@ -160,7 +160,9 @@ $(function() {
160
161
add_sidebar_button();
162
var sidebarbutton = $('#sidebarbutton');
163
- set_position_from_cookie();
+ if (jwindow.width > 768) {
164
+ set_position_from_cookie();
165
+ }
166
167
168
/* intelligent scrolling */
0 commit comments