-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix typo in getting started * Fix dark mode hiding some output in the notebooks * Fix the displaced copy button in one liner input boxes
- Loading branch information
Showing
4 changed files
with
56 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* This stylesheet is applied to nbsphinx notebooks only */ | ||
|
||
/* Hide execution count */ | ||
/* https://nbsphinx.readthedocs.io/en/latest/custom-css.html#For-a-Single-Notebook */ | ||
.nbinput .prompt, | ||
.nboutput .prompt { | ||
display: none; | ||
} | ||
|
||
/* Fix hidden rows in output of dataframes and pint quantities in dark mode */ | ||
/* Make colors hardcoded in nbsphinx/_static/nbsphinx-code-cells.css_t aware of the theme */ | ||
:root { | ||
--nbsphinx-table-and-thead-border-color: black; | ||
--nbsphinx-tbody-tr-nth-child-odd-color: #f5f5f5; | ||
} | ||
|
||
body[data-theme='dark'] { | ||
--nbsphinx-table-and-thead-border-color: white; | ||
--nbsphinx-tbody-tr-nth-child-odd-color: #5f5f5f; | ||
} | ||
|
||
@media (prefers-color-scheme: dark) { | ||
body:not([data-theme="light"]) { | ||
--nbsphinx-table-and-thead-border-color: white; | ||
--nbsphinx-tbody-tr-nth-child-odd-color: #5f5f5f; | ||
} | ||
} | ||
|
||
.jp-RenderedHTMLCommon table, | ||
div.rendered_html table { | ||
color: var(--nbsphinx-table-and-thead-border-color); | ||
} | ||
|
||
.jp-RenderedHTMLCommon thead, | ||
div.rendered_html thead { | ||
border-bottom: 1px solid var(--nbsphinx-table-and-thead-border-color); | ||
} | ||
|
||
.jp-RenderedHTMLCommon tbody tr:nth-child(odd), | ||
div.rendered_html tbody tr:nth-child(odd) { | ||
background: var(--nbsphinx-tbody-tr-nth-child-odd-color); | ||
} | ||
|
||
/* Disable copy button in output */ | ||
div.output_area > div > button.copybtn { | ||
display: none; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters