Added support for code within annotations
This commit is contained in:
parent
624491bce1
commit
13c0b0d1fc
1 changed files with 21 additions and 46 deletions
|
@ -575,6 +575,8 @@ ul.social {
|
||||||
// Admonition
|
// Admonition
|
||||||
div.admonition {
|
div.admonition {
|
||||||
margin-bottom: 2.5rem;
|
margin-bottom: 2.5rem;
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 0.5em 1.25em 1.25em 1.25em;
|
||||||
|
|
||||||
p.admonition-title::before {
|
p.admonition-title::before {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
@ -585,24 +587,15 @@ div.admonition {
|
||||||
}
|
}
|
||||||
|
|
||||||
p.admonition-title {
|
p.admonition-title {
|
||||||
border-radius: 4px 4px 0 0;
|
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
line-height: 1.25em;
|
line-height: 1.25em;
|
||||||
padding: .5em 1em;
|
|
||||||
margin-bottom: 1.25em;
|
margin-bottom: 1.25em;
|
||||||
margin-top: inherit;
|
margin-top: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
p, div {
|
p, div, pre {
|
||||||
border-radius: 0 0 4px 4px;
|
|
||||||
padding: 1.25em 1.25em 0 1.25em;
|
|
||||||
margin-top: -1.25em;
|
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
p.last, div.last {
|
|
||||||
padding-bottom: 1.25em;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div.admonition.attention {
|
div.admonition.attention {
|
||||||
|
@ -610,10 +603,8 @@ div.admonition.attention {
|
||||||
content: @admonition-attention-icon;
|
content: @admonition-attention-icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
p, div {
|
|
||||||
color: @admonition-attention-color;
|
color: @admonition-attention-color;
|
||||||
background-color: @admonition-attention-bg-color;
|
background-color: @admonition-attention-bg-color;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div.admonition.caution {
|
div.admonition.caution {
|
||||||
|
@ -621,10 +612,8 @@ div.admonition.caution {
|
||||||
content: @admonition-caution-icon;
|
content: @admonition-caution-icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
p, div {
|
|
||||||
color: @admonition-caution-color;
|
color: @admonition-caution-color;
|
||||||
background-color: @admonition-caution-bg-color;
|
background-color: @admonition-caution-bg-color;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div.admonition.danger {
|
div.admonition.danger {
|
||||||
|
@ -632,10 +621,8 @@ div.admonition.danger {
|
||||||
content: @admonition-danger-icon;
|
content: @admonition-danger-icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
p, div {
|
|
||||||
color: @admonition-danger-color;
|
color: @admonition-danger-color;
|
||||||
background-color: @admonition-danger-bg-color;
|
background-color: @admonition-danger-bg-color;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div.admonition.error {
|
div.admonition.error {
|
||||||
|
@ -643,10 +630,8 @@ div.admonition.error {
|
||||||
content: @admonition-error-icon;
|
content: @admonition-error-icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
p, div {
|
|
||||||
color: @admonition-error-color;
|
color: @admonition-error-color;
|
||||||
background-color: @admonition-error-bg-color;
|
background-color: @admonition-error-bg-color;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div.admonition.hint {
|
div.admonition.hint {
|
||||||
|
@ -654,10 +639,8 @@ div.admonition.hint {
|
||||||
content: @admonition-hint-icon;
|
content: @admonition-hint-icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
p, div {
|
|
||||||
color: @admonition-hint-color;
|
color: @admonition-hint-color;
|
||||||
background-color: @admonition-hint-bg-color;
|
background-color: @admonition-hint-bg-color;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div.admonition.important {
|
div.admonition.important {
|
||||||
|
@ -665,10 +648,8 @@ div.admonition.important {
|
||||||
content: @admonition-important-icon;
|
content: @admonition-important-icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
p, div {
|
|
||||||
color: @admonition-important-color;
|
color: @admonition-important-color;
|
||||||
background-color: @admonition-important-bg-color;
|
background-color: @admonition-important-bg-color;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div.admonition.note {
|
div.admonition.note {
|
||||||
|
@ -676,10 +657,8 @@ div.admonition.note {
|
||||||
content: @admonition-note-icon;
|
content: @admonition-note-icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
p, div {
|
|
||||||
color: @admonition-note-color;
|
color: @admonition-note-color;
|
||||||
background-color: @admonition-note-bg-color;
|
background-color: @admonition-note-bg-color;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div.admonition.tip {
|
div.admonition.tip {
|
||||||
|
@ -687,10 +666,8 @@ div.admonition.tip {
|
||||||
content: @admonition-tip-icon;
|
content: @admonition-tip-icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
p, div {
|
|
||||||
color: @admonition-tip-color;
|
color: @admonition-tip-color;
|
||||||
background-color: @admonition-tip-bg-color;
|
background-color: @admonition-tip-bg-color;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
div.admonition.warning {
|
div.admonition.warning {
|
||||||
|
@ -698,8 +675,6 @@ div.admonition.warning {
|
||||||
content: @admonition-warning-icon;
|
content: @admonition-warning-icon;
|
||||||
}
|
}
|
||||||
|
|
||||||
p, div {
|
|
||||||
color: @admonition-warning-color;
|
color: @admonition-warning-color;
|
||||||
background-color: @admonition-warning-bg-color;
|
background-color: @admonition-warning-bg-color;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue