Skip to content

Python docs centered by devidw

Imported and mirrored from https://raw.githubusercontent.com/devidw/user-styles/master/sites/python.org/index.user.styl

Details

Authordevidw

LicenseUnlicense

Categorypython

Created

Updated

Size692 B

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Clean, minimalistic Python docs redesign for reading.

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name           Python docs centered
@version        0.1.0
@namespace      d.wolf.gdn
@preprocessor   stylus
@description    Clean, minimalistic Python docs redesign for reading.
@author         David Wolf <d@wolf.gdn> (https://d.wolf.gdn)
@homepageURL    https://github.com/devidw/user-styles
@supportURL     https://github.com/devidw/user-styles/issues
@license        Unlicense
==/UserStyle== */

@-moz-document domain("python.org")
    .bodywrapper
        // Also have spacing when the toc is collapsed to keep the doc centered
        margin-left: 230px !important

    .body[role="main"]
        // main doc has max-width of 800px
        margin-left calc(50% - 400px)

Reviews

No reviews yet.