8000 Set cursor via JS · python/python-docs-theme@b97d986 · GitHub
[go: up one dir, main page]

Skip to content

Commit b97d986

Browse files
committed
Set cursor via JS
1 parent 98e5624 commit b97d986

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

python_docs_theme/static/pydoctheme.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ div.sphinxsidebar input[type='text'] {
203203
margin-left: 0;
204204
color: #444444;
205205
font-size: 1.2em;
206-
cursor: col-resize;
206+
cursor: default; /* cursor is set to 'col-resize' using JS */
207207
padding-top: 1px;
208208
float: none;
209209
display: table;

python_docs_theme/static/sidebar.js_t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ const initialiseSidebar = () => {
5757
sidebarbutton.tabindex = "0" // make it focusable
5858
sidebarbutton.role = "slider"
5959
sidebarbutton.title = _("Resize sidebar")
60+
sidebarbutton.style.cursor = "col-resize" // Set the cursor only if JS is enabled
6061
sidebarbutton.setAttribute("aria-label", _("Resize sidebar by dragging"))
6162
sidebarbutton.setAttribute(
6263
"aria-valuetext",

0 commit comments

Comments
 (0)
0