From a831dea8702ab5b06480b8f8aaa11347b88fa2f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tillmann=20D=C3=B6nicke?= <tillmann.doenicke@uni-goettingen.de> Date: Tue, 30 Apr 2024 14:10:59 +0000 Subject: [PATCH] feat/fix(styles): adapt notes styling --- scenarios/xslt/edxml2html/css/styles.css | 37 ++++++++++-------------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/scenarios/xslt/edxml2html/css/styles.css b/scenarios/xslt/edxml2html/css/styles.css index bd72037..99f05be 100644 --- a/scenarios/xslt/edxml2html/css/styles.css +++ b/scenarios/xslt/edxml2html/css/styles.css @@ -347,40 +347,33 @@ hr.metamark-line.doubleLine { text-indent: -0.5em; } -.note-list > input[type=checkbox]:checked ~ ul, .note-item > input[type=checkbox]:checked ~ span { display: none; } -.note-list > label * { - all: unset !important; - font-style: italic !important; -} - -.note-list > label *:hover { - *::before, *::after { - color: var(--theme-color-compl) !important; - } +.note-item { + text-align: justify; } -.note-list > ul { - list-style: none; - text-indent: -1em; - margin-left: -1em; +.note-item:not(:first-child) { + margin-top: 1em; } -.note-list > label .annotation, -.note-list > label .lb { - display: none !important; +.note-item > label { + font-variant: small-caps; + font-weight: bold; } -.note-item { - text-align: justify +.note-item > span > p { + margin: 0; + margin-top: 0.5em; + padding: 0; + text-indent: 0; } -.note-item > label { - font-variant: small-caps; - font-weight: bold; +.note-item > span > p:first-child { + display: inline; + margin-top: 0; } .unit .note-item > label:not(:has(~ input[type=checkbox]:checked))::after { -- GitLab