Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 1.8k
Infra: improve text readability and webpage performance#3132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Uh oh!
There was an error while loading. Please reload this page.
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -61,11 +61,9 @@ img.invert-in-dark-mode { | ||
| :root {color-scheme: light dark} | ||
| html { | ||
| overflow-y: scroll; | ||
| margin: 0; | ||
| line-height: 1.4; | ||
| font-weight: normal; | ||
| line-height: 1.5; | ||
| font-size: 1rem; | ||
| font-family: "Source Sans Pro", Arial, sans-serif; | ||
| font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif; | ||
merwok marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| } | ||
| body { | ||
| margin: 0; | ||
| @@ -76,40 +74,27 @@ section#pep-page-section { | ||
| padding: 0.25rem; | ||
| } | ||
| /* Reduce margin sizes for body text */ | ||
| p {margin: .5rem 0} | ||
| /* Header rules */ | ||
| h1 { | ||
| font-size: 2rem; | ||
| font-weight: bold; | ||
| margin-top: 1.25rem; | ||
| margin-bottom: 1rem; | ||
| } | ||
| h2 { | ||
| font-size: 1.6rem; | ||
| font-weight: bold; | ||
| margin-top: 1rem; | ||
| margin-bottom: .5rem; | ||
| } | ||
| h3 { | ||
| font-size: 1.4rem; | ||
| font-weight: normal; | ||
| margin-top: 1rem; | ||
| margin-bottom: 0.5rem; | ||
| } | ||
| h4 { | ||
| font-size: 1.2rem; | ||
| font-weight: normal; | ||
| margin-top: .5rem; | ||
| margin-bottom: 0; | ||
| } | ||
| h5, | ||
| h6 { | ||
| font-size: 1rem; | ||
| font-weight: bold; | ||
| margin-top: 0; | ||
| margin-bottom: 0; | ||
| } | ||
| /* Anchor link rules */ | ||
| @@ -131,7 +116,6 @@ a:focus { | ||
| blockquote { | ||
| font-style: italic; | ||
| border-left: 1px solid var(--colour-rule-strong); | ||
| margin: .5rem; | ||
| padding: .5rem 1rem; | ||
| } | ||
| blockquote em { | ||
| @@ -145,7 +129,7 @@ cite { | ||
| /* Code rules (code literals and Pygments highlighting blocks) */ | ||
| code, | ||
| pre { | ||
| font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "DejaVu Sans Mono", Consolas, monospace; | ||
| font-family: Menlo, Consolas, Monaco, Liberation Mono, Lucida Console, monospace; | ||
| font-size: 0.875rem; | ||
| -webkit-hyphens: none; | ||
| hyphens: none; | ||
| @@ -189,9 +173,8 @@ dl dd { | ||
| hr { | ||
| border: 0; | ||
| border-top: 1px solid var(--colour-rule-light); | ||
| margin: 0; | ||
| } | ||
| /*Image rules */ | ||
| /*Image rules */ | ||
| img { | ||
| max-width: 100%; | ||
| } | ||
| @@ -201,13 +184,6 @@ a img { | ||
| } | ||
| /* List rules */ | ||
ambv marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| ul, | ||
| ol { | ||
| padding: 0; | ||
| margin: 0 0 0 1.5rem; | ||
| } | ||
| ul {list-style: square} | ||
| ol.arabic {list-style: decimal} | ||
| ol.loweralpha {list-style: lower-alpha} | ||
| ol.upperalpha {list-style: upper-alpha} | ||
| ol.lowerroman {list-style: lower-roman} | ||
| @@ -263,7 +239,6 @@ section#pep-page-section > header { | ||
| } | ||
| section#pep-page-section > header > h1 { | ||
| font-size: 1.1rem; | ||
| line-height: 1.4; | ||
| margin: 0; | ||
| display: inline-block; | ||
| padding-right: .6rem; | ||
| @@ -379,7 +354,15 @@ dl.footnote > dd { | ||
| #pep-sidebar > h2 { | ||
| font-size: 1.4rem; | ||
| } | ||
| #contents ol, | ||
| #contents ul, | ||
| #pep-sidebar ol, | ||
| #pep-sidebar ul { | ||
| padding: 0; | ||
| margin: 0 0 0 1.5rem; | ||
| } | ||
| #pep-sidebar ul { | ||
| font-size: .9rem; | ||
| margin-left: 1rem; | ||
| } | ||
| #pep-sidebar ul a { | ||
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.