Skip to content

Commit 584ed50

Browse files
committed
Animation
1 parent 5635060 commit 584ed50

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

Diff for: python_docs_theme/static/pydoctheme.css

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
@import url('classic.css');
22

3+
/* Smooth scroll */
4+
html {
5+
scroll-behavior: smooth;
6+
}
7+
38
/* Common colours */
49
:root {
510
--good-color: rgb(41 100 51);
@@ -129,6 +134,7 @@ form.inline-search input[type='submit'] {
129134
}
130135

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

157161
div.sphinxsidebar h3,
@@ -764,3 +768,13 @@ div.versionremoved .versionmodified {
764768
display: none;
765769
}
766770
}
771+
772+
/* Animation */
773+
@keyframes fadeIn {
774+
from {
775+
opacity: 0;
776+
}
777+
to {
778+
opacity: 1;
779+
}
780+
}

0 commit comments

Comments
 (0)