Skip to content

Commit 7ac1bc2

Browse files
committed
Fix sidebarbutton CSS styling
1 parent a89775c commit 7ac1bc2

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

‎python_docs_theme/static/pydoctheme.css‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,16 @@ div.sphinxsidebar input[type='text'] {
233233

234234
body[dir='rtl'] #sidebarbutton {
235235
border-radius: 5px 0 0 5px;
236-
border-right: none;
237236
border-left: none;
238237
}
239238

239+
/* Remove this when Sphinx has RTL support */
240+
241+
body[dir='rtl'] #sidebarbutton span {
242+
display: inline-block;
243+
transform: scaleX(-1);
244+
}
245+
240246
#sidebarbutton:hover {
241247
background-color: #AAAAAA;
242248
}

0 commit comments

Comments
 (0)