videojs_rails 4.1.0 → 4.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,163 +1,23 @@
1
1
  /*!
2
2
  Video.js Default Styles (http://videojs.com)
3
- Version 4.1.0
3
+ Version 4.2.0
4
+ Create your own skin at http://designer.videojs.com
4
5
  */
5
-
6
- /*
7
- REQUIRED STYLES (be careful overriding)
8
- ================================================================================ */
9
- /* When loading the player, the video tag is replaced with a DIV,
10
- that will hold the video tag or object tag for other playback methods.
11
- The div contains the video playback element (Flash or HTML5) and controls, and sets the width and height of the video.
12
-
13
- ** If you want to add some kind of border/padding (e.g. a frame), or special positioning, use another containing element.
14
- Otherwise you risk messing up control positioning and full window mode. **
6
+ /* SKIN
7
+ ================================================================================
8
+ The main class name for all skin-specific styles. To make your own skin,
9
+ replace all occurances of 'vjs-default-skin' with a new name. Then add your new
10
+ skin name to your video tag instead of the default skin.
11
+ e.g. <video class="video-js my-skin-name">
15
12
  */
16
- .video-js {
17
- background-color: #000;
18
- position: relative;
19
- padding: 0;
20
- /* Start with 10px for base font size so other dimensions can be em based and easily calculable. */
21
- font-size: 10px;
22
- /* Allow poster to be vertially aligned. */
23
- vertical-align: middle;
24
- /* display: table-cell; */ /*This works in Safari but not Firefox.*/
25
-
26
- /* Turn off user selection (text highlighting) by default.
27
- The majority of player components will not be text blocks.
28
- Text areas will need to turn user selection back on. */
29
- -webkit-user-select: none; /* Chrome all / Safari all */
30
- -moz-user-select: none; /* Firefox all */
31
- -ms-user-select: none; /* IE 10+ */
32
- -o-user-select: none;
33
- user-select: none;
34
- }
35
-
36
- /* Playback technology elements expand to the width/height of the containing div.
37
- <video> or <object> */
38
- .video-js .vjs-tech {
39
- position: absolute;
40
- top: 0;
41
- left: 0;
42
- width: 100%;
43
- height: 100%;
44
- }
45
-
46
- /* Fix for Firefox 9 fullscreen (only if it is enabled). Not needed when checking fullScreenEnabled. */
47
- .video-js:-moz-full-screen { position: absolute; }
48
-
49
- /* Fullscreen Styles */
50
- body.vjs-full-window {
51
- padding: 0;
52
- margin: 0;
53
- height: 100%;
54
- overflow-y: auto; /* Fix for IE6 full-window. http://www.cssplay.co.uk/layouts/fixed.html */
55
- }
56
- .video-js.vjs-fullscreen {
57
- position: fixed;
58
- overflow: hidden;
59
- z-index: 1000;
60
- left: 0;
61
- top: 0;
62
- bottom: 0;
63
- right: 0;
64
- width: 100% !important;
65
- height: 100% !important;
66
- _position: absolute; /* IE6 Full-window (underscore hack) */
67
- }
68
- .video-js:-webkit-full-screen {
69
- width: 100% !important; height: 100% !important;
70
- }
71
-
72
- /* Poster Styles */
73
- .vjs-poster {
74
- background-repeat: no-repeat;
75
- background-position: 50% 50%;
76
- background-size: contain;
77
- cursor: pointer;
78
- height: 100%;
79
- margin: 0;
80
- padding: 0;
81
- position: relative;
82
- width: 100%;
83
- }
84
- .vjs-poster img {
85
- display: block;
86
- margin: 0 auto;
87
- max-height: 100%;
88
- padding: 0;
89
- width: 100%;
90
- }
91
-
92
- /* Text Track Styles */
93
- /* Overall track holder for both captions and subtitles */
94
- .video-js .vjs-text-track-display {
95
- text-align: center;
96
- position: absolute;
97
- bottom: 4em;
98
- left: 1em; /* Leave padding on left and right */
99
- right: 1em;
100
- font-family: Arial, sans-serif;
101
- }
102
- /* Individual tracks */
103
- .video-js .vjs-text-track {
104
- display: none;
105
- font-size: 1.4em;
106
- text-align: center;
107
- margin-bottom: 0.1em;
108
- /* Transparent black background, or fallback to all black (oldIE) */
109
- background: rgb(0, 0, 0); background: rgba(0, 0, 0, 0.50);
110
- }
111
- .video-js .vjs-subtitles { color: #fff; } /* Subtitles are white */
112
- .video-js .vjs-captions { color: #fc6; } /* Captions are yellow */
113
- .vjs-tt-cue { display: block; }
114
-
115
- /* Fading sytles, used to fade control bar. */
116
- .vjs-fade-in {
117
- display: block !important;
118
- visibility: visible; /* Needed to make sure things hide in older browsers too. */
119
- opacity: 1;
120
-
121
- -webkit-transition: visibility 0.1s, opacity 0.1s;
122
- -moz-transition: visibility 0.1s, opacity 0.1s;
123
- -ms-transition: visibility 0.1s, opacity 0.1s;
124
- -o-transition: visibility 0.1s, opacity 0.1s;
125
- transition: visibility 0.1s, opacity 0.1s;
126
- }
127
- .vjs-fade-out {
128
- display: block !important;
129
- visibility: hidden;
130
- opacity: 0;
131
-
132
- -webkit-transition: visibility 1.5s, opacity 1.5s;
133
- -moz-transition: visibility 1.5s, opacity 1.5s;
134
- -ms-transition: visibility 1.5s, opacity 1.5s;
135
- -o-transition: visibility 1.5s, opacity 1.5s;
136
- transition: visibility 1.5s, opacity 1.5s;
137
-
138
- /* Wait a moment before fading out the control bar */
139
- -webkit-transition-delay: 2s;
140
- -moz-transition-delay: 2s;
141
- -ms-transition-delay: 2s;
142
- -o-transition-delay: 2s;
143
- transition-delay: 2s;
144
- }
145
- /* Hide disabled or unsupported controls */
146
- .vjs-default-skin .vjs-hidden { display: none; }
147
-
148
- .vjs-lock-showing {
149
- display: block !important;
150
- opacity: 1;
151
- visibility: visible;
13
+ .vjs-default-skin {
14
+ color: #cccccc;
152
15
  }
153
-
154
- /* DEFAULT SKIN (override in another file to create new skins)
155
- ================================================================================
156
- Instead of editing this file, I recommend creating your own skin CSS file to be included after this file,
157
- so you can upgrade to newer versions easier. You can remove all these styles by removing the 'vjs-default-skin' class from the tag. */
158
-
159
- /* Base UI Component Classes
160
- -------------------------------------------------------------------------------- */
16
+ /* Custom Icon Font
17
+ --------------------------------------------------------------------------------
18
+ The control icons are from a custom font. Each icon corresponds to a character
19
+ (e.g. "\e001"). Font icons allow for easy scaling and coloring of icons.
20
+ */
161
21
  @font-face{
162
22
  font-family: 'VideoJS';
163
23
  src: url('<%= asset_path('vjs.eot') %>');
@@ -167,84 +27,110 @@ so you can upgrade to newer versions easier. You can remove all these styles by
167
27
  font-weight: normal;
168
28
  font-style: normal;
169
29
  }
170
-
171
- .vjs-default-skin {
172
- color: #ccc;
173
- }
174
-
30
+ /* Base UI Component Classes
31
+ --------------------------------------------------------------------------------
32
+ */
175
33
  /* Slider - used for Volume bar and Seek bar */
176
34
  .vjs-default-skin .vjs-slider {
177
- outline: 0; /* Replace browser focus hightlight with handle highlight */
35
+ /* Replace browser focus hightlight with handle highlight */
36
+ outline: 0;
178
37
  position: relative;
179
38
  cursor: pointer;
180
39
  padding: 0;
181
-
182
- background: rgb(50, 50, 50); /* IE8- Fallback */
183
- background: rgba(100, 100, 100, 0.5);
40
+ /* background-color-with-alpha */
41
+ background-color: #333333;
42
+ background-color: rgba(51, 51, 51, 0.9);
184
43
  }
185
-
186
44
  .vjs-default-skin .vjs-slider:focus {
187
- background: rgb(70, 70, 70); /* IE8- Fallback */
188
- background: rgba(100, 100, 100, 0.70);
189
-
190
- -webkit-box-shadow: 0 0 2em rgba(255, 255, 255, 1);
191
- -moz-box-shadow: 0 0 2em rgba(255, 255, 255, 1);
192
- box-shadow: 0 0 2em rgba(255, 255, 255, 1);
45
+ /* box-shadow */
46
+ -webkit-box-shadow: 0 0 2em #ffffff;
47
+ -moz-box-shadow: 0 0 2em #ffffff;
48
+ box-shadow: 0 0 2em #ffffff;
193
49
  }
194
-
195
50
  .vjs-default-skin .vjs-slider-handle {
196
51
  position: absolute;
197
52
  /* Needed for IE6 */
198
53
  left: 0;
199
54
  top: 0;
200
55
  }
201
-
202
56
  .vjs-default-skin .vjs-slider-handle:before {
203
- /*content: "\f111";*/ /* Circle icon = f111 */
204
- content: "\e009"; /* Square icon */
57
+ content: "\e009";
205
58
  font-family: VideoJS;
206
59
  font-size: 1em;
207
60
  line-height: 1;
208
61
  text-align: center;
209
62
  text-shadow: 0em 0em 1em #fff;
210
-
211
63
  position: absolute;
212
64
  top: 0;
213
65
  left: 0;
214
-
215
66
  /* Rotate the square icon to make a diamond */
67
+ /* transform */
216
68
  -webkit-transform: rotate(-45deg);
217
- -moz-transform: rotate(-45deg);
218
- -ms-transform: rotate(-45deg);
219
- -o-transform: rotate(-45deg);
220
- filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=2);
69
+ -moz-transform: rotate(-45deg);
70
+ -ms-transform: rotate(-45deg);
71
+ -o-transform: rotate(-45deg);
72
+ transform: rotate(-45deg);
221
73
  }
222
-
223
74
  /* Control Bar
224
- -------------------------------------------------------------------------------- */
225
- /* The default control bar. Created by controls.js */
75
+ --------------------------------------------------------------------------------
76
+ The default control bar that is a container for most of the controls.
77
+ */
226
78
  .vjs-default-skin .vjs-control-bar {
227
- display: none; /* Start hidden */
79
+ /* Start hidden */
80
+ display: none;
228
81
  position: absolute;
229
- /* Distance from the bottom of the box/video. Keep 0. Use height to add more bottom margin. */
82
+ /* Place control bar at the bottom of the player box/video.
83
+ If you want more margin below the control bar, add more height. */
230
84
  bottom: 0;
231
- /* 100% width of player div */
85
+ /* Use left/right to stretch to 100% width of player div */
232
86
  left: 0;
233
87
  right: 0;
234
- /* Controls are absolutely position, so no padding necessary */
235
- padding: 0;
236
- margin: 0;
237
88
  /* Height includes any margin you want above or below control items */
238
89
  height: 3.0em;
239
- background-color: rgb(0, 0, 0);
240
- /* Slight blue so it can be seen more easily on black. */
241
- background-color: rgba(7, 40, 50, 0.7);
242
- /* Default font settings */
243
- font-style: normal;
244
- font-weight: normal;
245
- font-family: Arial, sans-serif;
90
+ /* background-color-with-alpha */
91
+ background-color: #07141e;
92
+ background-color: rgba(7, 20, 30, 0.7);
246
93
  }
94
+ /* Show the control bar only once the video has started playing */
95
+ .vjs-default-skin.vjs-has-started .vjs-control-bar {
96
+ display: block;
97
+ /* Visibility needed to make sure things hide in older browsers too. */
247
98
 
99
+ visibility: visible;
100
+ opacity: 1;
101
+ /* transition */
102
+ -webkit-transition: visibility 0.1s, opacity 0.1s;
103
+ -moz-transition: visibility 0.1s, opacity 0.1s;
104
+ -o-transition: visibility 0.1s, opacity 0.1s;
105
+ transition: visibility 0.1s, opacity 0.1s;
106
+ }
107
+ /* Hide the control bar when the video is playing and the user is inactive */
108
+ .vjs-default-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar {
109
+ display: block;
110
+ visibility: hidden;
111
+ opacity: 0;
112
+ /* transition */
113
+ -webkit-transition: visibility 1s, opacity 1s;
114
+ -moz-transition: visibility 1s, opacity 1s;
115
+ -o-transition: visibility 1s, opacity 1s;
116
+ transition: visibility 1s, opacity 1s;
117
+ }
118
+ .vjs-default-skin.vjs-controls-disabled .vjs-control-bar {
119
+ display: none;
120
+ }
121
+ .vjs-default-skin.vjs-using-native-controls .vjs-control-bar {
122
+ display: none;
123
+ }
124
+ /* IE8 is flakey with fonts, and you have to change the actual content to force
125
+ fonts to show/hide properly.
126
+ - "\9" IE8 hack didn't work for this
127
+ - Found in XP IE8 from http://modern.ie. Does not show up in "IE8 mode" in IE9
128
+ */
129
+ @media \0screen {
130
+ .vjs-default-skin.vjs-user-inactive.vjs-playing .vjs-control-bar :before {
131
+ content: "";
132
+ }
133
+ }
248
134
  /* General styles for individual controls. */
249
135
  .vjs-default-skin .vjs-control {
250
136
  outline: none;
@@ -256,7 +142,6 @@ so you can upgrade to newer versions easier. You can remove all these styles by
256
142
  height: 3.0em;
257
143
  width: 4em;
258
144
  }
259
-
260
145
  /* FontAwsome button icons */
261
146
  .vjs-default-skin .vjs-control:before {
262
147
  font-family: VideoJS;
@@ -268,39 +153,44 @@ so you can upgrade to newer versions easier. You can remove all these styles by
268
153
  width: 100%;
269
154
  height: 100%;
270
155
  text-align: center;
271
- text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
156
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
272
157
  }
273
-
274
158
  /* Replacement for focus outline */
275
159
  .vjs-default-skin .vjs-control:focus:before,
276
160
  .vjs-default-skin .vjs-control:hover:before {
277
- text-shadow: 0em 0em 1em rgba(255, 255, 255, 1);
161
+ text-shadow: 0em 0em 1em #ffffff;
278
162
  }
163
+ .vjs-default-skin .vjs-control:focus {
164
+ /* outline: 0; */
165
+ /* keyboard-only users cannot see the focus on several of the UI elements when
166
+ this is set to 0 */
279
167
 
280
- .vjs-default-skin .vjs-control:focus { /* outline: 0; */ /* keyboard-only users cannot see the focus on several of the UI elements when this is set to 0 */ }
281
-
282
- /* Hide control text visually, but have it available for screenreaders: h5bp.com/v */
283
- .vjs-default-skin .vjs-control-text { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }
284
-
168
+ }
169
+ /* Hide control text visually, but have it available for screenreaders */
170
+ .vjs-default-skin .vjs-control-text {
171
+ /* hide-visually */
172
+ border: 0;
173
+ clip: rect(0 0 0 0);
174
+ height: 1px;
175
+ margin: -1px;
176
+ overflow: hidden;
177
+ padding: 0;
178
+ position: absolute;
179
+ width: 1px;
180
+ }
285
181
  /* Play/Pause
286
- -------------------------------------------------------------------------------- */
182
+ --------------------------------------------------------------------------------
183
+ */
287
184
  .vjs-default-skin .vjs-play-control {
288
185
  width: 5em;
289
186
  cursor: pointer;
290
187
  }
291
188
  .vjs-default-skin .vjs-play-control:before {
292
- content: "\e001"; /* Play Icon */
189
+ content: "\e001";
293
190
  }
294
191
  .vjs-default-skin.vjs-playing .vjs-play-control:before {
295
- content: "\e002"; /* Pause Icon */
192
+ content: "\e002";
296
193
  }
297
-
298
- /* Rewind
299
- -------------------------------------------------------------------------------- */
300
- /*.vjs-default-skin .vjs-rewind-control { width: 5em; cursor: pointer !important; }
301
- .vjs-default-skin .vjs-rewind-control div { width: 19px; height: 16px; background: url('video-js.png'); margin: 0.5em auto 0; }
302
- */
303
-
304
194
  /* Volume/Mute
305
195
  -------------------------------------------------------------------------------- */
306
196
  .vjs-default-skin .vjs-mute-control,
@@ -310,21 +200,20 @@ so you can upgrade to newer versions easier. You can remove all these styles by
310
200
  }
311
201
  .vjs-default-skin .vjs-mute-control:before,
312
202
  .vjs-default-skin .vjs-volume-menu-button:before {
313
- content: "\e006"; /* Full volume */
203
+ content: "\e006";
314
204
  }
315
205
  .vjs-default-skin .vjs-mute-control.vjs-vol-0:before,
316
206
  .vjs-default-skin .vjs-volume-menu-button.vjs-vol-0:before {
317
- content: "\e003"; /* No volume */
207
+ content: "\e003";
318
208
  }
319
209
  .vjs-default-skin .vjs-mute-control.vjs-vol-1:before,
320
210
  .vjs-default-skin .vjs-volume-menu-button.vjs-vol-1:before {
321
- content: "\e004"; /* Half volume */
211
+ content: "\e004";
322
212
  }
323
213
  .vjs-default-skin .vjs-mute-control.vjs-vol-2:before,
324
214
  .vjs-default-skin .vjs-volume-menu-button.vjs-vol-2:before {
325
- content: "\e005"; /* Full volume */
215
+ content: "\e005";
326
216
  }
327
-
328
217
  .vjs-default-skin .vjs-volume-control {
329
218
  width: 5em;
330
219
  float: right;
@@ -334,46 +223,34 @@ so you can upgrade to newer versions easier. You can remove all these styles by
334
223
  height: 0.6em;
335
224
  margin: 1.1em auto 0;
336
225
  }
337
-
338
226
  .vjs-default-skin .vjs-volume-menu-button .vjs-menu-content {
339
227
  height: 2.9em;
340
228
  }
341
-
342
229
  .vjs-default-skin .vjs-volume-level {
343
230
  position: absolute;
344
231
  top: 0;
345
232
  left: 0;
346
233
  height: 0.5em;
347
-
348
- background: #66A8CC
349
- url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAP0lEQVQIHWWMAQoAIAgDR/QJ/Ub//04+w7ZICBwcOg5FZi5iBB82AGzixEglJrd4TVK5XUJpskSTEvpdFzX9AB2pGziSQcvAAAAAAElFTkSuQmCC)
350
- -50% 0 repeat;
234
+ background: #66a8cc url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAP0lEQVQIHWWMAQoAIAgDR/QJ/Ub//04+w7ZICBwcOg5FZi5iBB82AGzixEglJrd4TVK5XUJpskSTEvpdFzX9AB2pGziSQcvAAAAAAElFTkSuQmCC) -50% 0 repeat;
351
235
  }
352
236
  .vjs-default-skin .vjs-volume-bar .vjs-volume-handle {
353
237
  width: 0.5em;
354
238
  height: 0.5em;
355
239
  }
356
-
357
240
  .vjs-default-skin .vjs-volume-handle:before {
358
241
  font-size: 0.9em;
359
242
  top: -0.2em;
360
243
  left: -0.2em;
361
-
362
244
  width: 1em;
363
245
  height: 1em;
364
246
  }
365
-
366
247
  .vjs-default-skin .vjs-volume-menu-button .vjs-menu .vjs-menu-content {
367
248
  width: 6em;
368
249
  left: -4em;
369
250
  }
370
-
371
- /*.vjs-default-skin .vjs-menu-button .vjs-volume-control {
372
- height: 1.5em;
373
- }*/
374
-
375
251
  /* Progress
376
- -------------------------------------------------------------------------------- */
252
+ --------------------------------------------------------------------------------
253
+ */
377
254
  .vjs-default-skin .vjs-progress-control {
378
255
  position: absolute;
379
256
  left: 0;
@@ -383,35 +260,31 @@ so you can upgrade to newer versions easier. You can remove all these styles by
383
260
  height: 1em;
384
261
  /* Set above the rest of the controls. */
385
262
  top: -1em;
386
-
387
263
  /* Shrink the bar slower than it grows. */
388
- -webkit-transition: top 0.4s, height 0.4s, font-size 0.4s, -webkit-transform 0.4s;
389
- -moz-transition: top 0.4s, height 0.4s, font-size 0.4s, -moz-transform 0.4s;
390
- -o-transition: top 0.4s, height 0.4s, font-size 0.4s, -o-transform 0.4s;
391
- transition: top 0.4s, height 0.4s, font-size 0.4s, transform 0.4s;
392
-
264
+ /* transition */
265
+ -webkit-transition: all 0.4s;
266
+ -moz-transition: all 0.4s;
267
+ -o-transition: all 0.4s;
268
+ transition: all 0.4s;
393
269
  }
394
-
395
270
  /* On hover, make the progress bar grow to something that's more clickable.
396
271
  This simply changes the overall font for the progress bar, and this
397
272
  updates both the em-based widths and heights, as wells as the icon font */
398
273
  .vjs-default-skin:hover .vjs-progress-control {
399
274
  font-size: .9em;
400
-
401
275
  /* Even though we're not changing the top/height, we need to include them in
402
276
  the transition so they're handled correctly. */
403
- -webkit-transition: top 0.2s, height 0.2s, font-size 0.2s, -webkit-transform 0.2s;
404
- -moz-transition: top 0.2s, height 0.2s, font-size 0.2s, -moz-transform 0.2s;
405
- -o-transition: top 0.2s, height 0.2s, font-size 0.2s, -o-transform 0.2s;
406
- transition: top 0.2s, height 0.2s, font-size 0.2s, transform 0.2s;
407
- }
408
277
 
278
+ /* transition */
279
+ -webkit-transition: all 0.2s;
280
+ -moz-transition: all 0.2s;
281
+ -o-transition: all 0.2s;
282
+ transition: all 0.2s;
283
+ }
409
284
  /* Box containing play and load progresses. Also acts as seek scrubber. */
