From 284484eb0b2e35bdee39782ae5beb100b4bf0616 Mon Sep 17 00:00:00 2001 From: Colleen McGinnis Date: Mon, 4 Nov 2024 10:07:06 -0600 Subject: [PATCH] change style of admon titles --- .../lib/docbook_compat/convert_admonition.rb | 4 ++-- resources/web/style/admonishment.pcss | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/resources/asciidoctor/lib/docbook_compat/convert_admonition.rb b/resources/asciidoctor/lib/docbook_compat/convert_admonition.rb index 188bf75c56467..7b4fb4a6ed55e 100644 --- a/resources/asciidoctor/lib/docbook_compat/convert_admonition.rb +++ b/resources/asciidoctor/lib/docbook_compat/convert_admonition.rb @@ -20,10 +20,10 @@ def convert_admonition_title_id(node) return node.id ? %() : nil unless node.title [ - '

', + '

', node.title, node.id ? %() : nil, - '

', + '

', ].compact.join end diff --git a/resources/web/style/admonishment.pcss b/resources/web/style/admonishment.pcss index 8fa20318458da..9ad227cd23838 100644 --- a/resources/web/style/admonishment.pcss +++ b/resources/web/style/admonishment.pcss @@ -84,14 +84,14 @@ } .admon_content { - margin-left: 80px; + margin-left: 100px; /* On page load, the heading level may be changed, but we always what to style it the same way */ - h2, h3, h4, h5, h6 { - margin: 3px 0; - font-size: 22px; - font-weight: 600; - a { font-weight: 600; } + .admon_title { + font-size: 16px; + margin-bottom: 4px; + font-weight: 700; + a { font-weight: 700; } } p:last-of-type { margin-bottom: 0em;