Skip to content

Commit

Permalink
Animation
Browse files Browse the repository at this point in the history
  • Loading branch information
Wulian233 committed Dec 21, 2024
1 parent 5635060 commit 584ed50
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions python_docs_theme/static/pydoctheme.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
@import url('classic.css');

/* Smooth scroll */
html {
scroll-behavior: smooth;
}

/* Common colours */
:root {
--good-color: rgb(41 100 51);
Expand Down Expand Up @@ -129,6 +134,7 @@ form.inline-search input[type='submit'] {
}

div.document {
animation: fadeIn 0.6s ease-in-out;
display: flex;
/* Don't let long code literals extend beyond the right side of the screen */
overflow-wrap: break-word;
Expand All @@ -149,9 +155,7 @@ div.sphinxsidebar {
border-radius: 5px;
line-height: 130%;
font-size: smaller;
resize: horizontal;
min-width: 200px;
max-width: 400px;
transition: width 0.3s ease
}

div.sphinxsidebar h3,
Expand Down Expand Up @@ -764,3 +768,13 @@ div.versionremoved .versionmodified {
display: none;
}
}

/* Animation */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}

0 comments on commit 584ed50

Please sign in to comment.