Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nbsphinx dark mode #1448

Merged
merged 6 commits into from
Mar 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 0 additions & 44 deletions docs/_static/css/override.css
Original file line number Diff line number Diff line change
Expand Up @@ -74,47 +74,3 @@ li.toctree-l3 {
li.toctree-l4 {
font-size: 75% !important;
}



/* Main index page overview cards */
/* https:/pandas-dev/pandas/blob/059c8bac51e47d6eaaa3e36d6a293a22312925e6/doc/source/_static/css/pandas.css */
/* with custom changes */
.intro-card {
background: inherit;
border-radius: 0;
padding: 30px 10px 20px 10px;
margin: 10px 0px;
}

.intro-card p.card-text {
margin: 0px;
}

.intro-card .card-img-top {
height: 52px;
}

.intro-card .card-header {
border: none;
background-color:inherit;
font-size: var(--pst-font-size-h5);
font-weight: bold;
padding: 2.5rem 0rem 0.5rem 0rem;
}

.intro-card .card-footer {
border: none;
background-color:inherit;
}

.intro-card .card-footer p.card-text{
max-width: 220px;
margin-left: auto;
margin-right: auto;
}

.intro-card .btn-secondary {
background-color: #484848;
/* border-color: #dcdcdc; */
}
16 changes: 16 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,22 @@
p {{
margin-bottom: 0.5rem;
}}
/* Main index page overview cards */
/* https:/spatialaudio/nbsphinx/pull/635/files */
.jp-RenderedHTMLCommon table,
div.rendered_html table {{
border: none;
border-collapse: collapse;
border-spacing: 0;
font-size: 12px;
table-layout: fixed;
color: inherit;
}}

body:not([data-theme=light]) .jp-RenderedHTMLCommon tbody tr:nth-child(odd),
body:not([data-theme=light]) div.rendered_html tbody tr:nth-child(odd) {{
background: rgba(255, 255, 255, .1);
}}
</style>

.. raw:: html
Expand Down