From f7ffc3ccac906e470b80a48288839b7ed6f09619 Mon Sep 17 00:00:00 2001 From: Andrew Scholer Date: Mon, 4 Nov 2024 08:06:53 -0800 Subject: [PATCH] Styling improvement --- css/pretext_add_on.css | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/css/pretext_add_on.css b/css/pretext_add_on.css index e85a35d5a..e3deb8bb9 100644 --- a/css/pretext_add_on.css +++ b/css/pretext_add_on.css @@ -78,13 +78,8 @@ font-size: inherit; } -.ptx-content figcaption .codenumber:after { - content: "\2002"; -} -.ptx-content figcaption .type:last-of-type::after { - /* so, not followed by a span.codenumber */ - /* not sure where this is used */ - content: "\2002"; +.ptx-content figcaption .figcaption__caption { + margin-left: 0.2em; } .ptx-content figcaption code.code-inline { @@ -99,6 +94,19 @@ margin-top: 1em; } +.ptx-content .listing > figcaption > .filename { + margin-left: 0.2em; + font-family: "Inconsolata", monospace; + font-weight: 700; +} +.ptx-content .listing > figcaption > .filename::before { + content: "("; +} +.ptx-content .listing > figcaption > .filename::after { + content: ")"; +} + + .ptx-content figcaption + .named-list-content { margin-top: 0.6em; }