Skip to content

Commit

Permalink
docs: update css
Browse files Browse the repository at this point in the history
  • Loading branch information
jkjkil4 committed Jul 3, 2024
1 parent ac49916 commit 4d7615e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
17 changes: 12 additions & 5 deletions doc/source/_static/animation_timing_example.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
body {
--animation-box-color: lightblue;
}
body[data-theme=dark] {
--animation-box-color: darkcyan;
}

.anim-timing-example {
border: 2px solid black;
box-shadow: 2px 2px 4px #ddd;
border: 2px solid #333333;
box-shadow: 2px 2px 4px var(--janim-box-shadow);
margin-bottom: 20px;
}
.anim-timing-interactive {
padding: 14px;
padding-top: 10px;
background-color: #fafafa;
background-color: var(--color-background-primary);
overflow: hidden;
}
.anim-boxes {
Expand All @@ -15,7 +22,7 @@
.animation-box {
width: 100px;
height: 30px;
background-color: lightblue;
background-color: var(--animation-box-color);
position: relative;
display: flex;
justify-content: left;
Expand All @@ -33,7 +40,7 @@
margin-right: 8px;
}
.anim-arg-input>span {
width: 50px;
width: 60px;
}
.anim-arg-input>input {
width: 100%;
Expand Down
9 changes: 8 additions & 1 deletion doc/source/_static/custom.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
body {
--janim-box-shadow: #ddd;
}
body[data-theme=dark] {
--janim-box-shadow: #444;
}

p {
font-size: initial;
}
Expand Down Expand Up @@ -30,7 +37,7 @@ div.toctree-wrapper.compound span.caption-text {

.janim-box {
background-color: #333333;
box-shadow: 2px 2px 4px #ddd;
box-shadow: 2px 2px 4px var(--janim-box-shadow);
margin-bottom: 20px;
}

Expand Down

0 comments on commit 4d7615e

Please sign in to comment.