Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Commit

Permalink
fix(Bootsrap, Latex, RPNG): Prevent images breaking out of containers
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-ketch committed Mar 9, 2021
1 parent b7ec9f3 commit 9018c40
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/themes/bootstrap/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@

max-width: 70rem;

:--ImageObject {
max-width: 100%;
height: auto;
}

:--authors :--Organization :--members,
:--authors {
/* Use Bootstrap's `list-inline` class */
Expand Down
5 changes: 5 additions & 0 deletions src/themes/latex/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@
padding: 0;
}

:--ImageObject {
max-width: 100%;
height: auto;
}

> :--authors :--author {
/* latexcss has a few classes, one of which is for authors of the
* article, so use that... */
Expand Down
5 changes: 5 additions & 0 deletions src/themes/rpng/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ body {
padding: 0;
}

:--ImageObject {
max-width: 100%;
height: auto;
}

:--CodeChunk,
:--CodeExpression,
:--MathBlock,
Expand Down

0 comments on commit 9018c40

Please sign in to comment.