Skip to content

Instantly share code, notes, and snippets.

@foosel
Last active July 29, 2025 13:59
Show Gist options
  • Save foosel/19140bc572765eb478ff25ea2b4d2726 to your computer and use it in GitHub Desktop.
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
/* ==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