hk239's picture
Upload v2d project (excluding data and .venv) (part 15)
d6b3397 verified
Raw History Blame Contribute Delete
4.18 kB
/*
* For reference: https://pydata-sphinx-theme.readthedocs.io/en/v0.9.0/user_guide/customizing.html
* For colors: https://clrs.cc/
*/
/* anything related to the light theme */
html[data-theme="light"] {
--pst-color-primary: #76B900;
--pst-color-secondary: #5b8e03;
--pst-color-secondary-highlight: #5b8e03;
--pst-color-inline-code-links: #76B900;
--pst-color-info: var(--pst-color-primary);
--pst-color-info-highlight: var(--pst-color-primary);
--pst-color-info-bg: #daedb9;
--pst-color-attention: #ffc107;
--pst-color-text-base: #323232;
--pst-color-text-muted: #646464;
--pst-color-shadow: #d8d8d8;
--pst-color-border: #c9c9c9;
--pst-color-inline-code: #76B900;
--pst-color-target: #fbe54e;
--pst-color-background: #fff;
--pst-color-on-background: #fff;
--pst-color-surface: #f5f5f5;
--pst-color-on-surface: #e1e1e1;
--pst-color-link: var(--pst-color-primary);
--pst-color-link-hover: #789841;
--pst-color-table-row-hover-bg: #daedb9;
--pst-color-accent: var(--pst-color-primary);
}
/* anything related to the dark theme */
html[data-theme="dark"] {
--pst-color-primary: #76B900;
--pst-color-secondary: #c2f26f;
--pst-color-secondary-highlight: #c2f26f;
--pst-color-inline-code-links: #b6e664;
--pst-color-info: var(--pst-color-primary);
--pst-color-info-highlight: var(--pst-color-primary);
--pst-color-info-bg: #3a550b;
--pst-color-attention: #dca90f;
--pst-color-text-base: #cecece;
--pst-color-text-muted: #a6a6a6;
--pst-color-shadow: #212121;
--pst-color-border: silver;
--pst-color-inline-code: #76B900;
--pst-color-target: #472700;
--pst-color-background: #121212;
--pst-color-on-background: #1e1e1e;
--pst-color-surface: #212121;
--pst-color-on-surface: #373737;
--pst-color-link: var(--pst-color-primary);
--pst-color-link-hover: #aee354;
--pst-color-table-row-hover-bg: #3a550b;
--pst-color-accent: var(--pst-color-primary);
}
a {
text-decoration: none !important;
}
/* for the announcement link */
.bd-header-announcement a,
.bd-header-version-warning a {
color: #7FDBFF;
}
/* for the search box in the navbar */
.form-control {
border-radius: 0 !important;
border: none !important;
outline: none !important;
}
/* reduce padding for logo */
.navbar-brand {
padding-top: 0.0rem !important;
padding-bottom: 0.0rem !important;
}
.navbar-icon-links {
padding-top: 0.0rem !important;
padding-bottom: 0.0rem !important;
}
/* showcase task tables */
.showcase-table {
min-width: 75%;
}
.showcase-table td {
border-color: gray;
border-style: solid;
border-width: 1px;
}
.showcase-table p {
margin: 0;
padding: 0;
}
.showcase-table .rot90 {
transform: rotate(-90deg);
margin: 0;
padding: 0;
}
.showcase-table .center {
text-align: center;
vertical-align: middle;
}
.square-crop-figure img {
aspect-ratio: 1 / 1;
object-fit: cover;
object-position: center;
width: min(100%, 480px);
}
.nurec-gif-grid,
.nurec-gif-grid td {
border: none;
}
.nurec-gif-grid td {
vertical-align: top;
}
.nurec-gif-grid figure {
margin-left: auto;
margin-right: auto;
max-width: 360px;
}
figure.nurec-gif-cover img,
figure.nurec-gif-contain img {
aspect-ratio: 16 / 9;
display: block;
object-position: center;
width: 100%;
}
figure.nurec-gif-cover img {
object-fit: cover;
}
figure.nurec-gif-contain img {
object-fit: contain;
}
.nurec-gif-grid figcaption {
font-family: "NVIDIA Sans", "Inter", "Segoe UI", sans-serif;
font-size: 0.86rem;
line-height: 1.35;
}
.nurec-gif-grid figcaption p {
margin-bottom: 0.15rem;
}
.nurec-gif-grid figcaption .line-block {
margin-top: 0;
}
.nurec-gif-grid-single figcaption {
margin-left: 50%;
max-width: calc(100vw - 2rem);
transform: translateX(-50%);
width: max-content;
}
.nurec-gif-grid-single figcaption .line-block .line:nth-child(2) {
white-space: nowrap;
}
/* Keep sphinx-copybutton visible on code blocks (not only on hover). */
button.copybtn {
opacity: 1;
}