From 3b3528839684d3ee6d73bf09c63d4eefba7a44d2 Mon Sep 17 00:00:00 2001
From: Robert Günzler
Date: Sat, 22 Nov 2025 20:43:31 +0100
Subject: fix styling of code blocks
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Robert Günzler
---
links/main.css | 24 +++++++++++++-----------
site/unicode-range.html | 34 +++++++++++++++-------------------
src/inc/unicode-range.htm | 32 ++++++++++++++------------------
3 files changed, 42 insertions(+), 48 deletions(-)
diff --git a/links/main.css b/links/main.css
index 2773b3f..013f7e5 100644
--- a/links/main.css
+++ b/links/main.css
@@ -9,6 +9,8 @@
--body-spacing: 45px;
--body-line-height: 1.3;
--body-inline-padding: 15px;
+
+ --dashed: 1px dashed color-mix(in srgb, var(--bg) 80%, var(--fg));
}
::selection {
@@ -141,24 +143,24 @@ main>q {
margin-left: 30px;
}
-main>pre {
+main pre {
background: color-mix(in srgb, var(--bg) 95%, var(--fg));
- border: 1px dashed color-mix(in srgb, var(--bg) 80%, var(--fg));
- font-family: monospace;
+ border: var(--dashed);
padding: var(--body-inline-padding);
+ margin-bottom: 30px;
+ overflow-x: scroll;
}
-main>code {
+main code {
font-family: monospace;
- margin-bottom: 30px;
- display: block;
- background: var(--fg);
- color: var(--bg);
- padding: var(--body-inline-padding);
- white-space: pre
}
-main>code comment {
+main p>code {
+ border: var(--dashed);
+ padding: 1px 4px;
+}
+
+main code comment {
color: #777
}
diff --git a/site/unicode-range.html b/site/unicode-range.html
index a15a7f4..3e0b9ca 100644
--- a/site/unicode-range.html
+++ b/site/unicode-range.html
@@ -33,28 +33,25 @@
While working on my custom
- Anki
- cards for learning Japanese
+ Anki
+ cards for learning Japanese
and Turkish, I
found that my font of choice for Japanese -
- IPAex
- - was not
+ IPAex
+ - was not
properly supporting glyphs used by
Turkish, like
- ğ .
-
+ ğ .
-
- before
+
+ before
To fix this i am using a property of the
- @font-face
- rule
+ @font-face
+ rule
which limits custom fonts to source their glyphs from a subset of the
- unicode range and force fallback to the next font in the set.
-
-
-@font-face {
+ unicode range and force fallback to the next font in the set.
+@font-face {
font-family: "IPAexGothic";
src:
local("IPAexGothic"),
@@ -73,15 +70,14 @@
IPAexGothic,
Noto Sans,
sans;
-}
-
+}
-
- after
+
+ after