Skip to content

your-code-font by smiller171

Imported and mirrored from https://raw.githubusercontent.com/smiller171/UserCSS-Styles/master/your-code-font/your-code-font.user.css

Details

Authorsmiller171

Licenseunlicense

Categoryglobal

Created

Updated

Size978 B

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Enforce your favorite monospace (I hope) code font across the web.

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         your-code-font
@author       Karl_255
@namespace    github.com/smiller171
@version      1.2.0
@description  Enforce your favorite monospace (I hope) code font across the web.
@homepageURL  https://github.com/smiller171/UserCSS-Styles
@supportURL   https://github.com/smiller171/UserCSS-Styles/issues
@license      unlicense
@preprocessor default
@var  text  monoFont "Monospace Font" Cascadia Code
==/UserStyle== */

/* these can appear on any website */
pre,
code,
.code,
.hljs,
.CodeMirror,
.sourceblock > * > * {
  font-family: var(--monoFont), monospace !important;
}

@font-face {
  font-family: monospace;
  src: local(var(--monoFont));
}

@-moz-document domain("github.com") {
  .blob-code-inner,
  .blob-num {
    font-family: var(--monoFont), monospace !important;
  }
}


@-moz-document domain("gitlab.com") {
  /* gitlab has some insanely weird CSS */
  :root {
    --font-family-monospace: var(--monoFont), monospace !important;
  }
}

Reviews

No reviews yet.