Skip to content

Commit

Permalink
change style of admon titles
Browse files Browse the repository at this point in the history
  • Loading branch information
colleenmcginnis committed Nov 4, 2024
1 parent 47d9fe1 commit 284484e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ def convert_admonition_title_id(node)
return node.id ? %(<a id="#{node.id}"></a>) : nil unless node.title

[
'<h3>',
'<p class="admon_title">',
node.title,
node.id ? %(<a id="#{node.id}"></a>) : nil,
'</h3>',
'</p>',
].compact.join
end

Expand Down
12 changes: 6 additions & 6 deletions resources/web/style/admonishment.pcss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 284484e

Please sign in to comment.