Skip to content

Centering readthedocs by konafx

Details

Authorkonafx

LicenseNo License

Categoryreadthedocs.io

Created

Updated

Size500 B

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Centrally position the content

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name           Centering readthedocs
@namespace      github.com/openstyles/stylus
@version        1.0.0
@description    centering readthedocs
@author         konafx
==/UserStyle== */

@-moz-document domain("readthedocs.io") {
  /* centering content */
  @media screen and (min-width: 1200px){
    .wy-nav-content {
      max-width: max(50vw, 800px);
      margin-right: calc((100% - max(50vw, 800px)) * 3 / 5);
      margin-left: calc((100% - max(50vw, 800px)) * 2 / 5);
    }
  }
}

Reviews

No reviews yet.