410
285
  .vjs-default-skin .vjs-progress-holder {
411
- /* Placement within the progress control item */
412
286
  height: 100%;
413
287
  }
414
-
415
288
  /* Progress Bars */
416
289
  .vjs-default-skin .vjs-progress-holder .vjs-play-progress,
417
290
  .vjs-default-skin .vjs-progress-holder .vjs-load-progress {
@@ -424,248 +297,261 @@ so you can upgrade to newer versions easier. You can remove all these styles by
424
297
  left: 0;
425
298
  top: 0;
426
299
  }
427
-
428
300
  .vjs-default-skin .vjs-play-progress {
429
301
  /*
430
302
  Using a data URI to create the white diagonal lines with a transparent
431
- background. Surprising works in IE8.
303
+ background. Surprisingly works in IE8.
432
304
  Created using http://www.patternify.com
433
305
  Changing the first color value will change the bar color.
434
306
  Also using a paralax effect to make the lines move backwards.
435
307
  The -50% left position makes that happen.
436
308
  */
437
- background: #66A8CC
438
- url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAP0lEQVQIHWWMAQoAIAgDR/QJ/Ub//04+w7ZICBwcOg5FZi5iBB82AGzixEglJrd4TVK5XUJpskSTEvpdFzX9AB2pGziSQcvAAAAAAElFTkSuQmCC)
439
- -50% 0 repeat;
309
+
310
+ background: #66a8cc url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAP0lEQVQIHWWMAQoAIAgDR/QJ/Ub//04+w7ZICBwcOg5FZi5iBB82AGzixEglJrd4TVK5XUJpskSTEvpdFzX9AB2pGziSQcvAAAAAAElFTkSuQmCC) -50% 0 repeat;
440
311
  }
