feat: add pagure style
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
f5f5f2bc3d
commit
906c7f8285
2 changed files with 56 additions and 0 deletions
|
@ -4,4 +4,5 @@
|
||||||
|
|
||||||
* [mikrotik](./mikrotik.user.css)
|
* [mikrotik](./mikrotik.user.css)
|
||||||
* [notion](./notion.user.css)
|
* [notion](./notion.user.css)
|
||||||
|
* [pagure](./pagure.user.css)
|
||||||
* [sourcehut](./sourcehut.user.css)
|
* [sourcehut](./sourcehut.user.css)
|
||||||
|
|
55
pagure.user.css
Normal file
55
pagure.user.css
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
/* ==UserStyle==
|
||||||
|
@name Pagure
|
||||||
|
@namespace git.mfocko.xyz/mfocko/dotfiles
|
||||||
|
@updateURL https://git.mfocko.xyz/mfocko/usercss/raw/branch/main/pagure.user.css
|
||||||
|
@version 1.1.4
|
||||||
|
@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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue