From 89db3846d0a1b25307b0f536184bc6b941ac8204 Mon Sep 17 00:00:00 2001 From: Dendy Faist Date: Mon, 8 Sep 2025 08:24:41 +0200 Subject: [PATCH] feat: Kanji view styling, bigger furigana --- assets/styles/app.css | 4 ++++ templates/kanji/view.html.twig | 18 +++++++++++------- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/assets/styles/app.css b/assets/styles/app.css index 3d1f1ee..d4b9c73 100644 --- a/assets/styles/app.css +++ b/assets/styles/app.css @@ -2,3 +2,7 @@ a { text-decoration: none !important; color: inherit !important; } + +rt { + font-size: 0.75em; +} diff --git a/templates/kanji/view.html.twig b/templates/kanji/view.html.twig index 64323b7..7592884 100644 --- a/templates/kanji/view.html.twig +++ b/templates/kanji/view.html.twig @@ -90,15 +90,19 @@ + +
-
-

Terms

- {% for term in terms|slice(0,5) %} -
-
{{ term.toAnkiVocabDef|ruby|raw }}
-
- {% endfor %} +
+ +

Terms

+ {% for term in terms|slice(0,5) %} +
+
{{ term.toAnkiVocabDef|ruby|raw }}
+ {% endfor %} + +

Appeareances

{% for refname, refcount in ref %}