From 29c30dc899f8d18864d7c2a93e1b93502716999a Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Thu, 6 Jun 2024 06:42:43 +0300 Subject: [PATCH] browsers/usercss: add od-serif.user.css --- web-browsers/usercss/od-serif.user.css | 36 ++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 web-browsers/usercss/od-serif.user.css diff --git a/web-browsers/usercss/od-serif.user.css b/web-browsers/usercss/od-serif.user.css new file mode 100644 index 0000000..28413d2 --- /dev/null +++ b/web-browsers/usercss/od-serif.user.css @@ -0,0 +1,36 @@ +/* ==UserStyle== +@name OpenDyslexic with serif fallback +@updateURL https://gitea.blesmrt.net/mikaela/gist/raw/branch/master/web-browsers/usercss/od-serif.user.css +@namespace eu.aminda +@version 2024.23.0 +==/UserStyle== */ + +:root { + --FontSet: OpenDyslexic, ui-serif, system-ui, serif, emoji; + --a-monospace-fonts: "ui-monospace, Liberation Mono", "Cousine", + "Courier New", monospace, emoji; +} + +/* Use the variable from above. */ +* { + font-family: var(--FontSet) !important; +} + +@font-face { + font-family: var(--FontSet) !important; +} + +/* Code blocks preferably use monospace font, which is specified here then. */ +code, +pre { + font-family: var(--a-monospace-fonts) !important; + @font-face { + font-family: var(--a-monospace-fonts) !important; + } +} + +/* I have Firefox always underlining links and not seeing it on Android etc. +bothers me.*/ +a { + text-decoration: underline !important; +}