Skip to content

Commit

Permalink
Fix play button aspect ratio in release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jocmp committed Dec 22, 2024
1 parent 975fcd8 commit 45dc044
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions article_forge/style/stylesheet.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,16 @@ pre {
padding: 1em;
}

img,
figure,
video,
div,
object {
max-width: 100%;
height: auto;
margin: 0 auto;
}

.iframe-embed {
display: block;
position: relative;
Expand All @@ -121,24 +131,14 @@ pre {
top: 0;
margin: auto;
width: 4rem;
height: 4em !important;
aspect-ratio: 1;
background-image: url("/assets/play-arrow.svg");
background-repeat: no-repeat;
background-size: 3em;
background-position: center;
}
}

img,
figure,
video,
div,
object {
max-width: 100%;
height: auto !important;
margin: 0 auto;
}

iframe {
max-width: 100%;
margin: 0 auto;
Expand Down
2 changes: 1 addition & 1 deletion capy/src/main/assets/stylesheet.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 45dc044

Please sign in to comment.