restyle figures and captions for more flexibility

This commit is contained in:
Brian S. Stephan 2022-04-14 06:05:29 -05:00
parent d07260331b
commit 9ce8e9a1cc
Signed by: bss
GPG Key ID: 3DE06D3180895FCB
3 changed files with 36 additions and 8 deletions

View File

@ -140,11 +140,25 @@ img {
}
figure {
max-width: 400px;
padding: 5px;
margin: 10px;
margin-top: 0;
margin: 0;
margin-bottom: 5px;
text-align: center;
max-width: 30%;
min-width: 10em;
display: inline-block;
}
figure.right {
float: right;
margin-left: 10px;
display: block;
}
figure.left {
float: left;
margin-right: 10px;
display: block;
}
figure img {
@ -153,12 +167,8 @@ figure img {
}
figcaption {
font-family: "Times New Roman", serif;
color: #777777;
text-align: center;
font-style: italic;
line-height: 1.3em;
margin-top: 5px;
font-size: 0.9em;
}
.footnote {

View File

@ -62,3 +62,12 @@ blockquote {
background-color: rgba(255, 255, 255, 0.1);
border: 1px solid #333;
}
figure {
background-color: rgba(255, 255, 255, 0.1);
border: 1px solid #333;
}
figcaption {
color: #AAAAAA;
}

View File

@ -62,3 +62,12 @@ blockquote {
background-color: rgba(0, 0, 0, 0.1);
border: 1px solid #CCC;
}
figure {
background-color: rgba(0, 0, 0, 0.1);
border: 1px solid #CCC;
}
figcaption {
color: #666666;
}