Skip to content

Commit

Permalink
Bump sidebar width to 260px
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasr8 committed Feb 2, 2025
1 parent 01d5bcf commit 0a13c64
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions python_docs_theme/static/pydoctheme.css
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ span.pre {
}

div.sphinxsidebar {
display: flex;
width: 260px;
float: none;
position: sticky;
top: 0;
Expand All @@ -156,13 +158,17 @@ div.sphinxsidebar h4 {
margin-top: 1.5em;
}

div.documentwrapper > div.bodywrapper {
margin-left: 260px;
}

div.sphinxsidebarwrapper {
width: 217px;
box-sizing: border-box;
height: 100%;
overflow-x: hidden;
overflow-y: auto;
float: left;
float: none;
flex-grow: 1;
}

div.sphinxsidebarwrapper > h3:first-child {
Expand Down Expand Up @@ -199,10 +205,11 @@ div.sphinxsidebar input[type='text'] {
font-size: 1.2em;
cursor: pointer;
padding-top: 1px;
float: right;
float: none;
display: table;
/* after Sphinx 4.x and earlier is dropped, only the below is needed */
width: 12px;
min-width: 12px;
border-radius: 0 5px 5px 0;
border-left: none;
}
Expand Down

0 comments on commit 0a13c64

Please sign in to comment.