Skip to content

Commit 1200406

Browse files
committed
Version 2.4.0 release
2 parents c96ab0d + 39252ca commit 1200406

File tree

4 files changed

+71
-16
lines changed

4 files changed

+71
-16
lines changed

CHANGELOG.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
# Python Docs - Dark Theme: Changelog
22

33

4+
## 2.4.0 - 2022.05.11
5+
### Added
6+
- Code highlighting
7+
- New elements with adjusted color: `.highlight` [`.sa`, `.kc`, `.si`]
8+
- Input fields border color added to stylesheet
9+
10+
### Changed
11+
- Code highlighting
12+
- `.highlight` [`.nd`, `.m`] colors adjusted
13+
- Adjusted colors for python interpreter input/output simulation
14+
15+
416
## 2.3.0 - 2022.05.04
517
### Added
618
- New [Adaptive theme](./python_docs_dark_adaptive.user.css) variant. Activation depends on selected web browser color scheme.
@@ -11,7 +23,7 @@
1123
- Text color for `div.body` element
1224
- Code highlighting is now more readable
1325
- Less contrast fg color for elements: `.nn`, `.nc`, `.vm`, `.nd`, `.gp`, `.gr`, `.gt`, `.go`, `.n`
14-
- Swaped colors for python interpreter input/output simulation
26+
- Swapped colors for python interpreter input/output simulation
1527

1628
### Changed
1729
- Modified description text in main `.user.css`

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,11 @@ This repository contains the userstyle dark theme for python documentation and o
2020

2121
> **Adaptive** theme activation depends on selected web browser color scheme, while **Default** one will always be active
2222
23+
## 🆙 Updating
24+
This userstyle is configured to install all updates right from this repository's `master` branch with Stylus updater, located on the *Installed Styles* page of this extension
25+
2326
## ☄️ Supported Domains
24-
Here's list of domains that are currenlty supported by this userstyle.
27+
Here's list of domains that are currently supported by this userstyle.
2528

2629
- docs.python.org
2730
- packaging.python.org

python_docs_dark.user.css

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@homepageURL https://github.com/maximilionus/python_docs_dark
55
@updateURL https://github.com/maximilionus/python_docs_dark/raw/master/python_docs_dark.user.css
66
@license MIT
7-
@version 2.3.0
7+
@version 2.4.0
88
@description Dark theme for python documentation pages
99
@author maximilionus <[email protected]>
1010
==/UserStyle== */
@@ -48,6 +48,10 @@
4848
border-color: var(--background-dark);
4949
}
5050

51+
.warning code {
52+
background-color: var(--background-dark);
53+
}
54+
5155
div#sidebarbutton {
5256
color: #6d6d6d !important;
5357
background-color: var(--background-light) !important;
@@ -64,6 +68,10 @@
6468
border: 1px solid #272727;
6569
}
6670

71+
input:focus {
72+
outline: solid var(--text-normal) 2px;
73+
}
74+
6775
form.inline-search input,
6876
div.sphinxsidebar input {
6977
border: 1px solid #272727;
@@ -231,13 +239,17 @@
231239
}
232240

233241
.highlight .nd {
234-
color: #ffc4c4;
242+
color: #ff8c77;
235243
}
236244

237245
.highlight .k {
238246
color: #34b75a;
239247
}
240248

249+
.highlight .kc {
250+
color: #7ec27e;
251+
}
252+
241253
.highlight .kt {
242254
color: #e6572e;
243255
}
@@ -274,6 +286,10 @@
274286
color: #a6d2ff;
275287
}
276288

289+
.highlight .sa {
290+
color: #f7ef77;
291+
}
292+
277293
.highlight .se {
278294
color: #f3a68f;
279295
}
@@ -282,10 +298,18 @@
282298
color: #5b9de0;
283299
}
284300

301+
.highlight .si {
302+
color: #d66794;
303+
}
304+
285305
.highlight .nt {
286306
color: #e64a7d;
287307
}
288308

309+
.highlight .m {
310+
color: var(--text-light);
311+
}
312+
289313
.highlight .mi {
290314
color: #34c17b;
291315
}
@@ -327,14 +351,10 @@
327351
}
328352

329353
.highlight .gp {
330-
color: #8ac98a;
354+
color: #8ac7c9;
331355
}
332356

333357
.highlight .na {
334358
color: #508fce;
335359
}
336-
337-
.warning code {
338-
background-color: var(--background-dark);
339-
}
340360
}

python_docs_dark_adaptive.user.css

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@homepageURL https://github.com/maximilionus/python_docs_dark
55
@updateURL https://github.com/maximilionus/python_docs_dark/raw/master/python_docs_dark_adaptive.user.css
66
@license MIT
7-
@version 2.3.0
7+
@version 2.4.0
88
@description Dark theme for python documentation pages, activation depends on selected web browser color scheme
99
@author maximilionus <[email protected]>
1010
==/UserStyle== */
@@ -49,6 +49,10 @@
4949
border-color: var(--background-dark);
5050
}
5151

52+
.warning code {
53+
background-color: var(--background-dark);
54+
}
55+
5256
div#sidebarbutton {
5357
color: #6d6d6d !important;
5458
background-color: var(--background-light) !important;
@@ -65,6 +69,10 @@
6569
border: 1px solid #272727;
6670
}
6771

72+
input:focus {
73+
outline: solid var(--text-normal) 2px;
74+
}
75+
6876
form.inline-search input,
6977
div.sphinxsidebar input {
7078
border: 1px solid #272727;
@@ -232,13 +240,17 @@
232240
}
233241

234242
.highlight .nd {
235-
color: #ffc4c4;
243+
color: #ff8c77;
236244
}
237245

238246
.highlight .k {
239247
color: #34b75a;
240248
}
241249

250+
.highlight .kc {
251+
color: #7ec27e;
252+
}
253+
242254
.highlight .kt {
243255
color: #e6572e;
244256
}
@@ -275,6 +287,10 @@
275287
color: #a6d2ff;
276288
}
277289

290+
.highlight .sa {
291+
color: #f7ef77;
292+
}
293+
278294
.highlight .se {
279295
color: #f3a68f;
280296
}
@@ -283,10 +299,18 @@
283299
color: #5b9de0;
284300
}
285301

302+
.highlight .si {
303+
color: #d66794;
304+
}
305+
286306
.highlight .nt {
287307
color: #e64a7d;
288308
}
289309

310+
.highlight .m {
311+
color: var(--text-light);
312+
}
313+
290314
.highlight .mi {
291315
color: #34c17b;
292316
}
@@ -328,15 +352,11 @@
328352
}
329353

330354
.highlight .gp {
331-
color: #8ac98a;
355+
color: #8ac7c9;
332356
}
333357

334358
.highlight .na {
335359
color: #508fce;
336360
}
337-
338-
.warning code {
339-
background-color: var(--background-dark);
340-
}
341361
}
342362
}

0 commit comments

Comments
 (0)