Skip to content

Instantly share code, notes, and snippets.

@RyanMcG
Last active December 20, 2015 12:58
Show Gist options
  • Save RyanMcG/6134897 to your computer and use it in GitHub Desktop.
Save RyanMcG/6134897 to your computer and use it in GitHub Desktop.
Stylish CSS rules to use 11pt/13em monospace as the github font. Monospace being your system's default.
/* Copyright © 2013 Ryan McGowan <ryan@ryanmcg.com>
* This work is free. You can redistribute it and/or modify it under the
* terms of the Do What The Fuck You Want To Public License, Version 2,
* as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
*/
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("github.com") {
.diff-line-num, .blob-line-nums, .line-number, code, pre {
font: 11pt/1.3em monospace !important;
vertical-align: middle;
}
.blob-line-nums a, .blob-line-nums span, .diff-line-nums span, .line {
line-height: 1.3em !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment