Skip to content

Commit

Permalink
Merge pull request #6062 from quarto-dev/bugfix/code-layout-centered
Browse files Browse the repository at this point in the history
force left-align for code in layout
  • Loading branch information
dragonstyle authored Jul 11, 2023
2 parents 46b15c7 + 75875f4 commit 2b50adb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/resources/formats/html/_quarto-rules.scss
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ figure .quarto-layout-row figure figcaption {
.quarto-figure-right > figure > div /* for mermaid and dot diagrams */ {
text-align: right;
}

.quarto-figure > figure > div.cell-annotation,
.quarto-figure > figure > div code {
text-align: left; /* override align center for code blocks */
}

figure > p:empty {
display: none;
}
Expand Down

0 comments on commit 2b50adb

Please sign in to comment.