|
| 1 | +/* Fix /page#foo going to the top of the viewport and being hidden by the navbar */ |
| 2 | +html { |
| 3 | + scroll-padding-top: 50px; |
| 4 | +} |
| 5 | + |
| 6 | +/* Fit the Twitter handle alongside the GitHub one in the top right. */ |
| 7 | + |
| 8 | +div.md-header__source { |
| 9 | + width: revert; |
| 10 | + max-width: revert; |
| 11 | +} |
| 12 | + |
| 13 | +a.md-source { |
| 14 | + display: inline-block; |
| 15 | +} |
| 16 | + |
| 17 | +.md-source__repository { |
| 18 | + max-width: 100%; |
| 19 | +} |
| 20 | + |
| 21 | +/* Emphasise sections of nav on left hand side */ |
| 22 | + |
| 23 | +nav.md-nav { |
| 24 | + padding-left: 5px; |
| 25 | +} |
| 26 | + |
| 27 | +nav.md-nav--secondary { |
| 28 | + border-left: revert !important; |
| 29 | +} |
| 30 | + |
| 31 | +.md-nav__title { |
| 32 | + font-size: 0.9rem; |
| 33 | +} |
| 34 | + |
| 35 | +.md-nav__item--section > .md-nav__link { |
| 36 | + font-size: 0.9rem; |
| 37 | +} |
| 38 | + |
| 39 | +/* Indent autogenerated documentation */ |
| 40 | + |
| 41 | +div.doc-contents { |
| 42 | + padding-left: 25px; |
| 43 | + border-left: 4px solid rgba(230, 230, 230); |
| 44 | +} |
| 45 | + |
| 46 | +/* Increase visibility of splitters "---" */ |
| 47 | + |
| 48 | +[data-md-color-scheme="default"] .md-typeset hr { |
| 49 | + border-bottom-color: rgb(0, 0, 0); |
| 50 | + border-bottom-width: 1pt; |
| 51 | +} |
| 52 | + |
| 53 | +[data-md-color-scheme="slate"] .md-typeset hr { |
| 54 | + border-bottom-color: rgb(230, 230, 230); |
| 55 | +} |
| 56 | + |
| 57 | +/* More space at the bottom of the page */ |
| 58 | + |
| 59 | +.md-main__inner { |
| 60 | + margin-bottom: 1.5rem; |
| 61 | +} |
| 62 | + |
| 63 | +/* Remove prev/next footer buttons */ |
| 64 | + |
| 65 | +.md-footer__inner { |
| 66 | + display: none; |
| 67 | +} |
| 68 | + |
| 69 | +/* Change font sizes */ |
| 70 | + |
| 71 | +html { |
| 72 | + /* Decrease font size for overall webpage |
| 73 | + Down from 137.5% which is the Material default */ |
| 74 | + font-size: 110%; |
| 75 | +} |
| 76 | + |
| 77 | +.md-typeset .admonition { |
| 78 | + /* Increase font size in admonitions */ |
| 79 | + font-size: 100% !important; |
| 80 | +} |
| 81 | + |
| 82 | +.md-typeset details { |
| 83 | + /* Increase font size in details */ |
| 84 | + font-size: 100% !important; |
| 85 | +} |
| 86 | + |
| 87 | +.md-typeset h1 { |
| 88 | + font-size: 1.6rem; |
| 89 | +} |
| 90 | + |
| 91 | +.md-typeset h2 { |
| 92 | + font-size: 1.5rem; |
| 93 | +} |
| 94 | + |
| 95 | +.md-typeset h3 { |
| 96 | + font-size: 1.3rem; |
| 97 | +} |
| 98 | + |
| 99 | +.md-typeset h4 { |
| 100 | + font-size: 1.1rem; |
| 101 | +} |
| 102 | + |
| 103 | +.md-typeset h5 { |
| 104 | + font-size: 0.9rem; |
| 105 | +} |
| 106 | + |
| 107 | +.md-typeset h6 { |
| 108 | + font-size: 0.8rem; |
| 109 | +} |
| 110 | + |
| 111 | +/* Bugfix: remove the superfluous parts generated when doing: |
| 112 | +
|
| 113 | +??? Blah |
| 114 | +
|
| 115 | + ::: library.something |
| 116 | +*/ |
| 117 | + |
| 118 | +.md-typeset details .mkdocstrings > h4 { |
| 119 | + display: none; |
| 120 | +} |
| 121 | + |
| 122 | +.md-typeset details .mkdocstrings > h5 { |
| 123 | + display: none; |
| 124 | +} |
| 125 | + |
| 126 | +/* Change default colours for <a> tags */ |
| 127 | + |
| 128 | +[data-md-color-scheme="default"] { |
| 129 | + --md-typeset-a-color: rgb(0, 189, 164) !important; |
| 130 | +} |
| 131 | +[data-md-color-scheme="slate"] { |
| 132 | + --md-typeset-a-color: rgb(0, 189, 164) !important; |
| 133 | +} |
| 134 | + |
| 135 | +/* Highlight functions, classes etc. type signatures. Really helps to make clear where |
| 136 | + one item ends and another begins. */ |
| 137 | + |
| 138 | +[data-md-color-scheme="default"] { |
| 139 | + --doc-heading-color: #DDD; |
| 140 | + --doc-heading-border-color: #CCC; |
| 141 | + --doc-heading-color-alt: #F0F0F0; |
| 142 | +} |
| 143 | +[data-md-color-scheme="slate"] { |
| 144 | + --doc-heading-color: rgb(25,25,33); |
| 145 | + --doc-heading-border-color: rgb(25,25,33); |
| 146 | + --doc-heading-color-alt: rgb(33,33,44); |
| 147 | + --md-code-bg-color: rgb(38,38,50); |
| 148 | +} |
| 149 | + |
| 150 | +h4.doc-heading { |
| 151 | + /* NOT var(--md-code-bg-color) as that's not visually distinct from other code blocks.*/ |
| 152 | + background-color: var(--doc-heading-color); |
| 153 | + border: solid var(--doc-heading-border-color); |
| 154 | + border-width: 1.5pt; |
| 155 | + border-radius: 2pt; |
| 156 | + padding: 0pt 5pt 2pt 5pt; |
| 157 | +} |
| 158 | +h5.doc-heading, h6.heading { |
| 159 | + background-color: var(--doc-heading-color-alt); |
| 160 | + border-radius: 2pt; |
| 161 | + padding: 0pt 5pt 2pt 5pt; |
| 162 | +} |
| 163 | + |
| 164 | +/* Fix spurious whitespace at the end of mkdocstrings output */ |
| 165 | + |
| 166 | +div.output_wrapper > div.output > div.output_area > div.output_subarea > pre { |
| 167 | + white-space: normal; |
| 168 | +} |
| 169 | + |
| 170 | +div.output_wrapper > div.output > div.output_area > div.output_subarea > pre > code { |
| 171 | + white-space: pre; |
| 172 | +} |
0 commit comments