441
312
  .vjs-default-skin .vjs-load-progress {
442
- background: rgb(100, 100, 100); /* IE8- Fallback */
313
+ background: #646464 /* IE8- Fallback */;
443
314
  background: rgba(255, 255, 255, 0.4);
444
315
  }
445
-
446
316
  .vjs-default-skin .vjs-seek-handle {
447
317
  width: 1.5em;
448
318
  height: 100%;
449
319
  }
450
-
451
320
  .vjs-default-skin .vjs-seek-handle:before {
452
- padding-top: 0.1em; /* Minor adjustment */
321
+ padding-top: 0.1em /* Minor adjustment */;
453
322
  }
454
-
455
323
  /* Time Display
456
- -------------------------------------------------------------------------------- */
324
+ --------------------------------------------------------------------------------
325
+ */
457
326
  .vjs-default-skin .vjs-time-controls {
458
327
  font-size: 1em;
459
328
  /* Align vertically by making the line height the same as the control bar */
460
329
  line-height: 3em;
461
330
  }
462
- .vjs-default-skin .vjs-current-time { float: left; }
463
- .vjs-default-skin .vjs-duration { float: left; }
331
+ .vjs-default-skin .vjs-current-time {
332
+ float: left;
333
+ }
334
+ .vjs-default-skin .vjs-duration {
335
+ float: left;
336
+ }
464
337
  /* Remaining time is in the HTML, but not included in default design */
