From 8bb946b79f976920000c22299437c89cc8e2c010 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Thu, 30 May 2024 17:29:46 +0300 Subject: [PATCH] change-fonts.user.css: don't repeat myself on the monospace fonts --- web-browsers/usercss/change-fonts.user.css | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/web-browsers/usercss/change-fonts.user.css b/web-browsers/usercss/change-fonts.user.css index 23d2cfa..8dce170 100644 --- a/web-browsers/usercss/change-fonts.user.css +++ b/web-browsers/usercss/change-fonts.user.css @@ -10,6 +10,10 @@ } ==/UserStyle== */ +:root { + --a-monospace-fonts: "Liberation Mono", "Cousine", "Courier New", monospace; +} + /* Use the variable from above. */ * { font-family: var(--FontSet) !important; @@ -22,8 +26,8 @@ /* Code blocks preferably use monospace font, which is specified here then. */ code, pre { - font-family: "Liberation Mono", "Cousine", "Courier New", monospace !important; + font-family: var(--a-monospace-fonts) !important; @font-face { - font-family: "Liberation Mono", "Cousine", "Courier New", monospace !important; + fomt-family: var(--a-monospace-fonts) !important; } }