Skip to content

Commit

Permalink
Adjust margins in beamer style
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgio committed Jul 23, 2024
1 parent 2318204 commit c742cef
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class QuarkdownHtmlNodeRenderer(context: Context) : BaseHtmlNodeRenderer(context
}
}

override fun visit(node: Clipped) = div("clip-${node.clip.asCSS}", node.children)
override fun visit(node: Clipped) = div("clip clip-${node.clip.asCSS}", node.children)

override fun visit(node: Box) =
div("box") {
Expand Down
13 changes: 13 additions & 0 deletions core/src/main/resources/render/theme/layout/beamer.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,19 @@ table tr:last-child td {
width: 100% !important;
}

.reveal img {
max-width: 100% !important;
max-height: 100% !important;
}

.stack > p, .clip > p {
margin: 0;
}

.clip img {
margin: 0 !important;
}

.box {
width: 100%;
margin: 12px;
Expand Down
2 changes: 1 addition & 1 deletion core/src/test/resources/rendering/quarkdown/clipped.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div class="clip-circle">
<div class="clip clip-circle">
<p>
Foo
<br />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,13 +346,13 @@ class FullPipelineTest {
"<h2>Quarkdown</h2><p>A cool language</p>" +
"</div>" +
"<div style=\"justify-content: flex-start; align-items: center; gap: 1.0cm;\" class=\"stack stack-vertical\">" +
"<div class=\"clip-circle\">" +
"<div class=\"clip clip-circle\">" +
"<p><img src=\"img1.png\" alt=\"\" /></p>" +
"</div>" +
"<div class=\"clip-circle\">" +
"<div class=\"clip clip-circle\">" +
"<p><img src=\"img2.png\" alt=\"\" /></p>" +
"</div>" +
"<div class=\"clip-circle\">" +
"<div class=\"clip clip-circle\">" +
"<p><img src=\"img3.png\" alt=\"\" /></p>" +
"</div>" +
"</div>" +
Expand Down

0 comments on commit c742cef

Please sign in to comment.