Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5635060

Browse files
committed
css
1 parent42c59d5 commit5635060

File tree

3 files changed

+3
-30
lines changed

3 files changed

+3
-30
lines changed

‎python_docs_theme/layout.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,3 @@ <h3>{{ _('Navigation') }}</h3>
170170
{% trans sphinx_version=sphinx_version|e %}Created using<ahref="https://www.sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %}
171171
</div>
172172
{% endblock %}
173-
174-
{% block content %}
175-
<divclass="content-wrapper">
176-
{{ super() }}
177-
</div>
178-
{% endblock %}

‎python_docs_theme/static/pydoctheme.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,8 @@ div.sphinxsidebar {
150150
line-height:130%;
151151
font-size: smaller;
152152
resize: horizontal;
153+
min-width:200px;
154+
max-width:400px;
153155
}
154156

155157
div.sphinxsidebarh3,
@@ -158,7 +160,7 @@ div.sphinxsidebar h4 {
158160
}
159161

160162
div.sphinxsidebarwrapper {
161-
width:100%;
163+
width:217px;
162164
box-sizing: border-box;
163165
height:100%;
164166
overflow-x: hidden;

‎python_docs_theme/static/sidebar.js_t

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -85,29 +85,6 @@ const initialiseSidebar = () => {
8585
else if (sidebar_state === "expanded") {
8686
expand_sidebar()
8787
}
88-
89-
// Add event listeners to make the sidebar resizable by dragging the edge
90-
let isResizing = false;
91-
let lastDownX = 0;
92-
93-
sidebar.addEventListener('mousedown', (e) => {
94-
isResizing = true;
95-
lastDownX = e.clientX;
96-
});
97-
98-
document.addEventListener('mousemove', (e) => {
99-
if (!isResizing) return;
100-
101-
const offsetRight = document.body.offsetWidth - (e.clientX - document.body.offsetLeft);
102-
const newWidth = Math.min(Math.max(200, offsetRight), 400);
103-
104-
sidebar.style.width = `${newWidth}px`;
105-
bodyWrapper.style.marginLeft = `${newWidth + 10}px`;
106-
});
107-
108-
document.addEventListener('mouseup', () => {
109-
isResizing = false;
110-
});
11188
}
11289

11390
if (document.readyState !== "loading") {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp