buildCSSClass () {
return super.buildCSSClass() + ' vjs-resolution-button'
}
+
+ buildWrapperCSSClass () {
+ return 'vjs-resolution-control ' + super.buildWrapperCSSClass()
+ }
}
MenuButton.registerComponent('ResolutionMenuButton', ResolutionMenuButton)
@import '_variables';
@import '_mixins';
-$primary-foreground-color: #fff;
+$primary-foreground-color: #eee;
$primary-foreground-opacity: 0.9;
$primary-foreground-opacity-hover: 1;
$primary-background-color: #000;
.video-js.vjs-peertube-skin {
font-size: $font-size;
- color: $primary-foreground-color;
+ color: #fff;
.vjs-dock-text {
padding-right: 10px;
}
}
- .vjs-play-progress .vjs-time-tooltip {
- display: none;
+ .vjs-play-progress {
+ &::before:hover {
+ top: -0.372em;
+ }
+
+ .vjs-time-tooltip {
+ display: none;
+ }
}
.vjs-load-progress {
.vjs-control-bar {
height: $control-bar-height;
+ .vjs-progress-control,
+ .vjs-play-control,
+ .vjs-playback-rate,
+ .vjs-mute-control,
+ .vjs-volume-control,
+ .vjs-resolution-control,
+ .vjs-fullscreen-control
+ {
+ opacity: $primary-foreground-opacity;
+ transition: opacity .1s;
+
+ &:hover {
+ opacity: $primary-foreground-opacity-hover;
+ }
+ }
+
+ .vjs-current-time,
+ .vjs-duration,
+ .vjs-peertube {
+ color: $primary-foreground-color;
+ }
+
.vjs-progress-control {
bottom: 34px;
width: 100%;
font-size: $font-size;
display: inline-block;
padding: 0;
-
.vjs-duration-display {
line-height: calc(#{$control-bar-height} + 1px);
}