@zhsz/cool-design-dv
Version:
46 lines (44 loc) • 908 B
CSS
/* BEM support Func
-------------------------- */
/* Break-points
-------------------------- */
/* Scrollbar
-------------------------- */
/* Placeholder
-------------------------- */
/* BEM
-------------------------- */
.my-webrtcPlayer {
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.3);
position: relative;
line-height: 0;
}
.my-webrtcPlayer__error {
position: absolute;
top: 50%;
left: 50%;
color: red;
transform: translate(-50%, -50%);
}
.my-webrtcPlayer__fullscreen {
transition: opacity 0.1s;
position: absolute;
z-index: 9999;
line-height: 0;
top: 10px;
right: 10px;
background: rgba(0, 0, 0, 0.3);
padding: 4px;
border-radius: 3px;
color: rgba(255, 255, 255, 0.4);
opacity: 0;
cursor: pointer;
display: block;
align-items: center;
justify-content: center;
}
.my-webrtcPlayer:hover .my-webrtcPlayer__fullscreen {
opacity: 1;
}