Skip to content

Commit 4470d20

Browse files
committed
adjust vertical alignment on block and inline images
1 parent 6e2bada commit 4470d20

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/css/doc.css

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -387,14 +387,16 @@
387387
align-items: center;
388388
}
389389

390-
.doc .imageblock img {
391-
display: block;
392-
}
393-
394390
.doc .imageblock img,
395391
.doc .image > img {
392+
display: inline-block;
396393
height: auto;
397394
max-width: 100%;
395+
vertical-align: middle;
396+
}
397+
398+
.doc .image:not(.left):not(.right) > img {
399+
margin-top: -0.2em;
398400
}
399401

400402
#preamble .abstract blockquote {

0 commit comments

Comments
 (0)