refactor: rewrite video player

This commit is contained in:
Prayag Prajapati committed 2025-06-27 16:55:17 +05:30
1 parent 0f5482627a
commit 7b0b22b611
34 files changed
+3766 -3007

No files matched your search

File diff suppressed because it is too large. Load diff
-61
View File
@@ -66,65 +66,4 @@ video {
&::cue(i) {
text-shadow: 0 2px 10px rgb(0 0 0 / 0.8);
}
}
.video-player {
background: black;
position: absolute;
width: 100vw;
height: 100vh;
top: 0;
left: 0;
&-osd {
position: absolute;
width: 100vw;
height: 100vh;
top: 0;
left: 0;
cursor: none;
display: flex;
flex-direction: column;
align-self: stretch;
justify-content: space-between;
padding: 1em 2em;
background: linear-gradient(to top, rgb(0 0 0 / 0.7) 5vh, transparent 26vh 90vh, rgb(0 0 0 / 0.7));
&.hovering {
cursor: default;
}
&-controls {
&-progress {
display: flex;
flex-direction: column;
gap: 0.2em;
align-items: stretch;
justify-content: center;
margin-bottom: 0.5em;
&-text {
display: flex;
align-items: stretch;
justify-content: space-between;
}
&-bubble{
width: 14em;
top: 0;
left: 0;
transform-origin:bottom center;
transform: translate(var(--left, 0), var(--top, 0));
position: fixed;
}
}
&-buttons {
display: flex;
gap: 0.4em;
align-items: center;
}
}
.MuiSlider-valueLabel {
padding: 0;
background: transparent;
overflow: hidden;
border-radius: $border-radius-default;
border: 1.2px solid rgb(255 255 255 / 0.1);
}
}
}