Last active
July 29, 2025 13:59
-
-
Save foosel/19140bc572765eb478ff25ea2b4d2726 to your computer and use it in GitHub Desktop.
A user style to add some more whitespace and less saturated code snippets and admonitions on docs.python.org
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ==UserStyle== | |
@name docs.python.org | |
@namespace github.com/openstyles/stylus | |
@homepageURL https://gist.github.com/foosel/19140bc572765eb478ff25ea2b4d2726 | |
@version 1.0.0 | |
@license MIT | |
@description Some more whitespace and less saturated code snippets and admonitions for (docs|typing).python.org | |
@author foosel (https://foosel.net) | |
==/UserStyle== */ | |
@-moz-document domain("docs.python.org"), domain("typing.python.org") { | |
div.body h2 { | |
padding: 1em 0 0.3em; | |
} | |
div.body h3 { | |
padding: 0.8em 0 0.3em; | |
} | |
div.body h4 { | |
padding: 0.6em 0 0.3em; | |
} | |
div.body p, | |
div.body dd, | |
div.body li, | |
div.body blockquote { | |
line-height: 1.8; | |
} | |
div.admonition, | |
div.highlight-default, | |
div.highlight-python, | |
div.highlight-python3 { | |
margin: 2em; | |
filter: saturate(.5); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment