Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add animations to the sidebar and other small places #210

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
15 changes: 15 additions & 0 deletions python_docs_theme/static/pydoctheme.css
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ div.sphinxsidebar {
border-radius: 5px;
line-height: 130%;
font-size: smaller;
transition: width 0.3s ease;
}

div.sphinxsidebar h3,
Expand Down Expand Up @@ -205,6 +206,9 @@ div.sphinxsidebar input[type='text'] {
width: 12px;
border-radius: 0 5px 5px 0;
border-left: none;
position: absolute;
right: 0;
transition: background-color 0.3s ease, color 0.3s ease;
}

#sidebarbutton span {
Expand Down Expand Up @@ -761,3 +765,14 @@ div.versionremoved .versionmodified {
display: none;
}
}

/* Animation */
@media (prefers-reduced-motion: reduce) {
div.document {
transition: none;
}

#sidebarbutton {
transition: none;
}
}
Loading