Skip to content

Commit 284484e

Browse files
change style of admon titles
1 parent 47d9fe1 commit 284484e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

resources/asciidoctor/lib/docbook_compat/convert_admonition.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ def convert_admonition_title_id(node)
2020
return node.id ? %(<a id="#{node.id}"></a>) : nil unless node.title
2121

2222
[
23-
'<h3>',
23+
'<p class="admon_title">',
2424
node.title,
2525
node.id ? %(<a id="#{node.id}"></a>) : nil,
26-
'</h3>',
26+
'</p>',
2727
].compact.join
2828
end
2929

resources/web/style/admonishment.pcss

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,14 @@
8484
}
8585

8686
.admon_content {
87-
margin-left: 80px;
87+
margin-left: 100px;
8888
/* On page load, the heading level may be changed,
8989
but we always what to style it the same way */
90-
h2, h3, h4, h5, h6 {
91-
margin: 3px 0;
92-
font-size: 22px;
93-
font-weight: 600;
94-
a { font-weight: 600; }
90+
.admon_title {
91+
font-size: 16px;
92+
margin-bottom: 4px;
93+
font-weight: 700;
94+
a { font-weight: 700; }
9595
}
9696
p:last-of-type {
9797
margin-bottom: 0em;

0 commit comments

Comments
 (0)