-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6095cb8
commit a5f2bdf
Showing
1 changed file
with
67 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
/* override table width restrictions */ | ||
@media screen and (min-width: 767px) { | ||
.wy-table-responsive table td, .wy-table-responsive table th { | ||
/* !important prevents the common CSS stylesheets from | ||
overriding this as on RTD they are loaded after this stylesheet */ | ||
white-space: normal !important; | ||
} | ||
|
||
.wy-table-responsive { | ||
overflow: visible !important; | ||
} | ||
} | ||
|
||
/* Sort out RTD's lacking code captions */ | ||
.rst-content div.code-block-caption { | ||
/* Copied from pre... */ | ||
font-family: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace; | ||
font-size: 14px; | ||
font-weight: bold; | ||
font-style: normal; | ||
text-align: left; | ||
background-color: #ddd; | ||
padding: 0.5em; | ||
} | ||
|
||
.rst-content div[class^="highlight"] { | ||
border: 0 none; | ||
margin-top: 0; | ||
} | ||
|
||
.rst-content div.code-block-caption + div.highlight-python3 { | ||
margin-top: 0; | ||
} | ||
|
||
.rst-content div.code-block-caption a.headerlink { | ||
visibility: hidden; | ||
} | ||
|
||
.rst-content div.code-block-caption a.headerlink::after { | ||
font-family: FontAwesome; | ||
font-size: 12px; | ||
content: ""; | ||
visibility: hidden; | ||
} | ||
|
||
.rst-content div.code-block-caption:hover a.headerlink::after { | ||
visibility: visible; | ||
} | ||
|
||
/* Make highlighting color a little less ugly */ | ||
.rst-content div.highlight span.hll { | ||
background-color: #ddddff; | ||
} | ||
|
||
/* Custom style for exercises */ | ||
.rst-content div.admonition-exercise { | ||
background: #e7fae8; | ||
} | ||
|
||
.rst-content div.admonition-exercise p.admonition-title { | ||
background: #6ade78; | ||
} | ||
|
||
/* Equal spacing around content images */ | ||
.rst-content .document img { | ||
margin-bottom: 24px; | ||
} |