Browse Source

Equally-sized videos

master
Roderic Day 5 years ago
parent
commit
0e0b8f7a79
1 changed files with 11 additions and 2 deletions
  1. +11
    -2
      pico.css

+ 11
- 2
pico.css View File

padding-left: var(--pad); padding-left: var(--pad);
} }
.video-container { .video-container {
float: left;
display: inline-block;
position: relative;
height: 120px;
width: 120px;
} }
video { video {
width: 120px;
background-color: black; background-color: black;
position: absolute;
top: 0;
left: 0;
z-index: -100;
object-fit: cover;
width: 100%;
height: 100%;
} }
video.mirrored { video.mirrored {
transform: scaleX(-1); transform: scaleX(-1);

Loading…
Cancel
Save