File: pydoctheme_dark.css

package info (click to toggle)
python-docs-theme 2025.4.1-1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 192 kB
  • sloc: javascript: 150; python: 114; makefile: 25
file content (191 lines) | stat: -rw-r--r-- 3,472 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
/* Common colours */
:root {
    --good-color: rgb(79 196 100);
    --good-border: var(--good-color);
    --middle-color: rgb(244, 227, 76);
    --middle-border: var(--middle-color);
    --bad-color: rgb(244, 76, 78);
    --bad-border: var(--bad-color);
}


/* Browser elements */
:root {
    scrollbar-color: #616161 transparent;
    color-scheme: dark;
}

html,
body {
    background-color: #222;
    color: rgba(255, 255, 255, 0.87);
}

div.related {
    color: rgba(255, 255, 255, 0.7); /* classic overwrite */
    border-color: #424242;
}

/* SIDEBAR */
div.sphinxsidebar, .menu-wrapper {
    background-color: #333;
    color: inherit;
}

#sidebarbutton {
    /* important to overwrite style attribute */
    background-color: #555 !important;
    color: inherit !important;
}

div.sidebar, aside.sidebar {
    background-color: #424242;
    border-color: #616161;
}

/* ANCHORS AND HIGHLIGHTS */
div.body a {
    color: #7af;
}

div.body a:visited {
    color: #09e;
}

a.headerlink:hover {
    background-color: #424242;
}

div.related a {
    color: currentColor;
}

div.footer,
div.footer a {
    color: currentColor; /* classic overwrites */
}

dt:target,
span.highlighted {
    background-color: #616161;
}

.footnote:target {
    background-color: #2c3e50;
}

/* Below for most things in text */

dl.field-list > dt {
    background-color: #434;
}

table.docutils td,
table.docutils th {
    border-color: #616161 !important;
}

table.docutils th {
    background-color: #424242;
}

.stableabi {
    color: #bbf;
}

div.body pre {
    border-color: #616161;
}

code {
    background-color: #424242;
}

div.body div.seealso {
    background-color: rgba(255, 255, 0, 0.1);
}

div.warning {
    background-color: rgba(255, 0, 0, 0.2);
}

.warning code {
    background-color: rgba(255, 0, 0, 0.5);
}

/* Admonitions */
:root {
    --admonition-background: #ffffff1a;
    --admonition-border: currentColor;
    --admonition-color: #ffffffde;
    --attention-background: #ffffff1a;
    --attention-border: currentColor;
    --caution-background: #ffff001a;
    --caution-border: #dd6;
    --danger-background: #f003;
    --danger-border: #f66;
    --error-background: #f003;
    --error-border: #f66;
    --hint-background: #0044117a;
    --hint-border: green;
    --seealso-background: #ffff001a;
    --seealso-border: #dd6;
    --tip-background: #0044117a;
    --tip-border: green;
    --warning-background: #ff000033;
    --warning-border: #ff6666;
}

aside.topic,
div.topic,
div.note,
nav.contents {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: currentColor;
}

.note code {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav {
    box-shadow: rgba(255, 255, 255, 0.25) 0 0 2px 0;
}

.nav-content {
    background-color: black;
}

img.invert-in-dark-mode {
    filter: invert(1) hue-rotate(.5turn);
}

/* -- object description styles --------------------------------------------- */

/* C++ specific styling */

/* Override Sphinx's basic.css to fix colour contrast */
.sig.c   .k, .sig.c   .kt,
.sig.cpp .k, .sig.cpp .kt {
    color: #5283ff;
}

/* Version change directives */
:root {
    --versionadded: var(--good-color);
    --versionchanged: var(--middle-color);
    --deprecated: var(--bad-color);
}

.copybutton {
    color: #ac9; /* follows div.body pre */
    background-color: #222222; /* follows body */
}

.copybutton:hover {
    background-color: #434343;
}

.copybutton:active {
    background-color: #656565;
}