Last active
July 19, 2020 17:16
-
-
Save AfroThundr3007730/1596ae3898d08f91a42bc4f64e8b4a44 to your computer and use it in GitHub Desktop.
Restores the padding to center the headers in the repository view.
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
/* ==UserStyle== | |
@name Github-Next - Center Header | |
@namespace github.com/AfroThundr3007730 | |
@version 0.0.20200719 | |
@description Restores the padding to center the headers in the repository view. | |
@author AfroThundr | |
@homepageURL https://gist.github.com/AfroThundr3007730/1596ae3898d08f91a42bc4f64e8b4a44 | |
@updateURL https://gist.githubusercontent.com/AfroThundr3007730/1596ae3898d08f91a42bc4f64e8b4a44/raw/github-next-center-headers.user.css | |
@license CC-BY-SA-4.0 | |
==/UserStyle== */ | |
@-moz-document url-prefix("https://github.com") { | |
:root { | |
--pad-center-0: max(50vw - 640px, 0px); | |
--pad-center-16: max(50vw - 640px, 16px); | |
--pad-center-24: max(50vw - 640px, 24px); | |
--pad-center-32: max(50vw - 640px, 32px); | |
} | |
body:not(.full-width):not(.height-full) .Header { | |
padding-left: var(--pad-center-16) !important; | |
padding-right: var(--pad-center-16) !important; | |
} | |
.js-notification-shelf { | |
padding-left: var(--pad-center-0); | |
padding-right: var(--pad-center-0); | |
} | |
.pagehead.repohead > div > div, .pagehead .UnderlineNav-body { | |
padding-left: var(--pad-center-0); | |
} | |
.pagehead ul.pagehead-actions { | |
padding-right: var(--pad-center-0) !important; | |
} | |
.pagehead .js-responsive-underlinenav-overflow { | |
padding-right: var(--pad-center-24) !important; | |
} | |
main#js-repo-pjax-container > div:first-of-type > * { | |
padding-left: var(--pad-center-32) !important; | |
padding-right: var(--pad-center-32) !important; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment