Skip to content

Commit d78ae12

Browse files
authored
Release 2.2.0 version
2 parents a71f957 + b42126c commit d78ae12

File tree

6 files changed

+75
-11
lines changed

6 files changed

+75
-11
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: release actions
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
attach_usercss:
10+
name: attach user-css file
11+
runs-on: "ubuntu-18.04"
12+
env:
13+
usercss_path: "./python_docs_dark.user.css"
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- name: upload file
19+
uses: AButler/upload-release-assets@v2.0
20+
with:
21+
files: "${{ env.usercss_path }}"
22+
repo-token: ${{ secrets.GITHUB_TOKEN }}

CHANGELOG.md

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

33

4+
## **2.2.0** - 2022.02.27
5+
### Added
6+
- Support for new elements of python documentation pages
7+
- Support for mobile version elemets
8+
9+
410
## **2.1.1** - 2020.11.16
511
### Fixed
612
- Colors highlighting for some code elements

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 maximilionus
3+
Copyright (c) 2022 maximilionus
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<h1 align="center">
2-
Python Docs<br>
3-
Dark Theme
2+
Python Documentation<br>
3+
Dark 🌒 Theme
44
</h1>
5-
<details align="center"><summary>Preview Image</summary>
5+
<details align="center"><summary align="left">🎨 Preview Image</summary>
66
<img src="./images/preview.png">
77
</details>
88

9-
## About
9+
## About
1010
This repository contains the userstyle dark theme for python documentation and other web pages that inherit the stylesheet from official docs.
1111

12-
## Installation
13-
1. Ensure that **Stylus** extension ([Chrome](https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne), [Firefox](https://addons.mozilla.org/ru/firefox/addon/styl-us/)) is installed in your browser
14-
2. 📦 [Install the usercss](https://github.com/maximilionus/python_docs_dark/raw/master/python_docs_dark.user.css)
12+
## 📦 Installation
13+
1. 🧩 Ensure that **Stylus** extension ([Chrome](https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne), [Firefox](https://addons.mozilla.org/ru/firefox/addon/styl-us/)) is installed in your browser
14+
2. ⬇️ [Install The Usercss](https://github.com/maximilionus/python_docs_dark/raw/master/python_docs_dark.user.css)
1515

16-
## Supported Domains
16+
## ☄️ Supported Domains
1717
Here's list of domains that are currenlty supported by this userstyle.
1818

1919
- docs.python.org

images/preview.png

-138 KB
Loading

python_docs_dark.user.css

Lines changed: 38 additions & 2 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.1.1
7+
@version 2.2.0
88
@description Dark theme for docs.python.org
99
@author maximilionus <maximilionuss@gmail.com>
1010
==/UserStyle== */
@@ -31,6 +31,23 @@
3131
border-radius: 4px;
3232
}
3333

34+
.mobile-nav {
35+
background-color: var(--background-light);
36+
color: var(--text-normal)
37+
}
38+
39+
.menu-wrapper {
40+
background-color: var(--background-dark);
41+
}
42+
43+
.menu a {
44+
color: var(--text-normal);
45+
}
46+
47+
.toggler__label {
48+
border-color: var(--background-dark);
49+
}
50+
3451
div#sidebarbutton {
3552
color: #6d6d6d !important;
3653
background-color: var(--background-light) !important;
@@ -62,7 +79,8 @@
6279
background-color: var(--background-dark);
6380
}
6481

65-
div.topic {
82+
div.topic,
83+
.nav-content .search input[type=submit] {
6684
border: 0px;
6785
background-color: var(--background-gray);
6886
}
@@ -169,6 +187,20 @@
169187
background-color: var(--background-gray);
170188
}
171189

190+
.version_switcher_placeholder,
191+
.language_switcher_placeholder,
192+
.nav-content
193+
{
194+
background-color: var(--background-dark);
195+
border: 2px solid var(--background-gray);
196+
border-radius: 5px;
197+
}
198+
199+
.language_switcher_placeholder select, .version_switcher_placeholder select {
200+
background-color: var(--background-dark);
201+
border: none;
202+
}
203+
172204
.highlight .o {
173205
color: #bfbfbf;
174206
}
@@ -268,4 +300,8 @@
268300
.highlight .na {
269301
color: #508fce;
270302
}
303+
304+
.warning code {
305+
background-color: var(--background-dark);
306+
}
271307
}

0 commit comments

Comments
 (0)