2024-08-05 18:22:59 +02:00
|
|
|
/* ==UserStyle==
|
|
|
|
@name Pagure
|
2024-08-05 18:48:28 +02:00
|
|
|
@namespace git.mfocko.xyz/mfocko/usercss
|
2024-08-05 18:22:59 +02:00
|
|
|
@updateURL https://git.mfocko.xyz/mfocko/usercss/raw/branch/main/pagure.user.css
|
2024-08-05 18:48:28 +02:00
|
|
|
@version 1.1.5
|
2024-08-05 18:22:59 +02:00
|
|
|
@description Replace default monospace font on Pagure instances.
|
|
|
|
@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("pagure.io"),
|
|
|
|
domain("src.fedoraproject.org"),
|
|
|
|
domain("git.centos.org") {
|
|
|
|
pre,
|
|
|
|
code,
|
|
|
|
kbd,
|
|
|
|
var,
|
|
|
|
samp,
|
|
|
|
tt,
|
|
|
|
textarea,
|
|
|
|
.d2h-diff-table,
|
|
|
|
.font-monospace,
|
|
|
|
.code_table tr .cell1 a::before {
|
|
|
|
font-family: monospace-font !important;
|
|
|
|
font-feature-settings: font-features;
|
|
|
|
}
|
|
|
|
}
|