Skip to content

Instantly share code, notes, and snippets.

@jay
Last active July 12, 2016 07:27
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 jay/e99fe4fe7e7bd4feaf5f237e15717133 to your computer and use it in GitHub Desktop.
Save jay/e99fe4fe7e7bd4feaf5f237e15717133 to your computer and use it in GitHub Desktop.
Revert some of GitHub's font changes made on 2016-07-11

On July 11, 2016 GitHub changed their font ordering to prefer Segoe UI on Windows. I think the old ordering which preferred Arial over Segoe was better. I wrote this CSS for Stylish to revert some of the most prominent changes.

In FF install by Stylish > Manage Styles > User Styles > Install from URLs...

https://rawgit.com/jay/e99fe4fe7e7bd4feaf5f237e15717133/raw/GitHub-Ignore-Segoe-UI.css
@-moz-document domain("github.com") {
@font-face {
font-family: "Segoe UI";
font-weight: normal;
font-style: normal;
src: local("Arial");
}
@font-face {
font-family: "Segoe UI";
font-weight: bold;
font-style: normal;
src: local("Arial Bold");
}
@font-face {
font-family: "Segoe UI";
font-weight: normal;
font-style: italic;
src: local("Arial Italic");
}
body {
font-size:13px;
}
.btn {
font-size:13px;
}
h1,h2,h3,h4,h5,h6 {
font-weight:bold;
}
h1 { font-size:30px; }
h2 { font-size:21px; }
h3 { font-size:16px; }
h4 { font-size:14px; }
h5 { font-size:12px; }
h6 { font-size:11px; }
.markdown-body h1 { font-size:2.25em; }
.markdown-body h2 { font-size:1.75em; }
.markdown-body h3 { font-size:1.5em; }
.markdown-body h4 { font-size:1.25em; }
.markdown-body h5 { font-size:1em; }
.markdown-body h6 {
font-size:1em;
color:#777;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment