vjs_rails 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1161 @@
1
+ /*!
2
+ Video.js Default Styles (http://videojs.com)
3
+ Version GENERATED_AT_BUILD
4
+ Create your own skin at http://designer.videojs.com
5
+ */
6
+
7
+ // To customize the player skin, change the values of the variables or edit the
8
+ // CSS below.
9
+ // (This file uses LESS. Learn more at http://lesscss.org/)
10
+
11
+ // The base font size controls the size of everything, not just text. All
12
+ // diminensions use em-based sizes so that the scale along with the font size.
13
+ // Try increasing it to 20px and see what happens.
14
+ @base-font-size: 10px;
15
+ @touch-device-font-size: 15px;
16
+
17
+ // The main font color controls the color of the text and the icons (font icons)
18
+ @main-font-color: #CCCCCC; // e.g. rgb(255, 255, 255) or #ffffff
19
+
20
+ // The default color of control backgrounds is mostly black but with a little
21
+ // bit of blue so it can still be seen on all black video frames, which are
22
+ // common.
23
+ @control-bg-color: #07141E; // e.g. rgb(255, 255, 255) or #ffffff
24
+ @control-bg-alpha: 0.7; // 1.0 = 100% opacity, 0.0 = 0% opacity
25
+
26
+ // The slider bar color is used for the progress bar and the volume bar
27
+ @slider-bar-color: #66A8CC; // e.g. rgb(255, 255, 255) or #ffffff
28
+ // The background of the progress bar and volume bar have a lined pattern that
29
+ // is created from a base64 encoded image. You can generate your own pattern at
30
+ // http://www.patternify.com/ then replace the value in the quotes with your own
31
+ @slider-bar-pattern: ~'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAP0lEQVQIHWWMAQoAIAgDR/QJ/Ub//04+w7ZICBwcOg5FZi5iBB82AGzixEglJrd4TVK5XUJpskSTEvpdFzX9AB2pGziSQcvAAAAAAElFTkSuQmCC';
32
+ // The color of the slider background
33
+ @slider-background-color: #333333;
34
+ @slider-background-alpha: 0.9; // 1.0 = 100% opacity, 0.0 = 0% opacity
35
+
36
+ // The "Big Play Button" is the play button that shows before the video plays.
37
+ // To center it set the align values to center and middle. The typical location
38
+ // of the button is the center, but there is trend towards moving it to a corner
39
+ // where it gets out of the way of valuable content in the poster image.
40
+ @big-play-align: left; // left, center, or right
41
+ @big-play-vertical-align: top; // top, middle, or bottom
42
+ // The button colors match the control colors by default but you can customize
43
+ // them by replace the variables (@control-bg-color) with your own color values.
44
+ @big-play-bg-color: @control-bg-color;
45
+ @big-play-bg-alpha: @control-bg-alpha;
46
+ // The font size is what makes the big play button, big. All width/height values
47
+ // use ems, which are a multiple of the font size.
48
+ // If the @base-font-size is 10px, then 3em equals 30px.
49
+ @big-play-font-size: 3em;
50
+ // Now that font size is set, the following em values will be a multiple of the
51
+ // new font size. If @big-play-font-size is 3em (30px), then setting the any of
52
+ // the following values to 2em would equal 60px. 2 * font-size
53
+ @big-play-margin: 0.5em;
54
+ @big-play-width: 4em;
55
+ @big-play-height: 2.6em;
56
+ @big-play-border-radius: 0.8em;
57
+ @big-play-border-width: 0.1em;
58
+ @big-play-border-color: #3b4249;
59
+
60
+ /* SKIN
61
+ ================================================================================
62
+ The main class name for all skin-specific styles. To make your own skin,
63
+ replace all occurances of 'vjs-default-skin' with a new name. Then add your new
64
+ skin name to your video tag instead of the default skin.
65
+ e.g. <video class="video-js my-skin-name">
66
+ */
67
+ .vjs-default-skin {
68
+ color: @main-font-color;
69
+ }
70
+
71
+ /* Custom Icon Font
72
+ --------------------------------------------------------------------------------
73
+ The control icons are from a custom font. Each icon corresponds to a character
74
+ (e.g. "\e001"). Font icons allow for easy scaling and coloring of icons.
75
+ */
76
+ @font-face{
77
+ font-family: 'VideoJS';
78
+ src: url(<%= asset_path 'vjs.eot' %>);
79
+ src: url(<%= asset_path 'vjs.eot?#iefix' %>) format('embedded-opentype'),
80
+ url(<%= asset_path 'vjs.woff' %>) format('woff'),
81
+ url(<%= asset_path 'vjs.ttf' %>) format('truetype'),
82
+ url(<%= asset_path 'vjs.svg#icomoon' %>) format('svg');
83
+
84
+ font-weight: normal;
85
+ font-style: normal;
86
+ }
87
+
88
+ // Icon font character values
89
+ @play-icon: "\e001";
90
+ @pause-icon: "\e002";
91
+ @volume-muted-icon: "\e003";
92
+ @volume-low-icon: "\e004";
93
+ @volume-mid-icon: "\e005";
94
+ @volume-high-icon: "\e006";
95
+ @fullscreen-enter-icon: "\e000";
96
+ @fullscreen-exit-icon: "\e00b";
97
+ @square-icon: "\e009";
98
+ @spinner-icon: "\e00a";
99
+ @spinner2-icon: "\e00d";
100
+ @spinner3-icon: "\e01e";
101
+ @spinner4-icon: "\e01f";
102
+ @subtitles-icon: "\e00c";
103
+ @captions-icon: "\e008";
104
+ @chapters-icon: "\e00c";
105
+ @share-icon: "\e00e";
106
+ @cog-icon: "\e600";
107
+
108
+ /* Base UI Component Classes
109
+ --------------------------------------------------------------------------------
110
+ */
111
+
112
+ /* Slider - used for Volume bar and Seek bar */
113
+ .vjs-default-skin .vjs-slider {
114
+ /* Replace browser focus hightlight with handle highlight *///
115
+ outline: 0;
116
+ position: relative;
117
+ cursor: pointer;
118
+ padding: 0;
119
+
120
+ .background-color-with-alpha(@slider-background-color, @slider-background-alpha);
121
+ }
122
+
123
+ .vjs-default-skin .vjs-slider:focus {
124
+ .box-shadow(0 0 2em #fff);
125
+ }
126
+
127
+ .vjs-default-skin .vjs-slider-handle {
128
+ position: absolute;
129
+ /* Needed for IE6 *///
130
+ left: 0;
131
+ top: 0;
132
+ }
133
+
134
+ .vjs-default-skin .vjs-slider-handle:before {
135
+ content: @square-icon;
136
+ font-family: VideoJS;
137
+ font-size: 1em;
138
+ line-height: 1;
139
+ text-align: center;
140
+ text-shadow: 0em 0em 1em #fff;
141
+
142
+ position: absolute;
143
+ top: 0;
144
+ left: 0;
145
+
146
+ /* Rotate the square icon to make a diamond *///
147
+ .transform(rotate(-45deg));
148
+ }
149
+
150
+ /* Control Bar
151
+ --------------------------------------------------------------------------------
152
+ The default control bar that is a container for most of the controls.
153
+ */
154
+ .vjs-default-skin .vjs-control-bar {
155
+ /* Start hidden *///
156
+ display: none;
157
+ position: absolute;
158
+ /* Place control bar at the bottom of the player box/video.
159
+ If you want more margin below the control bar, add more height. *///
160
+ bottom: 0;
161
+ /* Use left/right to stretch to 100% width of player div *///
162
+ left: 0;
163
+ right: 0;
164
+ /* Height includes any margin you want above or below control items *///
165
+ height: 3.0em;
166
+
167
+ .background-color-with-alpha(@control-bg-color, @control-bg-alpha);
168
+ }
169
+
170
+ /* Show the control bar only once the video has started playing */
171
+ .vjs-default-skin.vjs-has-started .vjs-control-bar {
172
+ display: block;
173
+ /* Visibility needed to make sure things hide in older browsers too. */
174
+ visibility: visible;
175
+ opacity: 1;
176
+
177
+ @trans: visibility 0.1s, opacity 0.1s; // Var needed because of comma
178
+ .transition(@trans);
179
+ }
180
+
181
+ /* Hide the control bar when the video is playing and the user is inactive */
182
+ .vjs-default-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar {
183
+ display: block;
184
+ visibility: hidden;
185
+ opacity: 0;
186
+
187
+ @trans: visibility 1.0s, opacity 1.0s;
188
+ .transition(@trans);
189
+ }
190
+
191
+ .vjs-default-skin.vjs-controls-disabled .vjs-control-bar {
192
+ display: none;
193
+ }
194
+
195
+ .vjs-default-skin.vjs-using-native-controls .vjs-control-bar {
196
+ display: none;
197
+ }
198
+
199
+ /* The control bar shouldn't show after an error */
200
+ .vjs-default-skin.vjs-error .vjs-control-bar {
201
+ display: none;
202
+ }
203
+
204
+ /* Don't hide the control bar if it's audio */
205
+ .vjs-audio.vjs-default-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar {
206
+ opacity: 1;
207
+ visibility: visible;
208
+ }
209
+
210
+ /* IE8 is flakey with fonts, and you have to change the actual content to force
211
+ fonts to show/hide properly.
212
+ - "\9" IE8 hack didn't work for this
213
+ - Found in XP IE8 from http://modern.ie. Does not show up in "IE8 mode" in IE9
214
+ */
215
+ @ie8screen: ~"\0screen";
216
+ .vjs-default-skin.vjs-user-inactive.vjs-playing .vjs-control-bar :before {
217
+ @media @ie8screen { content: ""; }
218
+ }
219
+
220
+ /* General styles for individual controls. */
221
+ .vjs-default-skin .vjs-control {
222
+ outline: none;
223
+ position: relative;
224
+ float: left;
225
+ text-align: center;
226
+ margin: 0;
227
+ padding: 0;
228
+ height: 3.0em;
229
+ width: 4em;
230
+ }
231
+
232
+ /* Font button icons */
233
+ .vjs-default-skin .vjs-control:before {
234
+ font-family: VideoJS;
235
+ font-size: 1.5em;
236
+ line-height: 2;
237
+ position: absolute;
238
+ top: 0;
239
+ left: 0;
240
+ width: 100%;
241
+ height: 100%;
242
+ text-align: center;
243
+ text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
244
+ }
245
+
246
+ /* Replacement for focus outline */
247
+ .vjs-default-skin .vjs-control:focus:before,
248
+ .vjs-default-skin .vjs-control:hover:before {
249
+ text-shadow: 0em 0em 1em rgba(255, 255, 255, 1);
250
+ }
251
+
252
+ .vjs-default-skin .vjs-control:focus {
253
+ /* outline: 0; *///
254
+ /* keyboard-only users cannot see the focus on several of the UI elements when
255
+ this is set to 0 */
256
+ }
257
+
258
+ /* Hide control text visually, but have it available for screenreaders */
259
+ .vjs-default-skin .vjs-control-text {
260
+ .hide-visually;
261
+ }
262
+
263
+ /* Play/Pause
264
+ --------------------------------------------------------------------------------
265
+ */
266
+ .vjs-default-skin .vjs-play-control {
267
+ width: 5em;
268
+ cursor: pointer;
269
+ }
270
+ .vjs-default-skin .vjs-play-control:before {
271
+ content: @play-icon;
272
+ }
273
+ .vjs-default-skin.vjs-playing .vjs-play-control:before {
274
+ content: @pause-icon;
275
+ }
276
+
277
+ /* Playback toggle
278
+ --------------------------------------------------------------------------------
279
+ */
280
+ .vjs-default-skin .vjs-playback-rate .vjs-playback-rate-value {
281
+ font-size: 1.5em;
282
+ line-height: 2;
283
+ position: absolute;
284
+ top: 0;
285
+ left: 0;
286
+ width: 100%;
287
+ height: 100%;
288
+ text-align: center;
289
+ text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
290
+ }
291
+
292
+ .vjs-default-skin .vjs-playback-rate.vjs-menu-button .vjs-menu .vjs-menu-content {
293
+ width: 4em;
294
+ left: -2em;
295
+ list-style: none;
296
+ }
297
+
298
+ /* Volume/Mute
299
+ -------------------------------------------------------------------------------- */
300
+ .vjs-default-skin .vjs-mute-control,
301
+ .vjs-default-skin .vjs-volume-menu-button {
302
+ cursor: pointer;
303
+ float: right;
304
+ }
305
+ .vjs-default-skin .vjs-mute-control:before,
306
+ .vjs-default-skin .vjs-volume-menu-button:before {
307
+ content: @volume-high-icon;
308
+ }
309
+ .vjs-default-skin .vjs-mute-control.vjs-vol-0:before,
310
+ .vjs-default-skin .vjs-volume-menu-button.vjs-vol-0:before {
311
+ content: @volume-muted-icon;
312
+ }
313
+ .vjs-default-skin .vjs-mute-control.vjs-vol-1:before,
314
+ .vjs-default-skin .vjs-volume-menu-button.vjs-vol-1:before {
315
+ content: @volume-low-icon;
316
+ }
317
+ .vjs-default-skin .vjs-mute-control.vjs-vol-2:before,
318
+ .vjs-default-skin .vjs-volume-menu-button.vjs-vol-2:before {
319
+ content: @volume-mid-icon;
320
+ }
321
+
322
+ .vjs-default-skin .vjs-volume-control {
323
+ width: 5em;
324
+ float: right;
325
+ }
326
+ .vjs-default-skin .vjs-volume-bar {
327
+ width: 5em;
328
+ height: 0.6em;
329
+ margin: 1.1em auto 0;
330
+ }
331
+
332
+ .vjs-default-skin .vjs-volume-level {
333
+ position: absolute;
334
+ top: 0;
335
+ left: 0;
336
+ height: 0.5em;
337
+ /* assuming volume starts at 1.0 */
338
+ width: 100%;
339
+
340
+ background: @slider-bar-color
341
+ url(@slider-bar-pattern)
342
+ -50% 0 repeat;
343
+ }
344
+ .vjs-default-skin .vjs-volume-bar .vjs-volume-handle {
345
+ width: 0.5em;
346
+ height: 0.5em;
347
+ /* Assumes volume starts at 1.0. If you change the size of the
348
+ handle relative to the volume bar, you'll need to update this value
349
+ too. */
350
+ left: 4.5em;
351
+ }
352
+
353
+ .vjs-default-skin .vjs-volume-handle:before {
354
+ font-size: 0.9em;
355
+ top: -0.2em;
356
+ left: -0.2em;
357
+
358
+ width: 1em;
359
+ height: 1em;
360
+ }
361
+
362
+ /* The volume menu button is like menu buttons (captions/subtitles) but works
363
+ a little differently. It needs to be possible to tab to the volume slider
364
+ without hitting space bar on the menu button. To do this we're not using
365
+ display:none to hide the slider menu by default, and instead setting the
366
+ width and height to zero. */
367
+ .vjs-default-skin .vjs-volume-menu-button .vjs-menu {
368
+ display: block;
369
+ width: 0;
370
+ height: 0;
371
+ border-top-color: transparent;
372
+ }
373
+
374
+ .vjs-default-skin .vjs-volume-menu-button .vjs-menu .vjs-menu-content {
375
+ height: 0;
376
+ width: 0;
377
+ }
378
+
379
+ .vjs-default-skin .vjs-volume-menu-button:hover .vjs-menu,
380
+ .vjs-default-skin .vjs-volume-menu-button .vjs-menu.vjs-lock-showing {
381
+ border-top-color: rgba(7, 40, 50, 0.5); /* Same as ul background */
382
+ }
383
+
384
+ .vjs-default-skin .vjs-volume-menu-button:hover .vjs-menu .vjs-menu-content,
385
+ .vjs-default-skin .vjs-volume-menu-button .vjs-menu.vjs-lock-showing .vjs-menu-content {
386
+ height: 2.9em;
387
+ width: 10em;
388
+ }
389
+
390
+ /* Progress
391
+ --------------------------------------------------------------------------------
392
+ */
393
+ .vjs-default-skin .vjs-progress-control {
394
+ position: absolute;
395
+ left: 0;
396
+ right: 0;
397
+ width: auto;
398
+ font-size: 0.3em;
399
+ height: 1em;
400
+ /* Set above the rest of the controls. *///
401
+ top: -1em;
402
+
403
+ /* Shrink the bar slower than it grows. *///
404
+ .transition(all 0.4s);
405
+ }
406
+
407
+ /* On hover, make the progress bar grow to something that's more clickable.
408
+ This simply changes the overall font for the progress bar, and this
409
+ updates both the em-based widths and heights, as wells as the icon font */
410
+ .vjs-default-skin:hover .vjs-progress-control {
411
+ font-size: .9em;
412
+
413
+ /* Even though we're not changing the top/height, we need to include them in
414
+ the transition so they're handled correctly. */
415
+ .transition(all 0.2s);
416
+ }
417
+
418
+ /* Box containing play and load progresses. Also acts as seek scrubber. */
419
+ .vjs-default-skin .vjs-progress-holder {
420
+ height: 100%;
421
+ }
422
+
423
+ /* Progress Bars */
424
+ .vjs-default-skin .vjs-progress-holder .vjs-play-progress,
425
+ .vjs-default-skin .vjs-progress-holder .vjs-load-progress,
426
+ .vjs-default-skin .vjs-progress-holder .vjs-load-progress div {
427
+ position: absolute;
428
+ display: block;
429
+ height: 100%;
430
+ margin: 0;
431
+ padding: 0;
432
+ /* updated by javascript during playback */
433
+ width: 0;
434
+ /* Needed for IE6 *///
435
+ left: 0;
436
+ top: 0;
437
+ }
438
+
439
+ .vjs-default-skin .vjs-play-progress {
440
+ /*
441
+ Using a data URI to create the white diagonal lines with a transparent
442
+ background. Surprisingly works in IE8.
443
+ Created using http://www.patternify.com
444
+ Changing the first color value will change the bar color.
445
+ Also using a paralax effect to make the lines move backwards.
446
+ The -50% left position makes that happen.
447
+ */
448
+ background: @slider-bar-color
449
+ url(@slider-bar-pattern)
450
+ -50% 0 repeat;
451
+ }
452
+ .vjs-default-skin .vjs-load-progress {
453
+ background: rgb(100, 100, 100) /* IE8- Fallback */;
454
+ background: rgba(255, 255, 255, 0.2);
455
+ }
456
+
457
+ /* there are child elements of the load progress bar that represent the
458
+ specific time ranges that have been buffered */
459
+ .vjs-default-skin .vjs-load-progress div {
460
+ background: rgb(120, 120, 120) /* IE8- Fallback */;
461
+ background: rgba(255, 255, 255, 0.1);
462
+ }
463
+
464
+ .vjs-default-skin .vjs-seek-handle {
465
+ width: 1.5em;
466
+ height: 100%;
467
+ }
468
+
469
+ .vjs-default-skin .vjs-seek-handle:before {
470
+ padding-top: 0.1em /* Minor adjustment */;
471
+ }
472
+
473
+ /* Live Mode
474
+ --------------------------------------------------------------------------------
475
+ */
476
+ .vjs-default-skin.vjs-live .vjs-time-controls,
477
+ .vjs-default-skin.vjs-live .vjs-time-divider,
478
+ .vjs-default-skin.vjs-live .vjs-progress-control {
479
+ display: none;
480
+ }
481
+ .vjs-default-skin.vjs-live .vjs-live-display {
482
+ display: block;
483
+ }
484
+
485
+ /* Live Display
486
+ --------------------------------------------------------------------------------
487
+ */
488
+ .vjs-default-skin .vjs-live-display {
489
+ display: none;
490
+ font-size: 1em;
491
+ line-height: 3em;
492
+ }
493
+
494
+ /* Time Display
495
+ --------------------------------------------------------------------------------
496
+ */
497
+ .vjs-default-skin .vjs-time-controls {
498
+ font-size: 1em;
499
+ /* Align vertically by making the line height the same as the control bar *///
500
+ line-height: 3em;
501
+ }
502
+ .vjs-default-skin .vjs-current-time { float: left; }
503
+ .vjs-default-skin .vjs-duration { float: left; }
504
+ /* Remaining time is in the HTML, but not included in default design */
505
+ .vjs-default-skin .vjs-remaining-time { display: none; float: left; }
506
+ .vjs-time-divider { float: left; line-height: 3em; }
507
+
508
+ /* Fullscreen
509
+ --------------------------------------------------------------------------------
510
+ */
511
+ .vjs-default-skin .vjs-fullscreen-control {
512
+ width: 3.8em;
513
+ cursor: pointer;
514
+ float: right;
515
+ }
516
+ .vjs-default-skin .vjs-fullscreen-control:before {
517
+ content: @fullscreen-enter-icon;
518
+ }
519
+ /* Switch to the exit icon when the player is in fullscreen */
520
+ .vjs-default-skin.vjs-fullscreen .vjs-fullscreen-control:before {
521
+ content: @fullscreen-exit-icon;
522
+ }
523
+
524
+ /* Big Play Button (play button at start)
525
+ --------------------------------------------------------------------------------
526
+ Positioning of the play button in the center or other corners can be done more
527
+ easily in the skin designer. http://designer.videojs.com/
528
+ */
529
+ .vjs-default-skin .vjs-big-play-button {
530
+ // Calculate total width/height so we're able to center the button
531
+ @total-width: (@big-play-width + (@big-play-border-width * 2));
532
+ @total-height: (@big-play-height + (@big-play-border-width * 2));
533
+ // Position the button using the absolute-align mixin (bottom of page)
534
+ .absolute-align(@big-play-align, @big-play-margin, @total-width);
535
+ .absolute-align(@big-play-vertical-align, @big-play-margin, @total-height);
536
+
537
+ font-size: @big-play-font-size;
538
+ display: block;
539
+ z-index: 2;
540
+ position: absolute;
541
+ width: @big-play-width;
542
+ height: @big-play-height;
543
+ text-align: center;
544
+ vertical-align: middle;
545
+ cursor: pointer;
546
+ opacity: 1;
547
+
548
+ /* Need a slightly gray bg so it can be seen on black backgrounds *///
549
+ .background-color-with-alpha(@big-play-bg-color, @big-play-bg-alpha);
550
+
551
+ border: @big-play-border-width solid @big-play-border-color;
552
+
553
+ .border-radius(@big-play-border-radius);
554
+ .box-shadow(0px 0px 1em rgba(255, 255, 255, 0.25));
555
+ .transition(all 0.4s);
556
+ }
557
+
558
+ /* Optionally center */
559
+ .vjs-default-skin.vjs-big-play-centered .vjs-big-play-button {
560
+ @total-width: (@big-play-width + (@big-play-border-width * 2));
561
+ @total-height: (@big-play-height + (@big-play-border-width * 2));
562
+
563
+ .absolute-align(center, @big-play-margin, @total-width);
564
+ .absolute-align(middle, @big-play-margin, @total-height);
565
+ }
566
+
567
+ /* Hide if controls are disabled */
568
+ .vjs-default-skin.vjs-controls-disabled .vjs-big-play-button {
569
+ display: none;
570
+ }
571
+ /* Hide when video starts playing */
572
+ .vjs-default-skin.vjs-has-started .vjs-big-play-button {
573
+ display: none;
574
+ }
575
+ /* Hide on mobile devices. Remove when we stop using native controls
576
+ by default on mobile */
577
+ .vjs-default-skin.vjs-using-native-controls .vjs-big-play-button {
578
+ display: none;
579
+ }
580
+
581
+ .vjs-default-skin:hover .vjs-big-play-button,
582
+ .vjs-default-skin .vjs-big-play-button:focus {
583
+ outline: 0;
584
+ border-color: #fff;
585
+ /* IE8 needs a non-glow hover state *///
586
+ background-color: rgb(80, 80, 80);
587
+ background-color: rgba(50, 50, 50, 0.75);
588
+
589
+ .box-shadow(0 0 3em #fff);
590
+ .transition(all 0s);
591
+ }
592
+
593
+ .vjs-default-skin .vjs-big-play-button:before {
594
+ content: @play-icon;
595
+ font-family: VideoJS;
596
+ /* In order to center the play icon vertically we need to set the line height
597
+ to the same as the button height */
598
+ line-height: @big-play-height;
599
+ text-shadow: 0.05em 0.05em 0.1em #000;
600
+ text-align: center /* Needed for IE8 */;
601
+
602
+ position: absolute;
603
+ left: 0;
604
+ width: 100%;
605
+ height: 100%;
606
+ }
607
+
608
+ .vjs-error .vjs-big-play-button {
609
+ display: none;
610
+ }
611
+
612
+ /* Error Display
613
+ --------------------------------------------------------------------------------
614
+ */
615
+
616
+ .vjs-error-display {
617
+ display: none;
618
+ }
619
+
620
+ .vjs-error .vjs-error-display {
621
+ display: block;
622
+ position: absolute;
623
+ left: 0;
624
+ top: 0;
625
+ width: 100%;
626
+ height: 100%;
627
+ }
628
+
629
+ .vjs-error .vjs-error-display:before {
630
+ content: 'X';
631
+ font-family: Arial;
632
+ font-size: 4em;
633
+ color: #666666;
634
+ /* In order to center the play icon vertically we need to set the line height
635
+ to the same as the button height */
636
+ line-height: 1;
637
+ text-shadow: 0.05em 0.05em 0.1em #000;
638
+ text-align: center /* Needed for IE8 */;
639
+ vertical-align: middle;
640
+
641
+ position: absolute;
642
+ left: 0;
643
+ top: 50%;
644
+ margin-top: -0.5em;
645
+ width: 100%;
646
+ }
647
+
648
+ .vjs-error-display div {
649
+ position: absolute;
650
+ bottom: 1em;
651
+ right: 0;
652
+ left: 0;
653
+
654
+ font-size: 1.4em;
655
+ text-align: center;
656
+ padding: 3px;
657
+ background: rgb(0, 0, 0); // fallback to just black
658
+ background: rgba(0,0,0,0.5); // Normally show black at 50% opacity
659
+ }
660
+
661
+ .vjs-error-display a, .vjs-error-display a:visited {
662
+ color: #F4A460;
663
+ }
664
+
665
+ /* Loading Spinner
666
+ --------------------------------------------------------------------------------
667
+ */
668
+
669
+ .vjs-loading-spinner {
670
+ /* Should be hidden by default *///
671
+ display: none;
672
+
673
+ position: absolute;
674
+ top: 50%;
675
+ left: 50%;
676
+
677
+ font-size: 4em;
678
+ line-height: 1;
679
+
680
+ width: 1em;
681
+ height: 1em;
682
+
683
+ margin-left: -0.5em;
684
+ margin-top: -0.5em;
685
+
686
+ opacity: 0.75;
687
+ }
688
+
689
+ /* Show the spinner when waiting for data and seeking to a new time */
690
+ .vjs-waiting .vjs-loading-spinner,
691
+ .vjs-seeking .vjs-loading-spinner {
692
+ display: block;
693
+
694
+ /* only animate when showing because it can be processor heavy *///
695
+ .animation(spin 1.5s infinite linear);
696
+ }
697
+
698
+ /* Errors are unrecoverable without user interaction so hide the spinner */
699
+ .vjs-error .vjs-loading-spinner {
700
+ display: none;
701
+
702
+ /* ensure animation doesn't continue while hidden *///
703
+ .animation(none);
704
+ }
705
+
706
+ .vjs-default-skin .vjs-loading-spinner:before {
707
+ content: @spinner3-icon;
708
+ font-family: VideoJS;
709
+
710
+ position: absolute;
711
+ top: 0;
712
+ left: 0;
713
+ width: 1em;
714
+ height: 1em;
715
+ text-align: center;
716
+ text-shadow: 0em 0em 0.1em #000;
717
+ }
718
+
719
+ @-moz-keyframes spin {
720
+ 0% { -moz-transform: rotate(0deg); }
721
+ 100% { -moz-transform: rotate(359deg); }
722
+ }
723
+ @-webkit-keyframes spin {
724
+ 0% { -webkit-transform: rotate(0deg); }
725
+ 100% { -webkit-transform: rotate(359deg); }
726
+ }
727
+ @-o-keyframes spin {
728
+ 0% { -o-transform: rotate(0deg); }
729
+ 100% { -o-transform: rotate(359deg); }
730
+ }
731
+ @keyframes spin {
732
+ 0% { transform: rotate(0deg); }
733
+ 100% { transform: rotate(359deg); }
734
+ }
735
+
736
+ /* Menu Buttons (Captions/Subtitles/etc.)
737
+ --------------------------------------------------------------------------------
738
+ */
739
+ .vjs-default-skin .vjs-menu-button {
740
+ float: right;
741
+ cursor: pointer;
742
+ }
743
+
744
+ .vjs-default-skin .vjs-menu {
745
+ display: none;
746
+ position: absolute;
747
+ bottom: 0;
748
+ left: 0em; /* (Width of vjs-menu - width of button) / 2 */
749
+ width: 0em;
750
+ height: 0em;
751
+ margin-bottom: 3em;
752
+
753
+ border-left: 2em solid transparent;
754
+ border-right: 2em solid transparent;
755
+
756
+ border-top: 1.55em solid rgb(0, 0, 0); /* Same width top as ul bottom */
757
+ border-top-color: rgba(7, 40, 50, 0.5); /* Same as ul background */
758
+ }
759
+
760
+ /* Button Pop-up Menu */
761
+ .vjs-default-skin .vjs-menu-button .vjs-menu .vjs-menu-content {
762
+ display: block;
763
+ padding: 0; margin: 0;
764
+ position: absolute;
765
+ width: 10em;
766
+ bottom: 1.5em; /* Same bottom as vjs-menu border-top */
767
+ max-height: 15em;
768
+ overflow: auto;
769
+
770
+ left: -5em; /* Width of menu - width of button / 2 */
771
+
772
+ .background-color-with-alpha(@control-bg-color, @control-bg-alpha);
773
+ .box-shadow(-0.2em -0.2em 0.3em rgba(255, 255, 255, 0.2));
774
+ }
775
+
776
+ .vjs-default-skin .vjs-menu-button:hover .vjs-control-content .vjs-menu,
777
+ .vjs-default-skin .vjs-control-content .vjs-menu.vjs-lock-showing {
778
+ display: block;
779
+ }
780
+ .vjs-default-skin .vjs-menu-button ul li {
781
+ list-style: none;
782
+ margin: 0;
783
+ padding: 0.3em 0 0.3em 0;
784
+ line-height: 1.4em;
785
+ font-size: 1.2em;
786
+ text-align: center;
787
+ text-transform: lowercase;
788
+ }
789
+ .vjs-default-skin .vjs-menu-button ul li.vjs-selected {
790
+ background-color: #000;
791
+ }
792
+ .vjs-default-skin .vjs-menu-button ul li:focus,
793
+ .vjs-default-skin .vjs-menu-button ul li:hover,
794
+ .vjs-default-skin .vjs-menu-button ul li.vjs-selected:focus,
795
+ .vjs-default-skin .vjs-menu-button ul li.vjs-selected:hover {
796
+ outline: 0;
797
+ color: #111;
798
+
799
+ .background-color-with-alpha(rgb(255, 255, 255), 0.75);
800
+ .box-shadow(0 0 1em rgba(255, 255, 255, 1));
801
+ }
802
+ .vjs-default-skin .vjs-menu-button ul li.vjs-menu-title {
803
+ text-align: center;
804
+ text-transform: uppercase;
805
+ font-size: 1em;
806
+ line-height: 2em;
807
+ padding: 0;
808
+ margin: 0 0 0.3em 0;
809
+ font-weight: bold;
810
+ cursor: default;
811
+ }
812
+
813
+ /* Subtitles Button */
814
+ .vjs-default-skin .vjs-subtitles-button:before {
815
+ content: @subtitles-icon;
816
+ }
817
+
818
+ /* Captions Button */
819
+ .vjs-default-skin .vjs-captions-button:before {
820
+ content: @captions-icon;
821
+ }
822
+
823
+ /* Chapters Button */
824
+ .vjs-default-skin .vjs-chapters-button:before {
825
+ content: @chapters-icon;
826
+ }
827
+
828
+ .vjs-default-skin .vjs-chapters-button.vjs-menu-button .vjs-menu .vjs-menu-content {
829
+ width: 24em;
830
+ left: -12em;
831
+ }
832
+
833
+ /* Replacement for focus outline */
834
+ .vjs-default-skin .vjs-captions-button:focus .vjs-control-content:before,
835
+ .vjs-default-skin .vjs-captions-button:hover .vjs-control-content:before {
836
+ .box-shadow(0 0 1em rgba(255, 255, 255, 1));
837
+ }
838
+
839
+ /*
840
+ REQUIRED STYLES (be careful overriding)
841
+ ================================================================================
842
+ When loading the player, the video tag is replaced with a DIV,
843
+ that will hold the video tag or object tag for other playback methods.
844
+ The div contains the video playback element (Flash or HTML5) and controls,
845
+ and sets the width and height of the video.
846
+
847
+ ** If you want to add some kind of border/padding (e.g. a frame), or special
848
+ positioning, use another containing element. Otherwise you risk messing up
849
+ control positioning and full window mode. **
850
+ */
851
+ .video-js {
852
+ background-color: #000;
853
+ position: relative;
854
+ padding: 0;
855
+ /* Start with 10px for base font size so other dimensions can be em based and
856
+ easily calculable. */
857
+ font-size: @base-font-size;
858
+ /* Allow poster to be vertially aligned. */
859
+ vertical-align: middle;
860
+ /* display: table-cell; */ /*This works in Safari but not Firefox.*/
861
+
862
+ /* Provide some basic defaults for fonts */
863
+ font-weight: normal;
864
+ font-style: normal;
865
+ /* Avoiding helvetica: issue #376 */
866
+ font-family: Arial, sans-serif;
867
+
868
+ /* Turn off user selection (text highlighting) by default.
869
+ The majority of player components will not be text blocks.
870
+ Text areas will need to turn user selection back on. */
871
+ .user-select(none);
872
+ }
873
+
874
+ /* Playback technology elements expand to the width/height of the containing div
875
+ <video> or <object> */
876
+ .video-js .vjs-tech {
877
+ position: absolute;
878
+ top: 0;
879
+ left: 0;
880
+ width: 100%;
881
+ height: 100%;
882
+ }
883
+
884
+ /* Fix for Firefox 9 fullscreen (only if it is enabled). Not needed when
885
+ checking fullScreenEnabled. */
886
+ .video-js:-moz-full-screen { position: absolute; }
887
+
888
+ /* Fullscreen Styles */
889
+ body.vjs-full-window {
890
+ padding: 0;
891
+ margin: 0;
892
+ height: 100%;
893
+ /* Fix for IE6 full-window. http://www.cssplay.co.uk/layouts/fixed.html *///
894
+ overflow-y: auto;
895
+ }
896
+ .video-js.vjs-fullscreen {
897
+ position: fixed;
898
+ overflow: hidden;
899
+ z-index: 1000;
900
+ left: 0;
901
+ top: 0;
902
+ bottom: 0;
903
+ right: 0;
904
+ width: 100% !important;
905
+ height: 100% !important;
906
+ /* IE6 full-window (underscore hack) *///
907
+ _position: absolute;
908
+ }
909
+ .video-js:-webkit-full-screen {
910
+ width: 100% !important;
911
+ height: 100% !important;
912
+ }
913
+ .video-js.vjs-fullscreen.vjs-user-inactive {
914
+ cursor: none;
915
+ }
916
+
917
+ /* Poster Styles */
918
+ .vjs-poster {
919
+ background-repeat: no-repeat;
920
+ background-position: 50% 50%;
921
+ background-size: contain;
922
+ cursor: pointer;
923
+ margin: 0;
924
+ padding: 0;
925
+ position: absolute;
926
+ top: 0;
927
+ right: 0;
928
+ bottom: 0;
929
+ left: 0;
930
+ }
931
+ .vjs-poster img {
932
+ display: block;
933
+ margin: 0 auto;
934
+ max-height: 100%;
935
+ padding: 0;
936
+ width: 100%;
937
+ }
938
+
939
+ /* Hide the poster when native controls are used otherwise it covers them */
940
+ .video-js.vjs-using-native-controls .vjs-poster {
941
+ display: none;
942
+ }
943
+
944
+ /* Text Track Styles */
945
+ /* Overall track holder for both captions and subtitles */
946
+ .video-js .vjs-text-track-display {
947
+ text-align: center;
948
+ position: absolute;
949
+ bottom: 4em;
950
+ /* Leave padding on left and right *///
951
+ left: 1em;
952
+ right: 1em;
953
+ }
954
+
955
+ /* Move captions down when controls aren't being shown */
956
+ .video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display {
957
+ bottom: 1em;
958
+ }
959
+
960
+ /* Individual tracks */
961
+ .video-js .vjs-text-track {
962
+ display: none;
963
+ font-size: 1.4em;
964
+ text-align: center;
965
+ margin-bottom: 0.1em;
966
+ /* Transparent black background, or fallback to all black (oldIE) *///
967
+ .background-color-with-alpha(rgb(0, 0, 0), 0.5);
968
+ }
969
+ .video-js .vjs-subtitles { color: #fff /* Subtitles are white */; }
970
+ .video-js .vjs-captions { color: #fc6 /* Captions are yellow */; }
971
+ .vjs-tt-cue { display: block; }
972
+
973
+ /* Increase font-size when fullscreen */
974
+ .video-js.vjs-fullscreen .vjs-text-track { font-size: 3em; }
975
+
976
+ /* Hide disabled or unsupported controls */
977
+ .vjs-default-skin .vjs-hidden { display: none; }
978
+
979
+ .vjs-lock-showing {
980
+ display: block !important;
981
+ opacity: 1;
982
+ visibility: visible;
983
+ }
984
+
985
+ /* In IE8 w/ no JavaScript (no HTML5 shim), the video tag doesn't register.
986
+ The .video-js classname on the video tag also isn't considered.
987
+ This optional paragraph inside the video tag can provide a message to users
988
+ about what's required to play video. */
989
+ .vjs-no-js {
990
+ padding: 20px;
991
+ color: #ccc;
992
+ background-color: #333;
993
+ font-size: 18px;
994
+ font-family: Arial, sans-serif;
995
+ text-align: center;
996
+ width: 300px;
997
+ height: 150px;
998
+ margin: 0px auto;
999
+ }
1000
+
1001
+ .vjs-no-js a, .vjs-no-js a:visited {
1002
+ color: #F4A460;
1003
+ }
1004
+
1005
+ // MIXINS
1006
+ // =============================================================================
1007
+ // Mixins are a LESS feature and are used to add vendor prefixes to CSS rules
1008
+ // when needed.
1009
+
1010
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow
1011
+ .box-shadow (@string: 0 0 1em rgba(0, 0, 0, 0.25)) {
1012
+ /* box-shadow *///
1013
+ -webkit-box-shadow: @string;
1014
+ -moz-box-shadow: @string;
1015
+ box-shadow: @string;
1016
+ }
1017
+
1018
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius
1019
+ .border-radius (@string: 5px) {
1020
+ /* border-radius *///
1021
+ -webkit-border-radius: @string;
1022
+ -moz-border-radius: @string;
1023
+ border-radius: @string;
1024
+ }
1025
+
1026
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/transition
1027
+ .transition (@string: all 1s linear) {
1028
+ /* transition *///
1029
+ -webkit-transition: @string;
1030
+ -moz-transition: @string;
1031
+ -o-transition: @string;
1032
+ transition: @string;
1033
+ }
1034
+
1035
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/transition
1036
+ .transition-delay (@string: 1s) {
1037
+ /* transition-delay *///
1038
+ -webkit-transition-delay: @string;
1039
+ -moz-transition-delay: @string;
1040
+ -o-transition-delay: @string;
1041
+ transition-delay: @string;
1042
+ }
1043
+
1044
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/animation
1045
+ .animation (@string: spin 1s infinite linear) {
1046
+ /* animation *///
1047
+ -webkit-animation: @string;
1048
+ -moz-animation: @string;
1049
+ -o-animation: @string;
1050
+ animation: @string;
1051
+ }
1052
+
1053
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/transform
1054
+ .transform (@string: rotate(-45deg)) {
1055
+ /* transform *///
1056
+ -webkit-transform: @string;
1057
+ -moz-transform: @string;
1058
+ -ms-transform: @string;
1059
+ -o-transform: @string;
1060
+ transform: @string;
1061
+ }
1062
+
1063
+ // https://developer.mozilla.org/en-US/docs/Web/CSS/user-select
1064
+ .user-select (@string: none) {
1065
+ /* user-select *///
1066
+ -webkit-user-select: @string;
1067
+ -moz-user-select: @string;
1068
+ -ms-user-select: @string;
1069
+ user-select: @string;
1070
+ }
1071
+
1072
+ // Hide something visually but keep available for screen readers.
1073
+ // http://h5bp.com/v
1074
+ .hide-visually () {
1075
+ /* hide-visually *///
1076
+ border: 0;
1077
+ clip: rect(0 0 0 0);
1078
+ height: 1px;
1079
+ margin: -1px;
1080
+ overflow: hidden;
1081
+ padding: 0;
1082
+ position:
1083
+ absolute;
1084
+ width: 1px;
1085
+ }
1086
+
1087
+ // Align an object with absolute positioning
1088
+ // Used to align the Big Play Button in the corners or center
1089
+ .absolute-align (@align, @margin, @length) when (@align = top) {
1090
+ top: @margin;
1091
+ }
1092
+ .absolute-align (@align, @margin, @length) when (@align = bottom) {
1093
+ bottom: @margin;
1094
+ }
1095
+ .absolute-align (@align, @margin, @length) when (@align = left) {
1096
+ left: @margin;
1097
+ }
1098
+ .absolute-align (@align, @margin, @length) when (@align = right) {
1099
+ right: @margin;
1100
+ }
1101
+ .absolute-align (@align, @margin, @length) when (@align = center) {
1102
+ /* Center it horizontally *///
1103
+ left: 50%;
1104
+ margin-left: (-(@length/2));
1105
+ // margin-left: ((@length*-1)/2);
1106
+ }
1107
+ .absolute-align (@align, @margin, @length) when (@align = middle) {
1108
+ /* Center it vertically *///
1109
+ top: 50%;
1110
+ margin-top: (-(@length/2));
1111
+ // margin-top: ((@length*-1)/2);
1112
+ }
1113
+
1114
+ // http://stackoverflow.com/questions/637921/opacity-of-background-but-not-the-text
1115
+ .background-color-with-alpha (@color, @alpha) {
1116
+ @rgba: rgba(red(@color), green(@color), blue(@color), @alpha);
1117
+ /* background-color-with-alpha *///
1118
+ background-color: @color;
1119
+ background-color: @rgba;
1120
+ // No longer using MS filters because they break border radius in IE9
1121
+ // @argb: argb(@rgba);
1122
+ // filter: ~"progid:DXImageTransform.Microsoft.gradient(startColorstr=@{argb}, endColorstr=@{argb})";
1123
+ // -ms-filter: ~"progid:DXImageTransform.Microsoft.gradient(startColorstr=@{argb}, endColorstr=@{argb})";
1124
+ }
1125
+
1126
+ .border-color-with-alpha (@color, @alpha) {
1127
+ @rgba: rgba(red(@color), green(@color), blue(@color), @alpha);
1128
+ /* border-color-with-alpha *///
1129
+ border-color: @color;
1130
+ border-color: @rgba;
1131
+ }
1132
+
1133
+ // NOTES ON LESS (tracking learnings so we don't forget)
1134
+ // =============================================================================
1135
+ // * We want this file to continue to be accessible by people who don't know
1136
+ // LESS but know CSS. This means finding the balance between using the most
1137
+ // valuable LESS features (e.g. variables) and keeping it looking like CSS.
1138
+ // So it's best to avoid advanced LESS features like conditional statements.
1139
+ // (we're using one for the big play button position because that's a hot
1140
+ // topic)
1141
+ //
1142
+ // * We care about the readability of the CSS output of LESS, which means we
1143
+ // have to be careful about what features of LESS we use. (if you're building
1144
+ // your own skin this may not apply)
1145
+ // 1. Comments inside of rules (strangely) have an extra line added after
1146
+ // them in the CSS output. To avoid this we can add a LESS comment after
1147
+ // the CSS comment.
1148
+ // /* comment *///
1149
+ //
1150
+ // 2. In a rule with nested rules, any comments outside of a rule are moved
1151
+ // to the top of the parent rule. i.e. it might look like:
1152
+ // /* title of rule 1 */
1153
+ // /* title of rule 2 */
1154
+ // .rule1 {}
1155
+ // .rule2 {}
1156
+ // This is why we aren't using nested rules inside of the
1157
+ // vjs-default-skin class.
1158
+
1159
+ /* -----------------------------------------------------------------------------
1160
+ The original source of this file lives at
1161
+ https://github.com/videojs/video.js/blob/master/src/css/video-js.less */