GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Make sidebar width more flexible (#218) · yeager/python-docs-theme@b6a1724

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • python_docs_theme/static
    • pydoctheme.css
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎python_docs_theme/static/pydoctheme.css‎

Copy file name to clipboardExpand all lines: python_docs_theme/static/pydoctheme.css
+11-4Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,8 @@ span.pre {
140140
}
141141

142142
div.sphinxsidebar {
143+
display: flex;
144+
width: min(25vw, 350px);
143145
float: none;
144146
position: sticky;
145147
top: 0;
@@ -156,13 +158,17 @@ div.sphinxsidebar h4 {
156158
margin-top: 1.5em;
157159
}
158160

161+
div.bodywrapper {
162+
margin-left: min(25vw, 350px);
163+
}
164+
159165
div.sphinxsidebarwrapper {
160-
width: 217px;
161166
box-sizing: border-box;
162167
height: 100%;
163168
overflow-x: hidden;
164169
overflow-y: auto;
165-
float: left;
170+
float: none;
171+
flex-grow: 1;
166172
}
167173

168174
div.sphinxsidebarwrapper > h3:first-child {
@@ -202,9 +208,10 @@ div.sphinxsidebar input[type='text'] {
202208
font-size: 1.2em;
203209
cursor: pointer;
204210
padding-top: 1px;
205-
float: right;
211+
float: none;
206212
/* after Sphinx 4.x and earlier is dropped, only the below is needed */
207213
width: 12px;
214+
min-width: 12px;
208215
border-radius: 0 5px 5px 0;
209216
border-left: none;
210217
}
@@ -485,7 +492,7 @@ div.genindex-jumpbox a {
485492
margin-inline-end: 0;
486493
}
487494
/* Remove sidebar and top related bar */
488-
div.related, .sphinxsidebar {
495+
div.related, div.sphinxsidebar {
489496
display: none;
490497
}
491498
/* Anchorlinks are not hidden by fixed-positioned navbar when scrolled to */

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.