Skip to content

Commit 07fb33f

Browse files
LikeLakers2ehuss
authored andcommitted
Hide the sidebar resize handle when scripting isn't available
1 parent cc7f8be commit 07fb33f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

crates/mdbook-html/front-end/css/chrome.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,11 @@ html:not(.sidebar-resizing) .sidebar {
534534
cursor: col-resize;
535535
width: calc(var(--sidebar-resize-indicator-width) - var(--sidebar-resize-indicator-space));
536536
}
537+
538+
html:not(.js) .sidebar-resize-handle {
539+
display: none;
540+
}
541+
537542
/* sidebar-hidden */
538543
#mdbook-sidebar-toggle-anchor:not(:checked) ~ .sidebar {
539544
transform: translateX(calc(0px - var(--sidebar-width) - var(--sidebar-resize-indicator-width)));

0 commit comments

Comments
 (0)