From 1c672f18bd6220f150f98af095bca006f678b22b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tillmann=20D=C3=B6nicke?= <tillmann.doenicke@uni-goettingen.de> Date: Mon, 29 Apr 2024 12:56:57 +0000 Subject: [PATCH] feat(tei:choice): superscript exclamation mark, remove whitespace --- scenarios/xslt/edxml2html/css/styles.css | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/scenarios/xslt/edxml2html/css/styles.css b/scenarios/xslt/edxml2html/css/styles.css index 415cc8a..3b479ae 100644 --- a/scenarios/xslt/edxml2html/css/styles.css +++ b/scenarios/xslt/edxml2html/css/styles.css @@ -412,7 +412,7 @@ hr.metamark-line.doubleLine { } [data-cert="low"]::after { - content: "?"; + content: "?"; font-size: small; vertical-align: super; } @@ -423,12 +423,24 @@ hr.metamark-line.doubleLine { /* corr::before { content: "<"; } corr::after { content: ">"; } */ -.tei.sic::before { content: "!(Text:"; } +/*.tei.sic::before { content: "!(Text:"; }*/ +:has(+ .sic)::after { + content: "!"; + font-size: small; + vertical-align: super; +} +.tei.sic::before { content: "(Text:"; } .tei.sic::after { content: ")"; } -/* choice > sic:not(:last-child) { - display: none; -} */ +/* Remove unwanted whitespace in tei:choice + using this hack: https://stackoverflow.com/a/16498754 +*/ +.choice { + font-size: 0.1%; +} +.choice > * { + font-size: 100000%; +} .damage::before { content: "["; } .damage::after { content: "]"; } -- GitLab