yt-custom-player
Version:
> A library for styling and customizing the YouTube player in React.
44 lines (40 loc) • 932 B
CSS
.progress-bar-container {
width: 100%;
height: clamp(10px, 1.5vw, 20px);
border-top: clamp(4px, 0.5vw, 8px) solid rgba(255, 255, 255, 0);
border-bottom: clamp(4px, 0.5vw, 8px) solid rgba(255, 255, 255, 0);
cursor: pointer;
position: relative;
display: flex;
box-sizing: border-box;
}
.progress-bar-background {
width: 100%;
height: 100%;
background-color: #ffffff45;
position: relative;
border-radius: clamp(5px, 1vw, 10px);
overflow: hidden;
}
.progress-bar {
height: 100%;
transition: width 0.2s ease;
background-color: #00c8ff;
position: absolute;
top: 0;
left: 0;
}
/* 🔹 Tooltip atualizado */
.progress-tooltip {
position: absolute;
bottom: 150%;
transform: translateX(-50%);
background: rgba(0, 0, 0, 0.8);
color: white;
padding: 5px 8px;
font-size: 12px;
border-radius: 4px;
white-space: nowrap;
pointer-events: none;
transition: opacity 0.1s ease-in-out;
}