465
- .vjs-default-skin .vjs-remaining-time { display: none; float: left; }
466
- .vjs-time-divider { float: left; line-height: 3em; }
467
-
338
+ .vjs-default-skin .vjs-remaining-time {
339
+ display: none;
340
+ float: left;
341
+ }
342
+ .vjs-time-divider {
343
+ float: left;
344
+ line-height: 3em;
345
+ }
468
346
  /* Fullscreen
469
- -------------------------------------------------------------------------------- */
347
+ --------------------------------------------------------------------------------
348
+ */
470
349
  .vjs-default-skin .vjs-fullscreen-control {
471
350
  width: 3.8em;
472
351
  cursor: pointer;
473
352
  float: right;
474
353
  }
475
354
  .vjs-default-skin .vjs-fullscreen-control:before {
476
- content: "\e000"; /* Enter full screen */
355
+ content: "\e000";
477
356
  }
357
+ /* Switch to the exit icon when the player is in fullscreen */
478
358
  .vjs-default-skin.vjs-fullscreen .vjs-fullscreen-control:before {
479
- content: "\e00b"; /* Exit full screen */
359
+ content: "\e00b";
480
360
  }
481
-
482
- /* Big Play Button (at start)
483
- ---------------------------------------------------------*/
361
+ /* Big Play Button (play button at start)
362
+ --------------------------------------------------------------------------------
363
+ Positioning of the play button in the center or other corners can be done more
364
+ easily in the skin designer. http://designer.videojs.com/
365
+ */
484
366
  .vjs-default-skin .vjs-big-play-button {
367
+ left: 0.5em;
368
+ top: 0.5em;
369
+ font-size: 3em;
485
370
  display: block;
486
371
  z-index: 2;
487
372
  position: absolute;
488
- top: 2em;
489
- left: 2em;
490
- width: 12.0em;
491
- height: 8.0em;
492
- margin: 0;
373
+ width: 4em;
374
+ height: 2.6em;
493
375
  text-align: center;
494
376
  vertical-align: middle;
495
377
  cursor: pointer;
496
378
  opacity: 1;
497
-
498
379
  /* Need a slightly gray bg so it can be seen on black backgrounds */
499
- background-color: rgb(40, 40, 40);
500
- background-color: rgba(7, 40, 50, 0.7);
501
-
502
- border: 0.3em solid rgb(50, 50, 50);
503
- border-color: rgba(255, 255, 255, 0.25);
504
-
505
- -webkit-border-radius: 25px;
506
- -moz-border-radius: 25px;
507
- border-radius: 25px;
508
-
380
+ /* background-color-with-alpha */
381
+ background-color: #07141e;
382
+ background-color: rgba(7, 20, 30, 0.7);
383
+ border: 0.1em solid #3b4249;
384
+ /* border-radius */
385
+ -webkit-border-radius: 0.8em;
386
+ -moz-border-radius: 0.8em;
387
+ border-radius: 0.8em;
388
+ /* box-shadow */
509
389
  -webkit-box-shadow: 0px 0px 1em rgba(255, 255, 255, 0.25);
510
- -moz-box-shadow: 0px 0px 1em rgba(255, 255, 255, 0.25);
511
- box-shadow: 0px 0px 1em rgba(255, 255, 255, 0.25);
512
-
513
- -webkit-transition: border 0.4s, -webkit-box-shadow 0.4s, -webkit-transform 0.4s;
514
- -moz-transition: border 0.4s, -moz-box-shadow 0.4s, -moz-transform 0.4s;
515
- -o-transition: border 0.4s, -o-box-shadow 0.4s, -o-transform 0.4s;
516
- transition: border 0.4s, box-shadow 0.4s, transform 0.4s;
390
+ -moz-box-shadow: 0px 0px 1em rgba(255, 255, 255, 0.25);
391
+ box-shadow: 0px 0px 1em rgba(255, 255, 255, 0.25);
392
+ /* transition */
393
+ -webkit-transition: all 0.4s;
394
+ -moz-transition: all 0.4s;
395
+ -o-transition: all 0.4s;
396
+ transition: all 0.4s;
397
+ }
398
+ /* Hide if controls are disabled */
399
+ .vjs-default-skin.vjs-controls-disabled .vjs-big-play-button {
400
+ display: none;
401
+ }
402
+ /* Hide when video starts playing */
403
+ .vjs-default-skin.vjs-has-started .vjs-big-play-button {
404
+ display: none;
405
+ }
406
+ /* Hide on mobile devices. Remove when we stop using native controls
407
+ by default on mobile */
408
+ .vjs-default-skin.vjs-using-native-controls .vjs-big-play-button {
409
+ display: none;
517
410
  }
