1 // Thanks: https://github.com/zanechua/videojs-sublime-inspired-skin
2 $primary-foreground-color: #fff;
3 $primary-background-color: #000;
5 $control-bar-height: 34px;
7 .video-js.vjs-peertube-skin {
9 color: $primary-foreground-color;
11 .vjs-button > .vjs-icon-placeholder::before {
12 line-height: $control-bar-height;
15 .vjs-mouse-display:before,
16 .vjs-play-progress:before,
17 .vjs-volume-level:before {
18 content: ''; /* Remove Circle From Progress Bar */
25 .vjs-big-play-button {
30 $big-play-height: 1.5em;
37 margin-left: -($big-play-width / 2);
38 margin-top: -($big-play-height / 2);
39 background-color: transparent !important;
44 .vjs-menu-button .vjs-menu-content {
45 background-color: rgba($primary-background-color, 0.5);
48 $slider-bg-color: lighten($primary-background-color, 33%);
51 background-color: rgba(255, 255, 255, .3);
56 /* The slider bar color is used for the progress bar and the volume bar
57 (the first two can be removed after a fix that's coming) */
61 background: $primary-foreground-color;
65 background: rgba($slider-bg-color, 0.5);
68 .vjs-load-progress div {
69 background: rgba($slider-bg-color, 0.75);
73 outline: none; /* Remove Blue Outline on Click*/
78 height: $control-bar-height;
80 .vjs-progress-control {
86 .vjs-progress-holder {
93 font-size: $font-size;
100 font-size: $font-size;
101 display: inline-block;
104 .vjs-current-time-display {
105 line-height: $control-bar-height;
115 font-size: $font-size;
116 display: inline-block;
119 .vjs-duration-display {
120 line-height: $control-bar-height;
124 &.vjs-remaining-time {
131 line-height: $control-bar-height;
135 .vjs-webtorrent-displayed {
139 .vjs-webtorrent-hidden {
143 .download-speed-number, .upload-speed-number, .peers-number {
144 font-weight: $font-semibold;
147 .download-speed-text, .upload-speed-text, .peers-text {
152 display: inline-block;
155 background-size: contain;
156 vertical-align: middle;
157 background-repeat: no-repeat;
163 background-image: url('../assets/player/images/arrow-down.svg');
167 background-image: url('../assets/player/images/arrow-up.svg');
173 .vjs-icon-placeholder {
174 display: inline-block;
177 vertical-align: middle;
178 background: url('../assets/player/images/volume.svg') no-repeat;
179 background-size: contain;
186 &.vjs-vol-0 .vjs-icon-placeholder {
187 background: url('../assets/player/images/volume-mute.svg') no-repeat;
188 background-size: contain;
192 .vjs-volume-menu-button,
201 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC) no-repeat;
202 background-size: 22px 14px;
212 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC) no-repeat;
213 background-size: 22px 14px;
220 .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
221 .vjs-volume-panel.vjs-volume-panel-horizontal:active,
222 .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
223 .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
225 transition-property: none;
228 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
233 .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
234 transition-property: none;
244 .vjs-volume-control {
245 display: inline-block;
254 .vjs-fullscreen-control {
257 .vjs-icon-placeholder {
258 display: inline-block;
261 vertical-align: middle;
262 background: url('../assets/player/images/fullscreen.svg') no-repeat;
263 background-size: contain;
271 .vjs-menu-button-popup {
273 font-weight: $font-semibold;
276 // Thanks: https://github.com/kmoskwiak/videojs-resolution-switcher/pull/92/files
277 .vjs-resolution-button-label {
278 line-height: $control-bar-height;
288 .vjs-resolution-button {
289 outline: 0 !important;
297 left: 50%; /* Center the menu, in it's parent */
298 margin-left: -2em; /* half of width, to center */
302 text-transform: none;
309 @media screen and (max-width: 450px) {
310 .vjs-webtorrent-displayed {
311 display: none !important;
316 // Thanks: https://projects.lukehaas.me/css-loaders/
317 .vjs-loading-spinner {
320 text-indent: -9999em;
321 border: 0.7em solid rgba(255, 255, 255, 0.2);
322 border-left-color: #ffffff;
323 transform: translateZ(0);
324 animation: spinner 1.4s infinite linear;
328 animation: none !important;
335 animation: none !important;
340 transform: rotate(0deg);
343 transform: rotate(360deg);