182 lines
3.2 KiB
CSS
182 lines
3.2 KiB
CSS
|
.plyx-player {
|
||
|
width: 100%;
|
||
|
display: inline-flex;
|
||
|
}
|
||
|
.video-container {
|
||
|
position: relative;
|
||
|
display: flex;
|
||
|
flex-direction: column;
|
||
|
justify-content: center;
|
||
|
}
|
||
|
.plyx-player-controls {
|
||
|
display: inline-flex;
|
||
|
right: 0;
|
||
|
left: 0;
|
||
|
padding: 10px;
|
||
|
position: absolute;
|
||
|
bottom: 0;
|
||
|
transition: all 0.2s ease;
|
||
|
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5));
|
||
|
flex-direction: inherit;
|
||
|
}
|
||
|
.row-1 {
|
||
|
display: flex;
|
||
|
justify-content: space-between;
|
||
|
width: 100%;
|
||
|
}
|
||
|
.row-1-start {
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
}
|
||
|
.row-1-end {
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
}
|
||
|
button {
|
||
|
aspect-ratio: 1;
|
||
|
height: 32px;
|
||
|
width: 32px;
|
||
|
color: white;
|
||
|
background-color: transparent;
|
||
|
border: none;
|
||
|
margin: 0px 6px;
|
||
|
}
|
||
|
button:hover {
|
||
|
background: rgba(44, 44, 44, 0.6);
|
||
|
border-radius: 6px;
|
||
|
}
|
||
|
#volume-button svg {
|
||
|
aspect-ratio: 1;
|
||
|
height: 32px;
|
||
|
width: 32px;
|
||
|
fill: white;
|
||
|
padding: 3px 0px 0px 0px;
|
||
|
}
|
||
|
.video-controls.hide {
|
||
|
opacity: 0;
|
||
|
pointer-events: none;
|
||
|
}
|
||
|
.video-progress {
|
||
|
position: relative;
|
||
|
height: 6.4px;
|
||
|
margin: 6px -10px -8px -10px;
|
||
|
}
|
||
|
progress {
|
||
|
-webkit-appearance: none;
|
||
|
-moz-appearance: none;
|
||
|
appearance: none;
|
||
|
border-radius: 2px;
|
||
|
width: 100%;
|
||
|
height: 8.4px;
|
||
|
pointer-events: none;
|
||
|
position: absolute;
|
||
|
top: 0;
|
||
|
}
|
||
|
progress::-webkit-progress-bar {
|
||
|
background-color: #474545;
|
||
|
border-radius: 2px;
|
||
|
}
|
||
|
progress::-webkit-progress-value {
|
||
|
background: red;
|
||
|
border-radius: 2px;
|
||
|
}
|
||
|
progress::-moz-progress-bar {
|
||
|
border: none;
|
||
|
background: #ff7e7e;
|
||
|
}
|
||
|
.seek {
|
||
|
position: absolute;
|
||
|
top: 0;
|
||
|
width: 100%;
|
||
|
cursor: pointer;
|
||
|
margin: 0;
|
||
|
}
|
||
|
.seek:hover + .seek-tooltip {
|
||
|
display: block;
|
||
|
}
|
||
|
.seek-tooltip {
|
||
|
display: none;
|
||
|
position: absolute;
|
||
|
top: -50px;
|
||
|
margin-left: -20px;
|
||
|
font-size: 12px;
|
||
|
padding: 3px;
|
||
|
content: attr(data-title);
|
||
|
font-weight: bold;
|
||
|
color: #fff;
|
||
|
background-color: rgba(0, 0, 0, 0.6);
|
||
|
}
|
||
|
input[type=range] {
|
||
|
-webkit-appearance: none;
|
||
|
-moz-appearance: none;
|
||
|
height: 8.4px;
|
||
|
background: transparent;
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
input[type=range]:focus {
|
||
|
outline: none;
|
||
|
}
|
||
|
input[type=range]:focus::-webkit-slider-runnable-track {
|
||
|
background: transparent;
|
||
|
}
|
||
|
input[type=range]:focus::-moz-range-track {
|
||
|
outline: none;
|
||
|
}
|
||
|
input[type=range]::-webkit-slider-runnable-track {
|
||
|
width: 100%;
|
||
|
cursor: pointer;
|
||
|
border-radius: 1.3px;
|
||
|
-webkit-appearance: none;
|
||
|
transition: all 0.4s ease;
|
||
|
}
|
||
|
input[type=range]::-webkit-slider-thumb {
|
||
|
height: 16px;
|
||
|
width: 16px;
|
||
|
border-radius: 16px;
|
||
|
background: red;
|
||
|
cursor: pointer;
|
||
|
-webkit-appearance: none;
|
||
|
margin-left: -1px;
|
||
|
}
|
||
|
input[type=range]::-moz-range-track {
|
||
|
width: 100%;
|
||
|
height: 8.4px;
|
||
|
cursor: pointer;
|
||
|
border: 1px solid transparent;
|
||
|
background: transparent;
|
||
|
border-radius: 0;
|
||
|
}
|
||
|
input[type=range].volume {
|
||
|
height: 5px;
|
||
|
background-color: #fff;
|
||
|
}
|
||
|
input[type=range].volume::-webkit-slider-runnable-track {
|
||
|
background-color: transparent;
|
||
|
}
|
||
|
input[type=range].volume::-webkit-slider-thumb {
|
||
|
margin-left: 0;
|
||
|
height: 14px;
|
||
|
width: 14px;
|
||
|
background: #fff;
|
||
|
}
|
||
|
input[type=range].volume::-moz-range-thumb {
|
||
|
border: 1px solid #fff;
|
||
|
background: #fff;
|
||
|
}
|
||
|
input[type="range"]::-moz-range-thumb {
|
||
|
height: 12px;
|
||
|
width: 6px;
|
||
|
border-radius: 0px;
|
||
|
border: none;
|
||
|
background: #f00;
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
.hide {
|
||
|
opacity: 0;
|
||
|
pointer-events: none;
|
||
|
}
|
||
|
#progress-bar {
|
||
|
background: transparent;
|
||
|
border: none;
|
||
|
}
|