Skip to content

Instantly share code, notes, and snippets.

@Makaze
Last active December 22, 2023 17:25
Show Gist options
  • Save Makaze/c2272531c729388d2cfad1dfbb16d165 to your computer and use it in GitHub Desktop.
Save Makaze/c2272531c729388d2cfad1dfbb16d165 to your computer and use it in GitHub Desktop.
Makes the python docs just a little easier to read.
/* Makes the python docs just a little easier to read. */
/* ==UserStyle==
@name docs.python.org - Dec 2023
@namespace github.com/openstyles/stylus
@version 1.0.0
@description Python Docs style
@author Makaze
==/UserStyle== */
@-moz-document domain("docs.python.org") {
h1,
h2,
h3,
h4,
dt {
border-bottom: 1px dotted !important;
margin-bottom: 1em;
font-family: 'BlexMono Nerd Font', monospace !important;
}
dd {
background-color: rgba(0, 0, 0, .03);
padding: 1em 1em;
border: 1px solid rgba(0, 0, 0, .1)
}
p:last-of-type {
margin-bottom: 0;
}
code {
padding: 0 .4em;
font-family: 'BlexMono Nerd Font', monospace !important;
/* color: #1a8d88 !important; */
/* font-weight: bolder; */
}
}
@Makaze
Copy link
Author

Makaze commented Dec 22, 2023

Before:
image

After:
image

Demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment