|
| 1 | +/* |
| 2 | + * Based heavily on https://darkreader.org/ |
| 3 | + */ |
| 4 | + |
| 5 | +@media (prefers-color-scheme: dark) { |
| 6 | + |
| 7 | + hr { |
| 8 | + border-top: 1px solid rgb(56, 61, 63); |
| 9 | + } |
| 10 | + |
| 11 | + pre { |
| 12 | + background-color: #282b2d !important |
| 13 | + } |
| 14 | + |
| 15 | + img:not([src*='.svg']) { |
| 16 | + filter: grayscale(50%) contrast(70%);; |
| 17 | + } |
| 18 | + |
| 19 | + html { |
| 20 | + background-color: #181a1b !important; |
| 21 | + } |
| 22 | + |
| 23 | + html, body { |
| 24 | + background-color: #181a1b; |
| 25 | + color: rgb(192, 186, 178); |
| 26 | + } |
| 27 | + |
| 28 | + table { |
| 29 | + border-color: #545b5e; |
| 30 | + } |
| 31 | + |
| 32 | + ::placeholder { |
| 33 | + color: #b2aba1; |
| 34 | + } |
| 35 | + |
| 36 | + input:-webkit-autofill, |
| 37 | + textarea:-webkit-autofill, |
| 38 | + select:-webkit-autofill { |
| 39 | + background-color: #404400 !important; |
| 40 | + color: #e8e6e3 !important; |
| 41 | + } |
| 42 | + |
| 43 | + .wy-side-nav-search { |
| 44 | + background-color: #b13a10; |
| 45 | + color: rgb(230, 228, 225); |
| 46 | + } |
| 47 | + |
| 48 | + .wy-side-nav-search input[type=text] { |
| 49 | + box-shadow: rgb(43 47 49) 0px 1px 3px inset; |
| 50 | + border-color: rgb(59 59 59); |
| 51 | + background-color: rgb(59 59 59); |
| 52 | + color: #96928c; |
| 53 | + } |
| 54 | + |
| 55 | + .btn { |
| 56 | + color: rgb(232, 230, 227); |
| 57 | + border-color: rgba(140, 130, 115, 0.1); |
| 58 | + background-color: rgb(31, 139, 77); |
| 59 | + text-decoration-color: initial; |
| 60 | + box-shadow: rgb(24 26 27 / 50%) 0px 1px 2px -1px inset, rgb(0 0 0 / 10%) 0px -2px 0px 0px inset; |
| 61 | + padding: 8px 8px 6px; |
| 62 | + line-height: 15px; |
| 63 | + } |
| 64 | + |
| 65 | + .btn-neutral, .btn-neutral:visited { |
| 66 | + background-color: rgb(27, 36, 36) !important; |
| 67 | + color: rgb(192, 186, 178) !important; |
| 68 | + } |
| 69 | + |
| 70 | + .btn-neutral:hover { |
| 71 | + background-color: rgb(42, 47, 47) !important; |
| 72 | + } |
| 73 | + |
| 74 | + footer { |
| 75 | + color: rgb(152, 143, 129) !important; |
| 76 | + } |
| 77 | + |
| 78 | + .wy-nav-content { |
| 79 | + background-color: #181a1b !important; |
| 80 | + color: rgb(192, 186, 178) !important; |
| 81 | + } |
| 82 | + |
| 83 | + .method .sig-object, .class dt, .data dt, .attribute dt, .function dt, |
| 84 | + .descclassname, .descname { |
| 85 | + background-color: rgb(40, 43, 45) !important; |
| 86 | + color: rgb(192, 186, 178) !important; |
| 87 | + } |
| 88 | + |
| 89 | + html.writer-html4 .rst-content dl:not(.docutils) > dt, html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.citation):not(.glossary):not(.simple) > dt { |
| 90 | + color: #cccccc !important; |
| 91 | + } |
| 92 | + |
| 93 | + html.writer-html4 .rst-content dl:not(.docutils) dl:not(.field-list) > dt, html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.citation):not(.glossary):not(.simple) dl:not(.field-list) > dt { |
| 94 | + color: #96928c !important; |
| 95 | + border-left: 3px solid #3f4547 !important; |
| 96 | + } |
| 97 | + |
| 98 | + html.writer-html4 .rst-content dl:not(.docutils) .optional, html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.citation):not(.glossary):not(.simple) .optional { |
| 99 | + color: #c0bab2 !important; |
| 100 | + } |
| 101 | + |
| 102 | + .method dt, .function .field-list dt { |
| 103 | + background-color: inherit !important; |
| 104 | + } |
| 105 | + |
| 106 | + .rst-content .toc-backref { |
| 107 | + color: rgb(192, 186, 178) !important; |
| 108 | + } |
| 109 | + |
| 110 | + code.literal { |
| 111 | + background-color: #2d2d2d !important; |
| 112 | + border: 1px solid #6d6d6d !important; |
| 113 | + } |
| 114 | + |
| 115 | + .wy-nav-top { |
| 116 | + background-color: #b13a10 !important; |
| 117 | + } |
| 118 | + |
| 119 | + .wy-nav-side { |
| 120 | + background-color: rgb(28, 30, 31) !important; |
| 121 | + } |
| 122 | + |
| 123 | + .wy-menu-vertical a:visited { |
| 124 | + color: rgb(192, 186, 178) !important; |
| 125 | + } |
| 126 | + |
| 127 | + .wy-menu-vertical li.current > a button.toctree-expand, .wy-menu-vertical li.on a button.toctree-expand { |
| 128 | + color: rgb(200, 195, 188) !important; |
| 129 | + } |
| 130 | + .wy-menu-vertical a:hover button.toctree-expand { |
| 131 | + color: rgb(208, 204, 198) !important; |
| 132 | + } |
| 133 | + |
| 134 | + .wy-nav-content-wrap { |
| 135 | + background-color: #181a1b !important; |
| 136 | + } |
| 137 | + |
| 138 | + .wy-nav-content-wrap a, .wy-nav-content-wrap a:visited { |
| 139 | + color: rgb(237, 101, 54) !important; |
| 140 | + } |
| 141 | + |
| 142 | + .wy-nav-content-wrap a:hover, .wy-nav-content-wrap a:active { |
| 143 | + color: rgb(241, 138, 103) !important; |
| 144 | + } |
| 145 | + |
| 146 | + .wy-menu-vertical a:active { |
| 147 | + background-color: #b13a10 !important; |
| 148 | + } |
| 149 | + |
| 150 | + .sidebar { |
| 151 | + background-color: #191919 !important; |
| 152 | + } |
| 153 | + |
| 154 | + .sidebar-title { |
| 155 | + background-color: #2b2b2b !important; |
| 156 | + } |
| 157 | + |
| 158 | + .xref, .py-meth { |
| 159 | + color: #96928c !important; |
| 160 | + } |
| 161 | + |
| 162 | + .admonition, .note { |
| 163 | + background-color: #2d2d2d !important; |
| 164 | + } |
| 165 | + |
| 166 | + /* override table width restrictions */ |
| 167 | + |
| 168 | + .wy-table thead, .rst-content table.docutils thead, .rst-content table.field-list thead { |
| 169 | + background-color: inherit; |
| 170 | + } |
| 171 | + |
| 172 | + .rst-content table.docutils thead, .rst-content table.field-list thead, .wy-table thead { |
| 173 | + color: #c0bab2 !important; |
| 174 | + } |
| 175 | + |
| 176 | + .wy-table thead th, .rst-content table.docutils thead th, .rst-content table.field-list thead th { |
| 177 | + border: solid 1px #c0bab2 !important; |
| 178 | + } |
| 179 | + |
| 180 | + .rst-content table.docutils td, .wy-table-bordered-all td { |
| 181 | + border-bottom: 1px solid #c0bab2 !important; |
| 182 | + border-left: 1px solid #c0bab2 !important; |
| 183 | + } |
| 184 | + |
| 185 | + .rst-content table.docutils, .wy-table-bordered-all { |
| 186 | + border: solid 1px #c0bab2 !important; |
| 187 | + } |
| 188 | + |
| 189 | + .wy-table thead p, .rst-content table.docutils thead p, .rst-content table.field-list thead p { |
| 190 | + margin: 0; |
| 191 | + } |
| 192 | + |
| 193 | + .wy-table-odd td, .wy-table-striped tr:nth-child(2n-1) td, .rst-content table.docutils:not(.field-list) tr:nth-child(2n-1) td { |
| 194 | + background-color: #343131 !important; |
| 195 | + } |
| 196 | + |
| 197 | + /* Messages ----------------------------------------------------------------- */ |
| 198 | + |
| 199 | + .rst-content .section .admonition ul { |
| 200 | + margin-bottom: 0; |
| 201 | + } |
| 202 | + |
| 203 | + .rst-content code.literal, .rst-content tt.literal { |
| 204 | + color: rgb(233, 88, 73) !important; |
| 205 | + } |
| 206 | + |
| 207 | + .rst-content .note .admonition-title, .rst-content .note .wy-alert-title, .rst-content .seealso .admonition-title, .rst-content .seealso .wy-alert-title, .rst-content .wy-alert-info.admonition-todo .admonition-title, .rst-content .wy-alert-info.admonition-todo .wy-alert-title, .rst-content .wy-alert-info.admonition .admonition-title, .rst-content .wy-alert-info.admonition .wy-alert-title, .rst-content .wy-alert-info.attention .admonition-title, .rst-content .wy-alert-info.attention .wy-alert-title, .rst-content .wy-alert-info.caution .admonition-title, .rst-content .wy-alert-info.caution .wy-alert-title, .rst-content .wy-alert-info.danger .admonition-title, .rst-content .wy-alert-info.danger .wy-alert-title, .rst-content .wy-alert-info.error .admonition-title, .rst-content .wy-alert-info.error .wy-alert-title, .rst-content .wy-alert-info.hint .admonition-title, .rst-content .wy-alert-info.hint .wy-alert-title, .rst-content .wy-alert-info.important .admonition-title, .rst-content .wy-alert-info.important .wy-alert-title, .rst-content .wy-alert-info.tip .admonition-title, .rst-content .wy-alert-info.tip .wy-alert-title, .rst-content .wy-alert-info.warning .admonition-title, .rst-content .wy-alert-info.warning .wy-alert-title, .rst-content .wy-alert.wy-alert-info .admonition-title, .wy-alert.wy-alert-info .rst-content .admonition-title, .wy-alert.wy-alert-info .wy-alert-title { |
| 208 | + background: #3a6d8e !important; |
| 209 | + color: #cdcdcd !important; |
| 210 | + } |
| 211 | + |
| 212 | + .rst-content .admonition-todo .admonition-title, .rst-content .admonition-todo .wy-alert-title, .rst-content .attention .admonition-title, .rst-content .attention .wy-alert-title, .rst-content .caution .admonition-title, .rst-content .caution .wy-alert-title, .rst-content .warning .admonition-title, .rst-content .warning .wy-alert-title, .rst-content .wy-alert-warning.admonition .admonition-title, .rst-content .wy-alert-warning.admonition .wy-alert-title, .rst-content .wy-alert-warning.danger .admonition-title, .rst-content .wy-alert-warning.danger .wy-alert-title, .rst-content .wy-alert-warning.error .admonition-title, .rst-content .wy-alert-warning.error .wy-alert-title, .rst-content .wy-alert-warning.hint .admonition-title, .rst-content .wy-alert-warning.hint .wy-alert-title, .rst-content .wy-alert-warning.important .admonition-title, .rst-content .wy-alert-warning.important .wy-alert-title, .rst-content .wy-alert-warning.note .admonition-title, .rst-content .wy-alert-warning.note .wy-alert-title, .rst-content .wy-alert-warning.seealso .admonition-title, .rst-content .wy-alert-warning.seealso .wy-alert-title, .rst-content .wy-alert-warning.tip .admonition-title, .rst-content .wy-alert-warning.tip .wy-alert-title, .rst-content .wy-alert.wy-alert-warning .admonition-title, .wy-alert.wy-alert-warning .rst-content .admonition-title, .wy-alert.wy-alert-warning .wy-alert-title { |
| 213 | + background: #b96a26 !important; |
| 214 | + color: #cdcdcd !important; |
| 215 | + } |
| 216 | + |
| 217 | + /* Content ----------------------------------------------------------------- */ |
| 218 | + |
| 219 | + .rst-content .important .admonition-title { |
| 220 | + background: #b04926 !important; |
| 221 | + color: #cdcdcd !important; |
| 222 | + } |
| 223 | + |
| 224 | + .rst-content div[class^="highlight"], .rst-content pre.literal-block { |
| 225 | + border: 1px solid rgb(63, 69, 71) !important; |
| 226 | + } |
| 227 | + |
| 228 | + html.writer-html4 .rst-content dl:not(.docutils) > dt, html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.citation):not(.glossary):not(.simple) > dt { |
| 229 | + border-top: solid 3px #b13a10 !important; |
| 230 | + } |
| 231 | + |
| 232 | + html.writer-html4 .rst-content dl:not(.docutils) > dt, html.writer-html5 .rst-content dl[class]:not(.option-list):not(.field-list):not(.citation):not(.glossary):not(.simple) > dt { |
| 233 | + background: #282b2d !important; |
| 234 | + } |
| 235 | + |
| 236 | + /* Side Menu ---------------------------------------------------------------- */ |
| 237 | + |
| 238 | + .wy-menu-vertical li.current { |
| 239 | + background: rgb(40, 43, 45) !important; |
| 240 | + } |
| 241 | + |
| 242 | + .wy-menu-vertical li.current > a, .wy-menu-vertical li.on a, .wy-menu-vertical li.current > a:hover, .wy-menu-vertical li.on a:hover { |
| 243 | + background-color: rgb(24, 26, 27) !important; |
| 244 | + color: rgb(192, 186, 178) !important; |
| 245 | + } |
| 246 | + |
| 247 | + .wy-menu-vertical li.toctree-l1.current > a { |
| 248 | + border-bottom-color: rgb(63, 69, 71) !important; |
| 249 | + border-top-color: rgb(63, 69, 71) !important; |
| 250 | + |
| 251 | + } |
| 252 | + |
| 253 | + .wy-menu-vertical li.current a { |
| 254 | + border-right-color: rgb(63, 69, 71) !important; |
| 255 | + } |
| 256 | + |
| 257 | + .wy-menu-vertical li.toctree-l2.current > a, .wy-menu-vertical li.toctree-l2.current li.toctree-l3 > a, |
| 258 | + .wy-menu-vertical li.toctree-l2.current:hover > a, .wy-menu-vertical li.toctree-l2.current li.toctree-l3:hover > a { |
| 259 | + background: #3c3c3c !important; |
| 260 | + border-right-color: rgb(63, 69, 71) !important; |
| 261 | + } |
| 262 | + |
| 263 | + .wy-menu-vertical li.toctree-l2:hover > a, .wy-menu-vertical li.toctree-l2.current li.toctree-l3:hover > a { |
| 264 | + background: #1c2020 !important; |
| 265 | + } |
| 266 | + |
| 267 | + .wy-menu-vertical li.toctree-l2 a, .wy-menu-vertical li.toctree-l3 a, .wy-menu-vertical li.toctree-l4 a, .wy-menu-vertical li.toctree-l5 a, .wy-menu-vertical li.toctree-l6 a, .wy-menu-vertical li.toctree-l7 a, .wy-menu-vertical li.toctree-l8 a, .wy-menu-vertical li.toctree-l9 a, .wy-menu-vertical li.toctree-l10 a { |
| 268 | + color: rgb(192, 186, 178) !important; |
| 269 | + } |
| 270 | + |
| 271 | + .wy-menu-vertical li code { |
| 272 | + color: rgb(237, 101, 54) !important; |
| 273 | + } |
| 274 | + |
| 275 | + .wy-menu-vertical .xref { |
| 276 | + color: #2980B9 !important; |
| 277 | + } |
| 278 | + |
| 279 | + /* Search results ---------------------------------------------------------------- */ |
| 280 | + |
| 281 | + #search-results .search li:first-child { |
| 282 | + border-top: 1px solid rgb(56, 61, 63); |
| 283 | + } |
| 284 | + |
| 285 | + #search-results .search li { |
| 286 | + border-bottom: 1px solid rgb(56, 61, 63); |
| 287 | + padding-bottom: 14px !important; |
| 288 | + } |
| 289 | + |
| 290 | + .highlighted { |
| 291 | + background-color: #5e5939 !important |
| 292 | + } |
| 293 | + |
| 294 | + a .highlighted { |
| 295 | + color: #cecece; |
| 296 | + } |
| 297 | + |
| 298 | + .rst-content .highlighted { |
| 299 | + box-shadow: 0 0 0 2px #b3a159; |
| 300 | + } |
| 301 | + |
| 302 | + .versionadded { |
| 303 | + background: #275b11; |
| 304 | + } |
| 305 | + |
| 306 | + .deprecated:not(.versionmodified) { |
| 307 | + background: #86371b; |
| 308 | + } |
| 309 | + |
| 310 | + /* Elements ----------------------------------------------------------------- */ |
| 311 | + |
| 312 | + .highlight .m { |
| 313 | + color: inherit |
| 314 | + } |
| 315 | + |
| 316 | + .highlight .nt { |
| 317 | + color: #a6a6df; |
| 318 | + } |
| 319 | + |
| 320 | + .highlight .nv { |
| 321 | + color: #4f9fd5; |
| 322 | + } |
| 323 | + |
| 324 | + .highlight .na { |
| 325 | + color: #57acac; |
| 326 | + } |
| 327 | + |
| 328 | + .highlight .nc { |
| 329 | + color: #7687b9; |
| 330 | + font-weight: bold; |
| 331 | + } |
| 332 | + |
| 333 | + .highlight .nf { |
| 334 | + color: #b96f6f; |
| 335 | + font-weight: bold; |
| 336 | + } |
| 337 | + |
| 338 | + .highlight .fm { |
| 339 | + color: #b96f6f; |
| 340 | + font-weight: bold; |
| 341 | + } |
| 342 | + |
| 343 | + .highlight .ni { |
| 344 | + color: #b780b7; |
| 345 | + } |
| 346 | +} |
0 commit comments