Skip to content

Commit

Permalink
Tweak video player styles.
Browse files Browse the repository at this point in the history
  • Loading branch information
croxton committed Dec 3, 2023
1 parent 781f6a3 commit cf04b23
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -173,21 +173,9 @@ h2 {
.c-video {
position: relative;
width: 50%;
--ratio: 16/9;
background: #999;
}

.c-video::after {
clear: both;
content: '';
display: block;
}

.c-video::before {
content: '';
display: block;
float: left;
padding-top: calc(100% / (var(--ratio, 1)));
overflow: hidden;
background: #eeeeee;
aspect-ratio: 16/9;
}

.c-video + .c-video {
Expand Down

0 comments on commit cf04b23

Please sign in to comment.