Add figcaption style

Fixes #302
This commit is contained in:
Alexandre Vicenzi 2022-08-31 21:53:20 +02:00
parent e31f5fe330
commit d6d537cb9d
2 changed files with 18 additions and 3 deletions

View file

@ -160,6 +160,11 @@ div.admonition.warning {
background-color: @admonition-warning-bg-color-dark-theme;
}
figure,
div.figure {
color: @figure-color-dark-theme;
figcaption {
color: @text-color-dark-theme;
}
}

View file

@ -712,21 +712,28 @@ div.admonition.warning {
background-color: @admonition-warning-bg-color;
}
figure,
div.figure {
font-size: 90%;
color: @figure-color;
figcaption {
margin-top: 0.5em;
text-align: center;
color: @text-color;
}
img {
vertical-align: middle;
line-height: 1;
display: inline;
}
p {
margin-top: 0;
margin-bottom: 0;
}
p.caption {
font-style: italic;
}
@ -736,14 +743,17 @@ div.figure {
}
}
figure.align-left,
div.figure.align-left {
text-align: left;
}
figure.align-center,
div.figure.align-center {
text-align: center;
}
figure.align-right,
div.figure.align-right {
text-align: right;
}