518
-
519
411
  .vjs-default-skin:hover .vjs-big-play-button,
520
412
  .vjs-default-skin .vjs-big-play-button:focus {
521
413
  outline: 0;
522
- border-color: rgb(255, 255, 255);
523
- border-color: rgba(255, 255, 255, 1);
414
+ border-color: #fff;
524
415
  /* IE8 needs a non-glow hover state */
525
- background-color: rgb(80, 80, 80);
416
+ background-color: #505050;
526
417
  background-color: rgba(50, 50, 50, 0.75);
527
-
528
- -webkit-box-shadow: 0 0 3em #fff;
529
- -moz-box-shadow: 0 0 3em #fff;
530
- box-shadow: 0 0 3em #fff;
531
-
532
- -webkit-transition: border 0s, -webkit-box-shadow 0s, -webkit-transform 0s;
533
- -moz-transition: border 0s, -moz-box-shadow 0s, -moz-transform 0s;
534
- -o-transition: border 0s, -o-box-shadow 0s, -o-transform 0s;
535
- transition: border 0s, box-shadow 0s, transform 0s;
418
+ /* box-shadow */
419
+ -webkit-box-shadow: 0 0 3em #ffffff;
420
+ -moz-box-shadow: 0 0 3em #ffffff;
421
+ box-shadow: 0 0 3em #ffffff;
422
+ /* transition */
423
+ -webkit-transition: all 0s;
424
+ -moz-transition: all 0s;
425
+ -o-transition: all 0s;
426
+ transition: all 0s;
536
427
  }
