usercss/notion.user.css
Matej Focko 333ceb50ee
fix: correct the namespace
Signed-off-by: Matej Focko <me@mfocko.xyz>
2024-08-05 18:48:28 +02:00

50 lines
1.2 KiB
CSS

/* ==UserStyle==
@name notion.so
@namespace git.mfocko.xyz/mfocko/usercss
@updateURL https://git.mfocko.xyz/mfocko/usercss/raw/branch/main/notion.user.css
@version 1.1.7
@description Allow switching of the fonts on notion.so.
@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"
==/UserStyle== */
if monospace-font=="custom"
monospace-font=custom-font
@-moz-document domain("notion.so") {
* [style *=" monospace"] {
font-family: monospace-font !important;
}
* [style *=" serif"] {
font-family: "Roboto Slab" !important;
}
* [style *=" sans"] {
font-family: "Roboto" !important;
}
}