1 // Thanks: https://github.com/kmoskwiak/videojs-resolution-switcher/pull/92/files
2 .vjs-resolution-button-label {
14 .vjs-resolution-button {
15 outline: 0 !important;
20 left: 50%; /* Center the menu, in it's parent */
21 margin-left: -2em; /* half of width, to center */
31 // Thanks: https://github.com/zanechua/videojs-sublime-inspired-skin
33 // Video JS Sublime Skin
34 // The following are SCSS variables to automate some of the values.
35 // But don't feel limited by them. Change/replace whatever you want.
37 // The color of icons, text, and the big play button border.
38 // Try changing to #0f0
39 $primary-foreground-color: #fff; // #fff default
41 // The default color of control backgrounds is mostly black but with a little
42 // bit of blue so it can still be seen on all-black video frames, which are common.
43 // Try changing to #900
44 $primary-background-color: #2B333F; // #2B333F default
46 // Try changing to true
47 $center-big-play-button: true; // true default
50 /* The base font size controls the size of everything, not just text.
51 All dimensions use em-based sizes so that the scale along with the font size.
52 Try increasing it to 15px and see what happens. */
55 /* The main font color changes the ICON COLORS as well as the text */
56 color: $primary-foreground-color;
59 /* The "Big Play Button" is the play button that shows before the video plays.
60 To center it set the align values to center and middle. The typical location
61 of the button is the center, but there is trend towards moving it to a corner
62 where it gets out of the way of valuable content in the poster image.*/
63 .vjs-sublime-skin .vjs-big-play-button {
64 /* The font size is what makes the big play button...big.
65 All width/height values use ems, which are a multiple of the font size.
66 If the .video-js font-size is 10px, then 3em equals 30px.*/
69 /* We're using SCSS vars here because the values are used in multiple places.
70 Now that font size is set, the following em values will be a multiple of the
71 new font size. If the font-size is 3em (30px), then setting any of
72 the following values to 3em would equal 30px. 3 * font-size. */
74 /* 1.5em = 45px default */
75 $big-play-height: 1.5em;
77 line-height: $big-play-height;
78 height: $big-play-height;
79 width: $big-play-width;
81 /* 0.06666em = 2px default */
83 /* 0.3em = 9px default */
86 @if $center-big-play-button {
90 margin-left: -($big-play-width / 2);
91 margin-top: -($big-play-height / 2);
93 /* Align top left. 0.5em = 15px default */
99 /* The default color of control backgrounds is mostly black but with a little
100 bit of blue so it can still be seen on all-black video frames, which are common. */
101 .video-js .vjs-control-bar,
102 .video-js .vjs-big-play-button,
103 .video-js .vjs-menu-button .vjs-menu-content {
104 /* IE8 - has no alpha support */
105 background-color: $primary-background-color;
106 /* Opacity: 1.0 = 100%, 0.0 = 0% */
107 background-color: rgba($primary-background-color, 0.7);
108 background-color: transparent;
111 // Make a slightly lighter version of the main background
112 // for the slider background.
113 $slider-bg-color: lighten($primary-background-color, 33%);
115 /* Slider - used for Volume bar and Progress bar */
116 .video-js .vjs-slider {
117 background-color: $slider-bg-color;
118 background-color: rgba($slider-bg-color, 0.5);
119 background-color: rgba(255,255,255,.3);
124 /* The slider bar color is used for the progress bar and the volume bar
125 (the first two can be removed after a fix that's coming) */
126 .video-js .vjs-volume-level,
127 .video-js .vjs-play-progress,
128 .video-js .vjs-slider-bar {
129 background: $primary-foreground-color;
132 /* Enlarged Slider to enable easier tracking. Adjust all the height:6.5px to preferred height for the slider if necessary. */
133 .video-js .vjs-progress-holder .vjs-load-progress,
134 .video-js .vjs-progress-holder .vjs-load-progress div,
135 .video-js .vjs-progress-holder .vjs-play-progress,
136 .video-js .vjs-progress-holder .vjs-tooltip-progress-bar {
140 /* The main progress bar also has a bar that shows how much has been loaded. */
141 .video-js .vjs-load-progress {
142 /* For IE8 we'll lighten the color */
143 background: ligthen($slider-bg-color, 25%);
144 /* Otherwise we'll rely on stacked opacities */
145 background: rgba($slider-bg-color, 0.5);
148 /* The load progress bar also has internal divs that represent
149 smaller disconnected loaded time ranges */
150 .video-js .vjs-load-progress div {
151 /* For IE8 we'll lighten the color */
152 background: ligthen($slider-bg-color, 50%);
153 /* Otherwise we'll rely on stacked opacities */
154 background: rgba($slider-bg-color, 0.75);
158 .vjs-sublime-skin .vjs-poster {
159 outline: none; /* Remove Blue Outline on Click*/
163 .vjs-sublime-skin:hover .vjs-big-play-button {
164 background-color: transparent;
167 .vjs-sublime-skin .vjs-fullscreen-control:before,
168 .vjs-sublime-skin.vjs-fullscreen .vjs-fullscreen-control:before {
169 content: ''; /* Remove Fullscreen Exit Icon */
172 .vjs-sublime-skin.vjs-fullscreen .vjs-fullscreen-control {
176 .vjs-sublime-skin .vjs-fullscreen-control {
177 border: 3px solid #fff;
178 box-sizing: border-box;
187 .vjs-sublime-skin.vjs-fullscreen .vjs-fullscreen-control:after {
198 .vjs-sublime-skin .vjs-progress-holder {
202 .vjs-sublime-skin .vjs-progress-control .vjs-progress-holder:after {
208 .vjs-sublime-skin .vjs-progress-control .vjs-load-progres,
209 .vjs-sublime-skin .vjs-progress-control .vjs-play-progress {
214 .vjs-sublime-skin .vjs-playback-rate {
215 display: none; /* Remove Playback Rate */
218 .vjs-sublime-skin .vjs-progress-control {
222 .vjs-sublime-skin .vjs-time-control {
226 .vjs-sublime-skin .vjs-volume-menu-button:before {
231 .vjs-sublime-skin .vjs-volume-menu-button .vjs-menu,
232 .vjs-sublime-skin .vjs-volume-menu-button:focus .vjs-menu,
233 .vjs-sublime-skin .vjs-volume-menu-button.vjs-slider-active .vjs-menu {
238 .vjs-sublime-skin .vjs-volume-menu-button,
239 .vjs-sublime-skin .vjs-volume-panel {
246 .vjs-sublime-skin .vjs-volume-menu-button .vjs-menu-content,
247 .vjs-sublime-skin .vjs-volume-menu-button:hover,
248 .vjs-sublime-skin .vjs-volume-menu-button:focus,
249 .vjs-sublime-skin .vjs-volume-menu-button.vjs-slider-active,
250 .vjs-sublime-skin .vjs-volume-panel .vjs-volume-control,
251 .vjs-sublime-skin .vjs-volume-panel:hover,
252 .vjs-sublime-skin .vjs-volume-panel:focus,
253 .vjs-sublime-skin .vjs-volume-panel.vjs-slider-active {
257 .vjs-sublime-skin .vjs-volume-menu-button .vjs-menu {
261 .vjs-sublime-skin .vjs-mouse-display:before,
262 .vjs-sublime-skin .vjs-play-progress:before,
263 .vjs-sublime-skin .vjs-volume-level:before {
264 content: ''; /* Remove Circle From Progress Bar */
267 .vjs-sublime-skin .vjs-mouse-display:after,
268 .vjs-sublime-skin .vjs-play-progress:after,
269 .vjs-sublime-skin .vjs-time-tooltip {
273 .vjs-sublime-skin .vjs-audio-button {
277 .vjs-sublime-skin .vjs-volume-bar {
278 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcCAQAAACw95UnAAAAMElEQVRIx2NgoBL4n4YKGUYNHkEG4zJg1OCRYDCpBowaPJwMppbLRg0eNXjUYBLEAXWNUA6QNm1lAAAAAElFTkSuQmCC);
279 background-size: 22px 14px;
280 background-repeat: no-repeat;
289 .vjs-sublime-skin .vjs-volume-level {
290 background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAcAQAAAAAyhWABAAAAAnRSTlMAAHaTzTgAAAAZSURBVHgBYwAB/g9EUv+JokCqiaT+U4MCAPKPS7WUUOc1AAAAAElFTkSuQmCC);
291 background-size: 22px 14px;
292 background-repeat: no-repeat;
298 /* New for VideoJS v6 */
299 .vjs-sublime-skin .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,
300 .vjs-sublime-skin .vjs-volume-panel.vjs-volume-panel-horizontal:active,
301 .vjs-sublime-skin .vjs-volume-panel.vjs-volume-panel-horizontal:focus,
302 .vjs-sublime-skin .vjs-volume-panel.vjs-volume-panel-horizontal:hover {
304 transition-property: none;
307 .vjs-sublime-skin .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control.vjs-volume-horizontal {
312 .vjs-sublime-skin .vjs-volume-panel .vjs-mute-control:hover ~ .vjs-volume-control {
313 transition-property: none;
316 .vjs-sublime-skin .vjs-fullscreen-control .vjs-icon-placeholder {
317 display: none; /* Remove Duplicate Fullscreen Icon */
320 .vjs-sublime-skin .vjs-volume-panel .vjs-mute-control {
326 .vjs-sublime-skin .vjs-volume-panel .vjs-volume-control {
327 display: inline-block;