Redesign video player styling

This commit is contained in:
Mert Uyanık
2025-10-30 04:14:28 +03:00
parent 183cc65455
commit 1113ca891c
11 changed files with 265 additions and 511 deletions
+21 -25
View File
@@ -1,21 +1,16 @@
/* ============================================
PROGRESS BAR
Clean & Modern Design
============================================ */
.progress-bar {
position: relative;
width: 100%;
height: 20px;
cursor: pointer;
height: 24px;
display: flex;
align-items: center;
cursor: pointer;
}
.progress-track {
position: relative;
width: 100%;
height: 4px;
height: 3px;
background-color: var(--player-progress-bg);
border-radius: var(--player-radius-full);
overflow: hidden;
@@ -29,30 +24,28 @@
.progress-buffered {
position: absolute;
top: 0;
left: 0;
height: 100%;
inset: 0;
width: 0;
background-color: var(--player-progress-buffered);
transition: width 0.1s ease;
transition: width 0.12s ease;
}
.progress-played {
position: absolute;
top: 0;
left: 0;
height: 100%;
inset: 0;
width: 0;
background-color: var(--player-primary);
transition: width 0.1s ease;
display: flex;
align-items: center;
justify-content: flex-end;
transition: width 0.12s ease;
}
.progress-handle {
width: 12px;
height: 12px;
background-color: var(--player-primary);
border-radius: 50%;
background-color: var(--player-primary);
transform: scale(0);
transition: transform var(--player-transition-fast) ease;
margin-right: -6px;
@@ -65,13 +58,15 @@
.progress-tooltip {
position: absolute;
bottom: calc(100% + 10px);
bottom: calc(100% + 8px);
left: 0;
transform: translateX(-50%);
background-color: var(--player-bg-menu);
padding: 4px 10px;
background: var(--player-surface);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
color: var(--player-text);
padding: 6px 12px;
border-radius: var(--player-radius-sm);
font-size: 14px;
font-size: 12px;
font-weight: 500;
white-space: nowrap;
pointer-events: none;
@@ -84,13 +79,14 @@
top: 100%;
left: 50%;
transform: translateX(-50%);
border: 4px solid transparent;
border-top-color: var(--player-bg-menu);
border-width: 5px;
border-style: solid;
border-color: var(--player-surface) transparent transparent transparent;
}
@media (max-width: 640px) {
.progress-bar {
height: 24px;
height: 22px;
}
.progress-track {