Skip to content

Commit

Permalink
Release 2.2.0 version
Browse files Browse the repository at this point in the history
  • Loading branch information
maximilionus authored Feb 27, 2022
2 parents a71f957 + b42126c commit d78ae12
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 11 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release_actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: release actions

on:
release:
types:
- published

jobs:
attach_usercss:
name: attach user-css file
runs-on: "ubuntu-18.04"
env:
usercss_path: "./python_docs_dark.user.css"

steps:
- uses: actions/checkout@v2

- name: upload file
uses: AButler/[email protected]
with:
files: "${{ env.usercss_path }}"
repo-token: ${{ secrets.GITHUB_TOKEN }}
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
# Python Docs - Dark Theme: Changelog


## **2.2.0** - 2022.02.27
### Added
- Support for new elements of python documentation pages
- Support for mobile version elemets


## **2.1.1** - 2020.11.16
### Fixed
- Colors highlighting for some code elements
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 maximilionus
Copyright (c) 2022 maximilionus

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
<h1 align="center">
Python Docs<br>
Dark Theme
Python Documentation<br>
Dark 🌒 Theme
</h1>
<details align="center"><summary>Preview Image</summary>
<details align="center"><summary align="left">🎨 Preview Image</summary>
<img src="./images/preview.png">
</details>

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

## Installation
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
2. 📦 [Install the usercss](https://github.com/maximilionus/python_docs_dark/raw/master/python_docs_dark.user.css)
## 📦 Installation
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
2. ⬇️ [Install The Usercss](https://github.com/maximilionus/python_docs_dark/raw/master/python_docs_dark.user.css)

## Supported Domains
## ☄️ Supported Domains
Here's list of domains that are currenlty supported by this userstyle.

- docs.python.org
Expand Down
Binary file modified images/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
40 changes: 38 additions & 2 deletions python_docs_dark.user.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
@homepageURL https://github.com/maximilionus/python_docs_dark
@updateURL https://github.com/maximilionus/python_docs_dark/raw/master/python_docs_dark.user.css
@license MIT
@version 2.1.1
@version 2.2.0
@description Dark theme for docs.python.org
@author maximilionus <[email protected]>
==/UserStyle== */
Expand All @@ -31,6 +31,23 @@
border-radius: 4px;
}

.mobile-nav {
background-color: var(--background-light);
color: var(--text-normal)
}

.menu-wrapper {
background-color: var(--background-dark);
}

.menu a {
color: var(--text-normal);
}

.toggler__label {
border-color: var(--background-dark);
}

div#sidebarbutton {
color: #6d6d6d !important;
background-color: var(--background-light) !important;
Expand Down Expand Up @@ -62,7 +79,8 @@
background-color: var(--background-dark);
}

div.topic {
div.topic,
.nav-content .search input[type=submit] {
border: 0px;
background-color: var(--background-gray);
}
Expand Down Expand Up @@ -169,6 +187,20 @@
background-color: var(--background-gray);
}

.version_switcher_placeholder,
.language_switcher_placeholder,
.nav-content
{
background-color: var(--background-dark);
border: 2px solid var(--background-gray);
border-radius: 5px;
}

.language_switcher_placeholder select, .version_switcher_placeholder select {
background-color: var(--background-dark);
border: none;
}

.highlight .o {
color: #bfbfbf;
}
Expand Down Expand Up @@ -268,4 +300,8 @@
.highlight .na {
color: #508fce;
}

.warning code {
background-color: var(--background-dark);
}
}

0 comments on commit d78ae12

Please sign in to comment.