Skip to content

Commit

Permalink
add support for align=left and align=right on block image
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Nov 25, 2023
1 parent ef45b83 commit fc1b0db
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion preview-src/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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 + 中文
Expand Down
10 changes: 10 additions & 0 deletions src/css/doc.css
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fc1b0db

Please sign in to comment.