Added support for code within annotations

This commit is contained in:
Sumner Evans 2020-04-15 08:09:33 -06:00
parent 624491bce1
commit 13c0b0d1fc
No known key found for this signature in database
GPG key ID: 8904527AB50022FD

View file

@ -575,6 +575,8 @@ ul.social {
// Admonition
div.admonition {
margin-bottom: 2.5rem;
border-radius: 4px;
padding: 0.5em 1.25em 1.25em 1.25em;
p.admonition-title::before {
display: inline-block;
@ -585,24 +587,15 @@ div.admonition {
}
p.admonition-title {
border-radius: 4px 4px 0 0;
font-weight: 600;
line-height: 1.25em;
padding: .5em 1em;
margin-bottom: 1.25em;
margin-top: inherit;
}
p, div {
border-radius: 0 0 4px 4px;
padding: 1.25em 1.25em 0 1.25em;
margin-top: -1.25em;
p, div, pre {
margin-bottom: 0;
}
p.last, div.last {
padding-bottom: 1.25em;
}
}
div.admonition.attention {
@ -610,96 +603,78 @@ div.admonition.attention {
content: @admonition-attention-icon;
}
p, div {
color: @admonition-attention-color;
background-color: @admonition-attention-bg-color;
}
}
div.admonition.caution {
p.admonition-title::before {
content: @admonition-caution-icon;
}
p, div {
color: @admonition-caution-color;
background-color: @admonition-caution-bg-color;
}
}
div.admonition.danger {
p.admonition-title::before {
content: @admonition-danger-icon;
}
p, div {
color: @admonition-danger-color;
background-color: @admonition-danger-bg-color;
}
}
div.admonition.error {
p.admonition-title::before {
content: @admonition-error-icon;
}
p, div {
color: @admonition-error-color;
background-color: @admonition-error-bg-color;
}
}
div.admonition.hint {
p.admonition-title::before {
content: @admonition-hint-icon;
}
p, div {
color: @admonition-hint-color;
background-color: @admonition-hint-bg-color;
}
}
div.admonition.important {
p.admonition-title::before {
content: @admonition-important-icon;
}
p, div {
color: @admonition-important-color;
background-color: @admonition-important-bg-color;
}
}
div.admonition.note {
p.admonition-title::before {
content: @admonition-note-icon;
}
p, div {
color: @admonition-note-color;
background-color: @admonition-note-bg-color;
}
}
div.admonition.tip {
p.admonition-title::before {
content: @admonition-tip-icon;
}
p, div {
color: @admonition-tip-color;
background-color: @admonition-tip-bg-color;
}
}
div.admonition.warning {
p.admonition-title::before {
content: @admonition-warning-icon;
}
p, div {
color: @admonition-warning-color;
background-color: @admonition-warning-bg-color;
}
}