Skip to content

Instantly share code, notes, and snippets.

@oldherl
Last active June 26, 2020 16:34
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oldherl/8bcc47300c79480d75738d8faabdf621 to your computer and use it in GitHub Desktop.
Save oldherl/8bcc47300c79480d75738d8faabdf621 to your computer and use it in GitHub Desktop.
Userstyle to fix the new Github theme
@-moz-document domain("github.com") {
/* no round avatars */
.avatar-user {
border-radius: 0 !important;
}
/* only slightly round buttons */
.btn {
border-radius: 2px;
}
/* reset font to sans and monospace */
.markdown-body {
font-family: sans-serif;
}
body {
font-family: sans-serif;
line-height: 1.3;
color: #111;
}
code, pre, tt, .blob-code-inner, .blob-num {
font-family: monospace;
}
.Box-header .text-mono{
font-family: monospace !important;
}
/* last changed date is longer than pre-defined 100px when using custom fonts. */
.text-right[role="gridcell"] {
width: 120px !important;
}
/* do not hide commit info */
h2 ~ .Details--on .Details-content--shown, h2 ~ .Details:not(.Details--on) .Details-content--hidden {
display: block !important;
}
/* hid the toggle for commit info*/
.Box-header > div > div > .hidden-text-expander {
display: none !important;
}
/* top bar too much padding */
.Box-header {
padding-top: 7px;
padding-bottom: 7px;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
}
/* README.md filename background */
.Box .bg-white {
background-color: #f1f8ff !important;
}
/* too narrow main area */
.container-xl {
max-width: 1440px;
}
/* too wide pagehead. 1384 = 1440 - 32 - 32*/
.pagehead {
max-width: 1384px;
margin-left: auto;
margin-right: auto;
}
/* action bar too tall */
.UnderlineNav-item {
line-height: inherit;
}
/* narrower between repo name and "Code" "Issues" tabs */
.repohead > .mb-3 {
margin-bottom: 2px !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment