Enforce your favorite monospace (I hope) code font across the web.
your-code-font by karl255
Imported and mirrored from https://raw.githubusercontent.com/Karl255/UserCSS-Styles/master/your-code-font/your-code-font.user.css
Details
Authorkarl255
Licenseunlicense
Categoryglobal
Created
Updated
Size841 B
Statistics
Learn how we calculate statistics in the FAQ.
Failed to fetch stats.
Description
Notes
Specify your font in the style settings or change your default monospace font in your browser settings.
Source code
/* ==UserStyle==
@name your-code-font
@author Karl_255
@namespace github.com/Karl255
@version 1.1.0
@description Enforce your favorite monospace (I hope) code font across the web.
@homepageURL https://github.com/Karl255/UserCSS-Styles
@supportURL https://github.com/Karl255/UserCSS-Styles/issues
@license unlicense
@preprocessor default
@var text code-font "Code font" monospace
==/UserStyle== */
/* these can appear on any website */
pre,
code,
.code,
.bold_code, /* found in erlang docs */
.hljs,
.CodeMirror,
.sourceblock > * > * {
font-family: var(--code-font) !important;
}
@-moz-document domain("github.com") {
.blob-code-inner,
.blob-num {
font-family: var(--code-font) !important;
}
}
@-moz-document domain("gitlab.com") {
:root {
--font-family-monospace: var(--code-font) !important;
}
}