mirror of
https://github.com/ManimCommunity/manim.git
synced 2026-06-22 10:01:47 +00:00
* Add option to run examples directly with binder The minified JS is from https://github.com/naveen521kk/manim-binder * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * slight style changes * update the js file to fix on chrome Signed-off-by: Naveen M K <naveen521kk@gmail.com> * show the run button as an cursor * make the video to be 100% of the width * Update manim/utils/docbuild/manim_directive.py Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at> * Add a "Make interactive" button instead of "Run" button Clicking on the "Make interactive" button show the code-editor and "run" button * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * update margin for run interactive button --------- Signed-off-by: Naveen M K <naveen521kk@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Benjamin Hackl <devel@benjamin-hackl.at>
103 lines
1.8 KiB
CSS
103 lines
1.8 KiB
CSS
@media (prefers-color-scheme: dark) {
|
|
span.nc {
|
|
text-decoration: none !important;
|
|
}
|
|
}
|
|
|
|
.admonition-manim-example {
|
|
padding: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.admonition-manim-example p.admonition-title {
|
|
font-weight: 600;
|
|
font-size: 0.925rem;
|
|
margin: 0;
|
|
}
|
|
|
|
.admonition-manim-example .highlight-python {
|
|
margin: 0;
|
|
}
|
|
|
|
.admonition-manim-example .highlight {
|
|
border-radius: 0;
|
|
}
|
|
|
|
.admonition-manim-example .highlight pre {
|
|
font-size: 15px;
|
|
}
|
|
|
|
.manim-video {
|
|
width: 100%;
|
|
padding: 8px 0;
|
|
outline: 0;
|
|
}
|
|
|
|
.admonition-manim-example .manim-video {
|
|
padding: 0;
|
|
}
|
|
|
|
.admonition-manim-example img {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.admonition-manim-example p:last-child {
|
|
margin-top: 0;
|
|
padding-left: 0.5rem;
|
|
padding-bottom: 0.15rem;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.admonition-manim-example .copybtn {
|
|
margin-right: 6px;
|
|
font-size: 18px;
|
|
}
|
|
|
|
.admonition-manim-example .copybtn:hover {
|
|
cursor: pointer;
|
|
}
|
|
|
|
p.rubric{
|
|
text-transform: capitalize;
|
|
font-size: 1.25rem;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.sig-param{
|
|
color: var(--color-content-foreground);
|
|
}
|
|
|
|
dl.c .field-list dt, dl.cpp .field-list dt, dl.js .field-list dt, dl.py .field-list dt {
|
|
text-transform: capitalize;
|
|
font-weight: bold;
|
|
font-size: var(--font-size--normal);
|
|
}
|
|
|
|
h4, h5, h6{
|
|
text-transform: none;
|
|
}
|
|
|
|
/* yikes-ish attempt at bugfix for navbar on some browsers */
|
|
.sidebar-tree a.internal.reference {
|
|
display: table-cell;
|
|
}
|
|
|
|
.manim-binder-button {
|
|
text-transform: capitalize;
|
|
padding: 10px 20px;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
.manim-binder-wrapper {
|
|
background-color: var(--color-code-background);
|
|
color: var(--color-code-foreground);
|
|
}
|
|
|
|
.manim-binder-title {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.manim-binder-button-wrapper {
|
|
margin: 0px 10px;
|
|
}
|