浏览代码

Unrestrain non-square video

master
Roderic Day 5 年前
父节点
当前提交
c0f2923e51
共有 1 个文件被更改,包括 9 次插入2 次删除
  1. +9
    -2
      pico.css

+ 9
- 2
pico.css 查看文件

@@ -74,11 +74,18 @@ body {
}
.video-container video {
background-color: lightsteelblue;
object-fit: cover;
height: 100%;
width: 100%;
}
.video-container.square video {
object-fit: cover;
.video-container:not(.square) {
width: unset !important;
overflow: scroll;
}
.video-container:not(.square) video {
object-fit: unset;
height: unset;
width: unset;
}
.video-container.mirror video {
transform: scaleX(-1);

正在加载...
取消
保存