Skip to content

Commit

Permalink
markdown: put youtube embeds at 100% width
Browse files Browse the repository at this point in the history
  • Loading branch information
rr- committed Nov 28, 2024
1 parent 31c300d commit 4b7338c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,3 @@
-webkit-box-orient: vertical;
margin-bottom: 0.5rem;
}

.embedWrapper {
--video-embed-width: 100%;
--video-embed-aspect-ratio: 16 / 9;
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
flex-direction: column;
margin-bottom: 1rem;
background: var(--box-content-bg-color);

--video-embed-width: 100%;
--video-embed-aspect-ratio: 16 / 9;
}

.content {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.embed {
width: var(--video-embed-width, 640px);
width: var(--video-embed-width, 100%);
max-width: 100%;
aspect-ratio: var(--video-embed-aspect-ratio, 16 / 9);
border: 0;
Expand Down

0 comments on commit 4b7338c

Please sign in to comment.