nexora / frontend /src /components /MoviePlayer.css
ChandimaPrabath's picture
0.0.2 Alpha player
2a108da
raw
history blame
3.98 kB
.video-player-container {
position: relative;
max-width: 100dvw;
height: 100dvh;
margin: 0;
padding: 0;
background-color: #000;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
display: flex;
}
.video-title {
color: #d5d6d7;
display: flex;
align-items: center;
text-align: left;
padding-bottom: 50px;
padding: 20px;
font-size: 1.5em;
font-weight: bold;
background-image: linear-gradient(#0e0f19cb 50%, transparent 100%);
}
.video-element {
width: 100%;
height: auto;
display: block;
}
.player-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100dvh;
display: flex;
flex-direction: column;
justify-content: space-between;
transition: opacity 0.5s;
z-index: 100;
}
.player-overlay.hide {
opacity: 0;
pointer-events: none;
}
.player-overlay.show {
opacity: 1;
}
.player-controls-top {
display: flex;
flex-direction: row;
width: 95dvw;
justify-content: center;
align-items: center;
}
.player-controls-down {
display: flex;
flex-direction: row;
width: 90dvw;
justify-content: center;
align-items: center;
}
.player-controls-left {
width: 100%;
display: flex;
justify-content: left;
}
.player-controls-right {
width: 100%;
display: flex;
justify-content: right;
}
.controls {
display: flex;
justify-content: center;
align-items: center;
padding: 10px;
padding-top: 50px;
background-image: linear-gradient(transparent 5%, #0e0f19cb 60%);
bottom: 0;
position: relative;
flex-direction: column;
}
.current-time,
.duration {
color: white;
}
.play-pause-btn,
.control-btn {
color: #4237b8;
border-radius: 10px;
padding: 10px;
cursor: pointer;
font-size: 1em;
transition: background-color 0.3s;
}
.play-pause-btn:hover,
.control-btn:hover {
color: #5f6293;
}
.control-btn:disabled {
color: #232435;
cursor: not-allowed;
}
.progress-bar,
.volume-control {
margin: 0 5px;
}
.progress-bar {
width: 85%;
cursor: pointer;
}
.volume-control {
width: 100px;
cursor: pointer;
}
.download-btn {
color: white;
}
.buffering-indicator {
color: white;
background-color: #00000069;
position: fixed;
top: 0;
width: 100dvw;
height: 100dvh;
display: flex;
justify-content: center;
align-items: center;
}
.buffering-indicator .position-fix {
transform: translate(-50%, -50%);
}
.context-menu {
position: absolute;
color: white;
background: rgb(29, 31, 57);
border: 1px solid #3640f7;
border-radius: 10px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
z-index: 1000;
padding: 10px;
}
.context-menu ul {
list-style: none;
margin: 0;
padding: 0;
}
.context-menu li {
padding: 5px 10px;
cursor: pointer;
border-radius: 5px;
}
.context-menu li:hover {
background-color: #5755a2;
}
/********** Range Input Styles **********/
/*Range Reset*/
input[type="range"] {
-webkit-appearance: none;
appearance: none;
background: transparent;
cursor: pointer;
}
/* Removes default focus */
input[type="range"]:focus {
outline: none;
}
/***** Chrome, Safari, Opera and Edge Chromium styles *****/
/* slider track */
input[type="range"]::-webkit-slider-runnable-track {
background-color: #403f4f;
border-radius: 0.5rem;
height: 0.5rem;
}
/* slider thumb */
input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none; /* Override default look */
appearance: none;
margin-top: -6px; /* Centers thumb on the track */
/*custom styles*/
background-color: #4237b8;
height: 1.2rem;
width: 0.8rem;
border-radius: 10px;
}
/******** Firefox styles ********/
/* slider track */
input[type="range"]::-moz-range-track {
background-color: #403f4f;
border-radius: 0.5rem;
height: 0.5rem;
}
/* slider thumb */
input[type="range"]::-moz-range-thumb {
border: none; /*Removes extra border that FF applies*/
/*custom styles*/
background-color: #4237b8;
height: 1.2rem;
width: 0.8rem;
border-radius: 10px;
}