change-fonts.user.css: specify font-face as well

This commit is contained in:
Aminda Suomalainen 2024-05-30 16:36:58 +03:00
parent 21882319be
commit 4e82b65432
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -2,7 +2,7 @@
@name Change Fonts @name Change Fonts
@updateURL https://gitea.blesmrt.net/mikaela/gist/raw/branch/master/web-browsers/usercss/change-fonts.user.css @updateURL https://gitea.blesmrt.net/mikaela/gist/raw/branch/master/web-browsers/usercss/change-fonts.user.css
@namespace eu.aminda @namespace eu.aminda
@version 2024.22.1 @version 2024.22.2
@var select FontSet "Font Set" { @var select FontSet "Font Set" {
"Serif": "Liberation Serif, Tinos, Times New Roman, serif", "Serif": "Liberation Serif, Tinos, Times New Roman, serif",
"Sans Serif": "Liberation Sans, Arimo, Arial, sans-serif" "Sans Serif": "Liberation Sans, Arimo, Arial, sans-serif"
@ -14,8 +14,15 @@
font-family: var(FontSet) !important; font-family: var(FontSet) !important;
} }
@font-face {
font-family: var(FontSet) !important;
}
/* Code blocks preferably use monospace font, which is specified here then. */ /* Code blocks preferably use monospace font, which is specified here then. */
code, code,
pre { pre {
font-family: "Liberation Mono", "Cousine", "Courier New", monospace !important; font-family: "Liberation Mono", "Cousine", "Courier New", monospace !important;
@font-face {
font-family: "Liberation Mono", "Cousine", "Courier New", monospace !important;
}
} }