Skip to content

Commit e68fbdd

Browse files
committed
allow block SVG image with no width specified to stetch to width of page
1 parent 1849327 commit e68fbdd

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

preview-src/index.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,9 @@ Ex nam suas nemore dignissim, vel apeirian democritum et.
295295
.Antora is a multi-repo documentation site generator
296296
image::multirepo-ssg.svg[Multirepo SSG,3000,opts=interactive]
297297

298+
.Let's see that again, but a little smaller
299+
image::multirepo-ssg.svg[Multirepo SSG,300,role=text-left]
300+
298301
Make the switch today!
299302

300303
.Full Circle with Jake Blauvelt

src/css/doc.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,16 +519,29 @@
519519
align-items: center;
520520
}
521521

522+
.doc .imageblock .content {
523+
align-self: stretch;
524+
text-align: center;
525+
}
526+
522527
.doc .imageblock.text-left,
523528
.doc .videoblock.text-left {
524529
align-items: flex-start;
525530
}
526531

532+
.doc .imageblock.text-left .content {
533+
text-align: left;
534+
}
535+
527536
.doc .imageblock.text-right,
528537
.doc .videoblock.text-right {
529538
align-items: flex-end;
530539
}
531540

541+
.doc .imageblock.text-right .content {
542+
text-align: right;
543+
}
544+
532545
.doc .imageblock img,
533546
.doc .imageblock object,
534547
.doc .imageblock svg,

0 commit comments

Comments
 (0)