react-app-shell
Version:
react打包脚本和example, 这里的版本请忽略
61 lines (54 loc) • 977 B
text/less
.imgBox {
position: relative;
width: 526px;
height: 290px;
.videoImage {
width: 526px;
height: 290px;
//width: 100%;
//height: 100%;
border-radius: 40px;
}
.playButton {
position: absolute;
z-index: 0;
width: 108px;
height: 108px;
border: 3px solid #fff;
border-radius: 50%;
top: 50%;
left: 50%;
margin-left: -54px;
margin-top: -54px;
}
}
.videoBox {
position: fixed;
width: 100%;
height: 100%;
bottom: 0;
left: 0;
z-index: 999;
background-color: rgba(0, 0, 0, 0.8);
.close {
z-index: 1;
cursor: pointer;
position: absolute;
top: 10px;
right: 20px;
font-size: 70px;
line-height: 70px;
color: rgba(244, 244, 244, 0.7);
}
.video {
position: absolute;
top: 30%;
@media screen and (orientation: landscape) {
//横屏
left: 50%;
top: 50%;
//margin-left: -188px;
transform: translate(-50%, -50%);
}
}
}