537
-
538
428
  .vjs-default-skin .vjs-big-play-button:before {
539
- content: "\e001"; /* Play icon */
429
+ content: "\e001";
540
430
  font-family: VideoJS;
541
- font-size: 3em;
542
- line-height: 2.66;
543
- text-shadow: 0.05em 0.05em 0.1em #000;
544
- text-align: center; /* Needed for IE8 */
431
+ /* In order to center the play icon vertically we need to set the line height
432
+ to the same as the button height */
545
433
 
434
+ line-height: 2.6em;
435
+ text-shadow: 0.05em 0.05em 0.1em #000;
436
+ text-align: center /* Needed for IE8 */;
546
437
  position: absolute;
547
438
  left: 0;
548
439
  width: 100%;
549
440
  height: 100%;
550
441
  }
551
-
552
442
  /* Loading Spinner
553
- ---------------------------------------------------------*/
443
+ --------------------------------------------------------------------------------
444
+ */
554
445
  .vjs-loading-spinner {
555
446
  display: none;
556
447
  position: absolute;
557
448
  top: 50%;
558
449
  left: 50%;
559
-
560
450
  font-size: 5em;
561
451
  line-height: 1;
562
-
563
452
  width: 1em;
564
453
  height: 1em;
565
-
566
454
  margin-left: -0.5em;
567
455
  margin-top: -0.5em;
568
-
569
456
  opacity: 0.75;
570
-
457
+ /* animation */
571
458
  -webkit-animation: spin 1.5s infinite linear;
572
- -moz-animation: spin 1.5s infinite linear;
573
- -o-animation: spin 1.5s infinite linear;
574
- animation: spin 1.5s infinite linear;
459
+ -moz-animation: spin 1.5s infinite linear;
460
+ -o-animation: spin 1.5s infinite linear;
461
+ animation: spin 1.5s infinite linear;
575
462
  }
576
-
577
463
  .vjs-default-skin .vjs-loading-spinner:before {
578
- content: "\e00a"; /* Loading spinner icon */
464
+ content: "\e00a";
579
465
  font-family: VideoJS;
580
-
581
466
  position: absolute;
467
+ top: 0;
468
+ left: 0;
582
469
  width: 1em;
583
470
  height: 1em;
584
471
  text-align: center;
585
472
  text-shadow: 0em 0em 0.1em #000;
586
473
  }
587
-
588
- /* Add a gradient to the spinner by overlaying another copy.
589
- Text gradient plus a text shadow doesn't work
590
- and `background-clip: text` only works in Webkit. */
591
- .vjs-default-skin .vjs-loading-spinner:after {
592
- content: "\e00a"; /* Loading spinner icon */
593
- font-family: VideoJS;
594
-
595
- position: absolute;
596
- width: 1em;
597
- height: 1em;
598
- text-align: center;
599
-
600
- -webkit-background-clip: text;
601
- -webkit-text-fill-color: transparent;
602
- }
603
-
604
474
  @-moz-keyframes spin {
605
- 0% { -moz-transform: rotate(0deg); }
606
- 100% { -moz-transform: rotate(359deg); }
475
+ 0% {
476
+ -moz-transform: rotate(0deg);
477
+ }
478
+ 100% {
479
+ -moz-transform: rotate(359deg);
480
+ }
607
481
  }
608
482
  @-webkit-keyframes spin {
609
- 0% { -webkit-transform: rotate(0deg); }
610
- 100% { -webkit-transform: rotate(359deg); }
483
+ 0% {
484
+ -webkit-transform: rotate(0deg);
485
+ }
486
+ 100% {
487
+ -webkit-transform: rotate(359deg);
488
+ }
611
489
  }
612
490
  @-o-keyframes spin {
613
- 0% { -o-transform: rotate(0deg); }
614
- 100% { -o-transform: rotate(359deg); }
615
- }
616
- @-ms-keyframes spin {
617
- 0% { -ms-transform: rotate(0deg); }
618
- 100% { -ms-transform: rotate(359deg); }
491
+ 0% {
492
+ -o-transform: rotate(0deg);
493
+ }
494
+ 100% {
495
+ -o-transform: rotate(359deg);
496
+ }
619
497
  }
620
498
  @keyframes spin {
621
- 0% { transform: rotate(0deg); }
622
- 100% { transform: rotate(359deg); }
499
+ 0% {
500
+ transform: rotate(0deg);
501
+ }
502
+ 100% {
503
+ transform: rotate(359deg);
504
+ }
623
505
  }
