-
Notifications
You must be signed in to change notification settings - Fork 280
Expand file tree
/
Copy pathsidebar_toggle.css
More file actions
52 lines (42 loc) · 1.03 KB
/
sidebar_toggle.css
File metadata and controls
52 lines (42 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/* Toggle button */
#bn-sidebar-toggle {
position: fixed;
top: 12px;
left: 12px;
z-index: 10000;
width: 36px;
height: 36px;
display: inline-flex;
align-items: center;
justify-content: center;
border: 1px solid rgba(0, 0, 0, 0.25);
border-radius: 6px;
background: #ffffff;
color: #111111;
font-size: 18px;
line-height: 1;
cursor: pointer;
/* Avoid stealing too much attention */
opacity: 0.85;
}
#bn-sidebar-toggle:hover {
opacity: 1.0;
}
/* When sidebar is collapsed, reclaim space */
html.bn-sidebar-collapsed .wy-nav-side {
width: 0 !important;
min-width: 0 !important;
overflow: hidden !important;
}
html.bn-sidebar-collapsed .wy-side-scroll {
width: 0 !important;
overflow: hidden !important;
}
/* RTD uses margin-left to make room for the sidebar */
html.bn-sidebar-collapsed .wy-nav-content-wrap {
margin-left: 0 !important;
}
/* Optional: ensure content doesn't look overly narrow after reclaiming space */
html.bn-sidebar-collapsed .wy-nav-content {
max-width: 2000px !important;
}