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 — Horizontally centre the sidebar collapse button (#219) · yeager/python-docs-theme@2f15ba6

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
+3-7Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,9 @@ div.sphinxsidebar input[type='text'] {
191191
}
192192

193193
#sidebarbutton {
194+
display: flex;
195+
justify-content: center;
196+
align-items: center;
194197
/* Sphinx 4.x and earlier compat */
195198
height: 100%;
196199
background-color: #CCCCCC;
@@ -200,19 +203,12 @@ div.sphinxsidebar input[type='text'] {
200203
cursor: pointer;
201204
padding-top: 1px;
202205
float: right;
203-
display: table;
204206
/* after Sphinx 4.x and earlier is dropped, only the below is needed */
205207
width: 12px;
206208
border-radius: 0 5px 5px 0;
207209
border-left: none;
208210
}
209211

210-
#sidebarbutton span {
211-
/* Sphinx 4.x and earlier compat */
212-
display: table-cell;
213-
vertical-align: middle;
214-
}
215-
216212
#sidebarbutton:hover {
217213
background-color: #AAAAAA;
218214
}

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.