624
-
625
506
  /* Menu Buttons (Captions/Subtitles/etc.)
626
- -------------------------------------------------------------------------------- */
507
+ --------------------------------------------------------------------------------
508
+ */
627
509
  .vjs-default-skin .vjs-menu-button {
628
510
  float: right;
629
511
  cursor: pointer;
630
512
  }
631
-
632
513
  .vjs-default-skin .vjs-menu {
633
514
  display: none;
634
515
  position: absolute;
635
516
  bottom: 0;
636
- left: 0em; /* (Width of vjs-menu - width of button) / 2 */
517
+ left: 0em;
518
+ /* (Width of vjs-menu - width of button) / 2 */
519
+
637
520
  width: 0em;
638
521
  height: 0em;
639
522
  margin-bottom: 3em;
640
-
641
523
  border-left: 2em solid transparent;
642
524
  border-right: 2em solid transparent;
525
+ border-top: 1.55em solid #000000;
526
+ /* Same width top as ul bottom */
643
527
 
644
- border-top: 1.55em solid rgb(0, 0, 0); /* Same top as ul bottom */
645
- border-top-color: rgba(7, 40, 50, 0.5); /* Same as ul background */
646
- }
528
+ border-top-color: rgba(7, 40, 50, 0.5);
529
+ /* Same as ul background */
647
530
 
531
+ }
648
532
  /* Button Pop-up Menu */
649
533
  .vjs-default-skin .vjs-menu-button .vjs-menu .vjs-menu-content {
650
534
  display: block;
651
- padding: 0; margin: 0;
535
+ padding: 0;
536
+ margin: 0;
652
537
  position: absolute;
653
538
  width: 10em;
654
- bottom: 1.5em; /* Same bottom as vjs-menu border-top */
539
+ bottom: 1.5em;
540
+ /* Same bottom as vjs-menu border-top */
541
+
655
542
  max-height: 15em;
656
543
  overflow: auto;
544
+ left: -5em;
545
+ /* Width of menu - width of button / 2 */
657
546
 
658
- left: -5em; /* Width of menu - width of button / 2 */
659
-
660
- background-color: rgb(0, 0, 0);
661
- background-color: rgba(7, 40, 50, 0.7);
662
-
663
- -webkit-box-shadow: -20px -20px 0px rgba(255, 255, 255, 0.5);
664
- -moz-box-shadow: 0 0 1em rgba(255, 255, 255, 0.5);
665
- box-shadow: -0.2em -0.2em 0.3em rgba(255, 255, 255, 0.2);
547
+ /* background-color-with-alpha */
548
+ background-color: #07141e;
549
+ background-color: rgba(7, 20, 30, 0.7);
550
+ /* box-shadow */
551
+ -webkit-box-shadow: -0.2em -0.2em 0.3em rgba(255, 255, 255, 0.2);
552
+ -moz-box-shadow: -0.2em -0.2em 0.3em rgba(255, 255, 255, 0.2);
553
+ box-shadow: -0.2em -0.2em 0.3em rgba(255, 255, 255, 0.2);
666
554
  }
667
-
668
- /*.vjs-default-skin .vjs-menu-button:focus ul,*/ /* This is not needed because keyboard accessibility for the caption button is not handled with the focus any more. */
669
555
  .vjs-default-skin .vjs-menu-button:hover .vjs-menu {
670
556
  display: block;
671
557
  }
@@ -675,7 +561,6 @@ so you can upgrade to newer versions easier. You can remove all these styles by
675
561
  padding: 0.3em 0 0.3em 0;
676
562
  line-height: 1.4em;
677
563
  font-size: 1.2em;
678
- font-weight: normal;
679
564
  text-align: center;
680
565
  text-transform: lowercase;
681
566
  }
@@ -686,14 +571,15 @@ so you can upgrade to newer versions easier. You can remove all these styles by
686
571
  .vjs-default-skin .vjs-menu-button ul li:hover,
687
572
  .vjs-default-skin .vjs-menu-button ul li.vjs-selected:focus,
688
573
  .vjs-default-skin .vjs-menu-button ul li.vjs-selected:hover {
689
- background-color: rgb(255, 255, 255);
690
- background-color: rgba(255, 255, 255, 0.75);
691
- color: #111;
692
574
  outline: 0;
693
-
694
- -webkit-box-shadow: 0 0 1em rgba(255, 255, 255, 1);
695
- -moz-box-shadow: 0 0 1em rgba(255, 255, 255, 1);
696
- box-shadow: 0 0 1em rgba(255, 255, 255, 1);
575
+ color: #111;
576
+ /* background-color-with-alpha */
577
+ background-color: #ffffff;
578
+ background-color: rgba(255, 255, 255, 0.75);
579
+ /* box-shadow */
580
+ -webkit-box-shadow: 0 0 1em #ffffff;
581
+ -moz-box-shadow: 0 0 1em #ffffff;
582
+ box-shadow: 0 0 1em #ffffff;
697
583
  }
698
584
  .vjs-default-skin .vjs-menu-button ul li.vjs-menu-title {
699
585
  text-align: center;
@@ -705,22 +591,169 @@ so you can upgrade to newer versions easier. You can remove all these styles by
705
591
  font-weight: bold;
706
592
  cursor: default;
707
593
  }
708
-
709
594
  /* Subtitles Button */
710
- .vjs-default-skin .vjs-subtitles-button:before { content: "\e00c"; }
711
-
712
- /* There's unfortunately no CC button in FontAwesome, so we need
713
- to use another font. Please +1 the fontawesome request.
714
- https://github.com/FortAwesome/Font-Awesome/issues/968 */
595
+ .vjs-default-skin .vjs-subtitles-button:before {
596
+ content: "\e00c";
597
+ }
598
+ /* Captions Button */
715
599
  .vjs-default-skin .vjs-captions-button:before {
716
600
  content: "\e008";
717
601
  }
718
-
719
-
720
602
  /* Replacement for focus outline */
