yt-custom-player
Version:
> A library for styling and customizing the YouTube player in React.
45 lines (37 loc) • 770 B
CSS
.controls-container {
position: absolute;
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
padding: clamp(10px, 1vw, 20px) 0;
z-index: 100;
}
.controls-container.top {
background: linear-gradient(to bottom, rgb(0, 0, 0), rgba(255, 255, 255, 0));
top: 0;
}
.controls-container.bottom {
background: linear-gradient(to top, rgb(0, 0, 0), rgba(255, 255, 255, 0));
bottom: 0;
}
.left-controls, .right-controls {
display: flex;
align-items: center;
}
.left-controls {
margin-left: 10px;
}
.right-controls {
margin-right: 10px;
}
.progress-bar-wrapper {
display: block;
flex-grow: 1;
margin: 0 clamp(3px, 1vw, 10px);
}
.icon-size {
width: clamp(15px, 1.2vw, 100px);
height: auto;
color: white;
}