59 lines
1.4 KiB
CSS
59 lines
1.4 KiB
CSS
/* ==UserStyle==
|
|
@name sourcehut
|
|
@namespace git.mfocko.xyz/mfocko/usercss
|
|
@updateURL https://git.mfocko.xyz/mfocko/usercss/raw/branch/main/sourcehut.user.css
|
|
@version 1.1.4
|
|
@description Replace default monospace font on the sourcehut.
|
|
@author mfocko <me@mfocko.xyz>
|
|
@preprocessor stylus
|
|
@var select monospace-font "Font" [
|
|
"custom*",
|
|
"Berkeley Mono Variable",
|
|
"Cascadia Code NF",
|
|
"Comic Code Ligatures",
|
|
"Fira Code",
|
|
"Hack",
|
|
"IBM Plex Mono",
|
|
"Iosevka Term",
|
|
"Iosevka Term Slab",
|
|
"Iosevka Comfy",
|
|
"Pragmasevka",
|
|
"JetBrains Mono",
|
|
"JuliaMono",
|
|
"MonoLisa Variable",
|
|
"PragmataPro Liga",
|
|
"PragmataPro Mono Liga",
|
|
"Rec Mono Linear",
|
|
"Roboto Mono",
|
|
"SF Mono",
|
|
"Source Code Pro",
|
|
"Victor Mono",
|
|
]
|
|
@var text custom-font "Custom font" "monospace"
|
|
@var text font-features "Font feature settings" "'calt' on, 'liga' on, 'dlig' on"
|
|
==/UserStyle== */
|
|
|
|
if monospace-font=="custom"
|
|
monospace-font=custom-font
|
|
|
|
@-moz-document domain("sr.ht") {
|
|
:root {
|
|
--font-family-monospace: monospace-font !important;
|
|
}
|
|
|
|
pre,
|
|
code,
|
|
kbd,
|
|
var,
|
|
samp,
|
|
tt,
|
|
textarea {
|
|
font-family: monospace-font !important;
|
|
font-feature-settings: font-features;
|
|
}
|
|
|
|
.tree-list {
|
|
font-family: monospace-font !important;
|
|
font-feature-settings: font-features;
|
|
}
|
|
}
|