From fc1b0db223950d8153fd313f03a5f44f9fae3215 Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Thu, 26 May 2022 01:18:29 -0600 Subject: [PATCH] add support for align=left and align=right on block image --- preview-src/index.adoc | 2 +- src/css/doc.css | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/preview-src/index.adoc b/preview-src/index.adoc index e8e054f..bdae1cd 100644 --- a/preview-src/index.adoc +++ b/preview-src/index.adoc @@ -295,7 +295,7 @@ image::multirepo-ssg.svg[Multirepo SSG,3000,opts=interactive] Make the switch today! .Full Circle with Jake Blauvelt -video::300817511[vimeo,600,300] +video::300817511[vimeo,640,360,align=left] [#english+中文] == English + 中文 diff --git a/src/css/doc.css b/src/css/doc.css index 0efc03d..7385490 100644 --- a/src/css/doc.css +++ b/src/css/doc.css @@ -513,6 +513,16 @@ align-items: center; } +.doc .imageblock.text-left, +.doc .videoblock.text-left { + align-items: flex-start; +} + +.doc .imageblock.text-right, +.doc .videoblock.text-right { + align-items: flex-end; +} + .doc .imageblock img, .doc .imageblock object, .doc .imageblock svg,