721
603
  .vjs-default-skin .vjs-captions-button:focus .vjs-control-content:before,
722
604
  .vjs-default-skin .vjs-captions-button:hover .vjs-control-content:before {
723
- -webkit-box-shadow: 0 0 1em rgba(255, 255, 255, 1);
724
- -moz-box-shadow: 0 0 1em rgba(255, 255, 255, 1);
725
- box-shadow: 0 0 1em rgba(255, 255, 255, 1);
605
+ /* box-shadow */
606
+ -webkit-box-shadow: 0 0 1em #ffffff;
607
+ -moz-box-shadow: 0 0 1em #ffffff;
608
+ box-shadow: 0 0 1em #ffffff;
609
+ }
610
+ /*
611
+ REQUIRED STYLES (be careful overriding)
612
+ ================================================================================
613
+ When loading the player, the video tag is replaced with a DIV,
614
+ that will hold the video tag or object tag for other playback methods.
615
+ The div contains the video playback element (Flash or HTML5) and controls,
616
+ and sets the width and height of the video.
617
+
618
+ ** If you want to add some kind of border/padding (e.g. a frame), or special
619
+ positioning, use another containing element. Otherwise you risk messing up
620
+ control positioning and full window mode. **
621
+ */
622
+ .video-js {
623
+ background-color: #000;
624
+ position: relative;
625
+ padding: 0;
626
+ /* Start with 10px for base font size so other dimensions can be em based and
627
+ easily calculable. */
628
+
629
+ font-size: 10px;
630
+ /* Allow poster to be vertially aligned. */
631
+
632
+ vertical-align: middle;
633
+ /* display: table-cell; */
634
+ /*This works in Safari but not Firefox.*/
635
+
636
+ /* Provide some basic defaults for fonts */
637
+
638
+ font-weight: normal;
639
+ font-style: normal;
640
+ /* Avoiding helvetica: issue #376 */
641
+
642
+ font-family: Arial, sans-serif;
643
+ /* Turn off user selection (text highlighting) by default.
644
+ The majority of player components will not be text blocks.
645
+ Text areas will need to turn user selection back on. */
646
+
647
+ /* user-select */
648
+ -webkit-user-select: none;
649
+ -moz-user-select: none;
650
+ -ms-user-select: none;
651
+ user-select: none;
652
+ }
653
+ /* Playback technology elements expand to the width/height of the containing div
654
+ <video> or <object> */
655
+ .video-js .vjs-tech {
656
+ position: absolute;
657
+ top: 0;
658
+ left: 0;
659
+ width: 100%;
660
+ height: 100%;
661
+ }
662
+ /* Fix for Firefox 9 fullscreen (only if it is enabled). Not needed when
663
+ checking fullScreenEnabled. */
664
+ .video-js:-moz-full-screen {
665
+ position: absolute;
666
+ }
667
+ /* Fullscreen Styles */
668
+ body.vjs-full-window {
669
+ padding: 0;
670
+ margin: 0;
671
+ height: 100%;
672
+ /* Fix for IE6 full-window. http://www.cssplay.co.uk/layouts/fixed.html */
673
+ overflow-y: auto;
674
+ }
675
+ .video-js.vjs-fullscreen {
676
+ position: fixed;
677
+ overflow: hidden;
678
+ z-index: 1000;
679
+ left: 0;
680
+ top: 0;
681
+ bottom: 0;
682
+ right: 0;
683
+ width: 100% !important;
684
+ height: 100% !important;
685
+ /* IE6 full-window (underscore hack) */
686
+ _position: absolute;
687
+ }
688
+ .video-js:-webkit-full-screen {
689
+ width: 100% !important;
690
+ height: 100% !important;
691
+ }
692
+ .video-js.vjs-fullscreen.vjs-user-inactive {
693
+ cursor: none;
694
+ }
695
+ /* Poster Styles */
696
+ .vjs-poster {
697
+ background-repeat: no-repeat;
698
+ background-position: 50% 50%;
699
+ background-size: contain;
700
+ cursor: pointer;
701
+ height: 100%;
702
+ margin: 0;
703
+ padding: 0;
704
+ position: relative;
705
+ width: 100%;
706
+ }
707
+ .vjs-poster img {
708
+ display: block;
709
+ margin: 0 auto;
710
+ max-height: 100%;
711
+ padding: 0;
712
+ width: 100%;
713
+ }
714
+ /* Hide the poster when native controls are used otherwise it covers them */
715
+ .video-js.vjs-using-native-controls .vjs-poster {
716
+ display: none;
717
+ }
718
+ /* Text Track Styles */
719
+ /* Overall track holder for both captions and subtitles */
720
+ .video-js .vjs-text-track-display {
721
+ text-align: center;
722
+ position: absolute;
723
+ bottom: 4em;
724
+ /* Leave padding on left and right */
725
+ left: 1em;
726
+ right: 1em;
727
+ }
728
+ /* Individual tracks */
729
+ .video-js .vjs-text-track {
730
+ display: none;
731
+ font-size: 1.4em;
732
+ text-align: center;
733
+ margin-bottom: 0.1em;
734
+ /* Transparent black background, or fallback to all black (oldIE) */
735
+ /* background-color-with-alpha */
736
+ background-color: #000000;
737
+ background-color: rgba(0, 0, 0, 0.5);
738
+ }
739
+ .video-js .vjs-subtitles {
740
+ color: #ffffff /* Subtitles are white */;
741
+ }
742
+ .video-js .vjs-captions {
743
+ color: #ffcc66 /* Captions are yellow */;
744
+ }
745
+ .vjs-tt-cue {
746
+ display: block;
747
+ }
748
+ /* Hide disabled or unsupported controls */
749
+ .vjs-default-skin .vjs-hidden {
750
+ display: none;
751
+ }
752
+ .vjs-lock-showing {
753
+ display: block !important;
754
+ opacity: 1;
755
+ visibility: visible;
726
756
  }
757
+ /* -----------------------------------------------------------------------------
758
+ The original source of this file lives at
759
+ https://github.com/videojs/video.js/blob/master/src/css/video-js.less */