Skip to content

Instantly share code, notes, and snippets.

@elomatreb
Created August 18, 2017 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elomatreb/f2e4d54bec4e2d30c518bbd1e488bea0 to your computer and use it in GitHub Desktop.
Save elomatreb/f2e4d54bec4e2d30c518bbd1e488bea0 to your computer and use it in GitHub Desktop.
Userstyle to make Github actually use system fonts (if you have changed them). Probably not exhaustive but all occurrences of sans-serif and monospace I found
@-moz-document domain("github.com") {
body,
.markdown-body,
.default-label .sha .ellipses,
.tooltipped::after {
font-family: sans-serif;
}
pre,
code,
kbk,
tt,
.blob-code-inner,
.blob-num,
.branch-name,
.cm-s-github-light .CodeMirror-lines,
.commit .sha,
.commit .sha-block,
.commit-desc pre,
.commit-ref,
.commit-tease-sha,
.CommunityTemplate-highlight,
.credit-card .cvv,
.credit-card .text,
.default-label .sha,
.export-phrase pre,
.file-editor-textarea,
.file-info,
.gollum-dialog-dialog-body fieldset .code,
.gollum-editor .expanded textarea,
.gollum-editor .gollum-editor-body,
.hook-delivery-guid,
.hook-delivery-response-status,
.input-monospace,
.news .alert .branch-link,
.oauth-app-info-container dl.keys dd,
.tag-references>li.commit,
.two-factor-recovery-codes,
.two-factor-secret,
.uploaded-files .filename {
font-family: monospace;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment