Skip to content

Commit 7ea0ad1

Browse files
committed
Search, input fields and the sidebar button added
- Table borders adjusted - Adjusted colors for `.highlight` classes
1 parent 4874238 commit 7ea0ad1

File tree

2 files changed

+95
-23
lines changed

2 files changed

+95
-23
lines changed

CHANGELOG.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,23 @@
44
## **1.1.0** - Dev
55
### Added
66
- Support for domain `packaging.python.org`
7-
- Support for syntax highlighting compatibility with dark colors
7+
- Support for syntax highlighting compatibility with dark colors *(WIP)*
8+
- Search and input fields adjustments now included in style
9+
- Sidebar button added to style
810

911
### Fixed
1012
- `css` syntax errors
11-
- Background color for `.note tt`
12-
- Color for variable `--background-gray`
13+
- Background color for:
14+
- `.note tt`
15+
- `div.topic`
1316

1417
### Changed
1518
- Refactored the `css` stylesheet
1619
- Remade the README file
20+
- Borders color for table elements
21+
- Adjusted colors for variables:
22+
- `--background-gray`
23+
- `--text-code-general`
1724

1825

1926
## **1.0.1** - 2020.11.11

python_docs_dark.user.css

Lines changed: 85 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
--background-gray: #303030;
1616
--text-normal: #b5b5b5;
1717
--text-light: #d9d9d9;
18-
--text-code-general: #ddcbb4;
19-
--text-code-red: #b71c56;
18+
--text-code-general: #bfbfbf;
2019
}
2120

2221
::-webkit-scrollbar {
@@ -28,18 +27,44 @@
2827
}
2928

3029
::-webkit-scrollbar-thumb {
31-
background: var(--background-gray);
30+
background: #424242;
3231
border-radius: 4px;
3332
}
3433

34+
div#sidebarbutton {
35+
color: #6d6d6d !important;
36+
background-color: var(--background-light) !important;
37+
}
38+
39+
div#sidebarbutton:hover {
40+
color: #9b9b9b !important;
41+
background-color: #535353 !important;
42+
}
43+
44+
input, select {
45+
color: var(--text-normal);
46+
background-color: var(--background-light);
47+
border: 1px solid #272727;
48+
}
49+
50+
form.inline-search input,
51+
div.sphinxsidebar input {
52+
border: 1px solid #272727;
53+
}
54+
3555
html,
3656
body,
3757
ul,
3858
div.related,
3959
div.sphinxsidebar,
4060
div.warning,
4161
div.document {
42-
background: var(--background-dark);
62+
background-color: var(--background-dark);
63+
}
64+
65+
div.topic {
66+
border: 0px;
67+
background-color: var(--background-gray);
4368
}
4469

4570
div {
@@ -93,40 +118,32 @@
93118
border: 2px solid var(--background-gray);
94119
}
95120

96-
div.seealso {
97-
background: var(--background-light)
121+
div.seealso,
122+
div.note,
123+
th,
124+
dl.field-list > dt {
125+
background: var(--background-light);
98126
}
99127

100128
div.body div.seealso {
101129
border: 2px solid var(--background-gray);
102130
}
103131

104-
div.note {
105-
background: var(--background-light);
106-
}
107-
108132
span.pre {
109133
color: var(--text-code-general);
110134
background: var(--background-gray);
111135
}
112136

113-
th,
114-
dl.field-list > dt {
115-
background: var(--background-light);
116-
}
117-
118137
dt:target,
119138
span.highlighted {
120139
color: var(--text-light);
121140
background: var(--background-gray);
122141
}
123142

124-
table.docutils td {
125-
background: var(--background-light);
126-
}
127-
143+
table.docutils td,
128144
table.docutils th {
129145
background: var(--background-light);
146+
border: 1px solid #5f5f5f !important;
130147
}
131148

132149
code,
@@ -136,12 +153,16 @@
136153
background-color: var(--background-gray);
137154
}
138155

156+
.highlight .o {
157+
color: #bfbfbf;
158+
}
159+
139160
.highlight .go {
140161
color: var(--text-light);
141162
}
142163

143164
.highlight .nf {
144-
color: var(--text-code-red);
165+
color: #e83b7c;
145166
}
146167

147168
.highlight .k {
@@ -172,11 +193,55 @@
172193
color: #6ed88c;
173194
}
174195

196+
.highlight .s {
197+
color: #72a8de;
198+
}
199+
200+
.highlight .s1 {
201+
color: #59acff;
202+
}
203+
175204
.highlight .s2 {
176205
color: #a6d2ff;
177206
}
178207

179208
.highlight .se {
180209
color: #f3a68f;
181210
}
211+
212+
.highlight .sd {
213+
color: #5b9de0;
214+
}
215+
216+
.highlight .nt {
217+
color: #e64a7d;
218+
}
219+
220+
.highlight .mi {
221+
color: #34c17b;
222+
}
223+
224+
.highlight .mf {
225+
color: #2cb772;
226+
}
227+
228+
.highlight .ow {
229+
color: #00b534;
230+
}
231+
232+
.highlight .c1 {
233+
color: #59b6ce;
234+
}
235+
236+
.highlight .ne {
237+
color: #77bf8b;
238+
}
239+
240+
.highlight .cp {
241+
color: #45ca6b;
242+
}
243+
244+
.highlight .cpf {
245+
color: #61c0d8;
246+
}
182247
}

0 commit comments

Comments
 (0)