Skip to content

Commit

Permalink
Fix caption alignment in figures.
Browse files Browse the repository at this point in the history
Close juba#100
  • Loading branch information
juba committed Mar 22, 2021
1 parent 78a09f9 commit 07c15fa
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion inst/templates/downcute/downcute.css
Original file line number Diff line number Diff line change
Expand Up @@ -1048,14 +1048,14 @@ button.code-folding-btn {
.page-content .figure {
margin: 5px 10px 30px 0px;
display: table;
text-align: center;
}

.page-content .figure img {
margin-bottom: 5px;
}

.page-content .figure p.caption {
text-align: center;
font-style: italic;
font-size: 90%;
margin-top: 0;
Expand Down
9 changes: 5 additions & 4 deletions inst/templates/html_clean/clean.css
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,17 @@ img.image-lb {
.figure {
margin: 5px 10px 30px 0px;
display: table;
text-align: center;
}

.figure img {
margin-bottom: 5px;
}

.figure p.caption {
text-align: center;
font-style: italic;
font-size: 90%;
p.caption {
margin: 0 10px 0 10px;
font-style: italic;
font-size: 90%;
}

.mfp-figure {
Expand Down
4 changes: 2 additions & 2 deletions inst/templates/html_docco/docco.css
Original file line number Diff line number Diff line change
Expand Up @@ -139,17 +139,17 @@ img.image-lb {
.figure {
margin: 5px auto 30px auto;
display: table;
text-align: center;
}

.figure img {
margin-bottom: 5px;
}

.page .figure p.caption {
text-align: center;
margin: 10px 0px;
font-style: italic;
font-size: 80%;
margin: 10px 0px;
}

.mfp-figure {
Expand Down
2 changes: 1 addition & 1 deletion inst/templates/readthedown/readthedown.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,14 @@ img.image-lb {
.figure {
margin: 5px 10px 30px 0px;
display: table;
text-align: center;
}

.figure img {
margin-bottom: 5px;
}

.figure p.caption {
text-align: center;
font-style: italic;
font-size: 90%;
}
Expand Down

0 comments on commit 07c15fa

Please sign in to comment.