feat: add sourcehut style

Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
Matej Focko 2024-08-05 18:19:13 +02:00
parent 710e0012ed
commit b98c834a3c
Signed by: mfocko
SSH key fingerprint: SHA256:icm0fIOSJUpy5+1x23sfr+hLtF9UhY8VpMC7H4WFJP8
2 changed files with 60 additions and 0 deletions

View file

@ -3,3 +3,4 @@
## List of available styles
* [mikrotik](./mikrotik.user.css)
* [sourcehut](./sourcehut.user.css)

59
sourcehut.user.css Normal file
View file

@ -0,0 +1,59 @@
/* ==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;
}
}