2021-03-05 03:54:11 +01:00
|
|
|
.video-js {
|
|
|
|
font-size: 12px;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
// Control Bar (container)
|
|
|
|
.vjs-control-bar {
|
|
|
|
background: none;
|
|
|
|
|
|
|
|
&::before {
|
|
|
|
position: absolute;
|
|
|
|
bottom: 0;
|
|
|
|
content: '';
|
|
|
|
height: 5rem;
|
|
|
|
width: 100%;
|
|
|
|
background: rgba(20, 20, 20, 0.45);
|
2021-05-20 21:20:01 +02:00
|
|
|
background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 10%, rgba(0, 0, 0, 0) 100%);
|
2021-03-05 03:54:11 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Progress Bar
|
|
|
|
.vjs-progress-control.vjs-control {
|
|
|
|
position: absolute;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
width: 100%;
|
|
|
|
height: 1rem;
|
|
|
|
bottom: 90%;
|
|
|
|
|
|
|
|
// Circle play head
|
|
|
|
.vjs-play-progress::before {
|
|
|
|
transform: scale(0);
|
2021-05-20 21:20:01 +02:00
|
|
|
transition: transform 0.3s;
|
2021-03-05 03:54:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
.vjs-play-progress::before {
|
|
|
|
transform: scale(1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Progress Slider
|
|
|
|
.vjs-slider {
|
|
|
|
margin: 0 1rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Load progress color
|
|
|
|
.vjs-load-progress,
|
|
|
|
.vjs-load-progress div {
|
|
|
|
background-color: rgba(160, 160, 160, 0.5);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Progress Bar Background
|
|
|
|
.vjs-slider {
|
|
|
|
background-color: rgba(60, 60, 60, 0.5);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Primary Color Progress
|
|
|
|
.vjs-slider-bar {
|
2021-05-20 21:20:01 +02:00
|
|
|
background-color: var(--color-gray-5);
|
2021-03-05 03:54:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Inner Progress Bar
|
|
|
|
.vjs-play-progress {
|
|
|
|
background-color: var(--color-primary);
|
|
|
|
color: var(--color-primary);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Spacer
|
|
|
|
.vjs-custom-control-spacer {
|
|
|
|
display: flex;
|
|
|
|
flex: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Transcoding menu
|
|
|
|
/*.vjs-tech {
|
|
|
|
height: auto !important;
|
|
|
|
position: absolute !important;
|
|
|
|
}*/
|
|
|
|
|
|
|
|
// Menu size
|
|
|
|
.vjs-playback-rate .vjs-menu .vjs-menu-content {
|
|
|
|
width: 125%;
|
|
|
|
font-size: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Volume slider
|
|
|
|
.vjs-volume-panel {
|
|
|
|
&.vjs-control {
|
2021-05-20 21:20:01 +02:00
|
|
|
transition: 0.2s;
|
2021-03-05 03:54:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.vjs-volume-control.vjs-volume-horizontal {
|
2021-05-20 21:20:01 +02:00
|
|
|
transition: 0.2s;
|
2021-03-05 03:54:11 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Tooltip
|
|
|
|
.vjs-mouse-display .vjs-time-tooltip {
|
2021-05-20 21:20:01 +02:00
|
|
|
color: white;
|
2021-03-05 03:54:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Tooltip
|
|
|
|
.video-js {
|
2021-05-20 21:20:01 +02:00
|
|
|
.vjs-progress-control {
|
2021-03-05 03:54:11 +01:00
|
|
|
.vjs-play-progress {
|
|
|
|
.vjs-time-tooltip {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Transitions control bar between active / inactive
|
|
|
|
.vjs-has-started {
|
|
|
|
.vjs-control-bar {
|
|
|
|
opacity: 1;
|
2021-05-20 21:20:01 +02:00
|
|
|
transition: 0.1s;
|
2021-03-05 03:54:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
&.vjs-user-inactive.vjs-playing {
|
|
|
|
.vjs-control-bar {
|
|
|
|
opacity: 0;
|
2021-05-20 21:20:01 +02:00
|
|
|
transition: 0.3s;
|
2021-03-05 03:54:11 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.vjs-user-active.vjs-playing {
|
|
|
|
.vjs-control-bar {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Button glow
|
|
|
|
.video-js {
|
|
|
|
.vjs-control,
|
|
|
|
.vjs-time-divider {
|
|
|
|
user-select: none;
|
|
|
|
|
|
|
|
&:focus:before,
|
|
|
|
&:hover:before,
|
|
|
|
&:focus {
|
|
|
|
// Disable builtin button glow
|
|
|
|
text-shadow: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.bottom-gradient {
|
|
|
|
background-image: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 72px);
|
|
|
|
}
|
2021-08-31 19:07:45 +02:00
|
|
|
|
|
|
|
.vjs-big-play-button {
|
|
|
|
// if the user is using a mouse
|
|
|
|
@media (pointer: none), (pointer:coarse) {
|
|
|
|
display: none !important;
|
|
|
|
}
|
|
|
|
}
|