Skip to content

Instantly share code, notes, and snippets.

@sportebois
Last active November 10, 2018 22:23
Show Gist options
  • Save sportebois/c86e1fef878c459ede7a574d72848bc1 to your computer and use it in GitHub Desktop.
Save sportebois/c86e1fef878c459ede7a574d72848bc1 to your computer and use it in GitHub Desktop.
FiraCode on Github (Stylish rule)
/* Github */
@import url(https://cdn.rawgit.com/tonsky/FiraCode/1.204/distr/fira_code.css);
.blob-code-inner,
.markdown-body .highlight pre,
.markdown-body pre, tt, code {
font-family: "Fira Code","SFMono-Regular",Consolas,"Liberation Mono",Menlo,Courier,monospace;
font-feature-settings: "calt" 1;
font-variant-ligatures: contextual;
}
/* applies to URLs on the domain github.com */
/* For Firefox users: You might need to change incoming CSP headers to let the browser download FiraCode css and font:
- add https://cdn.rawgit.com/tonsky/FiraCode/ to the connect-src, style-src, and font-src, to get thise header:
Content-Security-Policy: default-src 'none'; base-uri 'self'; child-src render.githubusercontent.com; connect-src 'self' uploads.github.com status.github.com collector.githubapp.com api.github.com www.google-analytics.com github-cloud.s3.amazonaws.com *.s3.amazonaws.com wss://live.github.com; font-src assets-cdn.github.com https://cdn.rawgit.com/tonsky/FiraCode/; form-action 'self' github.com gist.github.com; frame-ancestors 'none'; img-src 'self' data: assets-cdn.github.com identicons.github.com collector.githubapp.com github-cloud.s3.amazonaws.com *.githubusercontent.com; manifest-src 'self'; media-src 'none'; script-src assets-cdn.github.com https://cdn.rawgit.com/tonsky/FiraCode/; style-src 'unsafe-inline' assets-cdn.github.com https://cdn.rawgit.com/tonsky/FiraCode/;
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment