|
| 1 | +/* ==UserStyle== |
| 2 | +@name Python Docs - Dark Theme |
| 3 | +@namespace https://github.com/maximilionus |
| 4 | +@homepageURL https://github.com/maximilionus/python_docs_dark |
| 5 | +@updateURL https://raw.githubusercontent.com/maximilionus/python_docs_dark/master/python_docs_dark.user.css |
| 6 | +@license MIT |
| 7 | +@version 1.0.0 |
| 8 | +@description Dark theme for docs.python.org |
| 9 | +@author maximilionus <[email protected]> |
| 10 | +==/UserStyle== */ |
| 11 | +@-moz-document domain("docs.python.org") { |
| 12 | + :root { |
| 13 | + --background-dark: #181818; |
| 14 | + --background-light: #262626; |
| 15 | + --background-gray: #404040; |
| 16 | + --text-normal: #b5b5b5; |
| 17 | + --text-light: #d9d9d9; |
| 18 | + --text-code-general: #ddcbb4; |
| 19 | + --text-code-red: #b71c56; |
| 20 | + } |
| 21 | + |
| 22 | + ::-webkit-scrollbar { |
| 23 | + width: 10px; |
| 24 | + } |
| 25 | + |
| 26 | + ::-webkit-scrollbar-track { |
| 27 | + background-color: var(--background-light); |
| 28 | + } |
| 29 | + |
| 30 | + ::-webkit-scrollbar-thumb { |
| 31 | + background: var(--background-gray); |
| 32 | + border-radius: 4px; |
| 33 | + } |
| 34 | + |
| 35 | + html { |
| 36 | + background: var(--background-dark); |
| 37 | + } |
| 38 | + |
| 39 | + body { |
| 40 | + background: var(--background-dark); |
| 41 | + } |
| 42 | + |
| 43 | + ul { |
| 44 | + background: var(--background-dark); |
| 45 | + } |
| 46 | + |
| 47 | + div { |
| 48 | + color: var(--text-normal); |
| 49 | + background: var(--background-dark); |
| 50 | + } |
| 51 | + |
| 52 | + p { |
| 53 | + color: var(--text-normal); |
| 54 | + } |
| 55 | + |
| 56 | + div.related { |
| 57 | + background-color: var(--background-dark); |
| 58 | + } |
| 59 | + |
| 60 | + div.related a { |
| 61 | + color: var(--text-normal); |
| 62 | + } |
| 63 | + |
| 64 | + div.sphinxsidebar { |
| 65 | + background: var(--background-dark); |
| 66 | + } |
| 67 | + |
| 68 | + div.sphinxsidebar h3 a { |
| 69 | + color: var(--text-light); |
| 70 | + } |
| 71 | + |
| 72 | + div.sphinxsidebar h3, |
| 73 | + div.sphinxsidebar h4 { |
| 74 | + color: var(--text-light); |
| 75 | + } |
| 76 | + |
| 77 | + div.sphinxsidebar a { |
| 78 | + color: var(--text-normal); |
| 79 | + } |
| 80 | + |
| 81 | + div.body { |
| 82 | + background: inherit; |
| 83 | + } |
| 84 | + |
| 85 | + div.sidebar { |
| 86 | + background: var(--background-light); |
| 87 | + border: 2px solid var(--background-gray); |
| 88 | + } |
| 89 | + |
| 90 | + div.body h1, |
| 91 | + div.body h2, |
| 92 | + div.body h3, |
| 93 | + div.body h4, |
| 94 | + div.body h5, |
| 95 | + div.body h6 { |
| 96 | + color: var(--text-light); |
| 97 | + background: var(--background-dark); |
| 98 | + } |
| 99 | + |
| 100 | + div.body pre { |
| 101 | + color: var(--text-normal); |
| 102 | + background: var(--background-light); |
| 103 | + border: 2px solid var(--background-gray); |
| 104 | + } |
| 105 | + |
| 106 | + div.seealso { |
| 107 | + background: var(--background-light) |
| 108 | + } |
| 109 | + |
| 110 | + div.body div.seealso { |
| 111 | + border: 2px solid var(--background-gray); |
| 112 | + } |
| 113 | + |
| 114 | + div.note { |
| 115 | + background: var(--background-light); |
| 116 | + } |
| 117 | + |
| 118 | + div.warning { |
| 119 | + background: var(--background-light); |
| 120 | + } |
| 121 | + |
| 122 | + span.pre { |
| 123 | + color: var(--text-code-general); |
| 124 | + background: var(--background-gray); |
| 125 | + } |
| 126 | + |
| 127 | + th, |
| 128 | + dl.field-list > dt { |
| 129 | + background: var(--background-light); |
| 130 | + } |
| 131 | + |
| 132 | + dt:target, |
| 133 | + span.highlighted { |
| 134 | + color: var(--text-light); |
| 135 | + background: var(--background-gray); |
| 136 | + } |
| 137 | + |
| 138 | + table.docutils td { |
| 139 | + background: var(--background-light); |
| 140 | + } |
| 141 | + |
| 142 | + table.docutils th { |
| 143 | + background: var(--background-light); |
| 144 | + } |
| 145 | + |
| 146 | + code { |
| 147 | + background: var(--background-gray); |
| 148 | + } |
| 149 | + |
| 150 | + .highlight .go { |
| 151 | + color: var(--text-light); |
| 152 | + } |
| 153 | + |
| 154 | + .highlight .nf { |
| 155 | + color: var(--text-code-red); |
| 156 | + } |
| 157 | +} |
0 commit comments