2 // display:inline-block would be closer to the video el's display:inline
3 // but it results in flash reloading when going into fullscreen [#2205]
5 // Make video.js videos align top when next to video elements
7 box-sizing: border-box;
9 color: $primary-foreground-color;
10 background-color: #000;
13 // Start with 10px for base font size so other dimensions can be em based and
18 // Provide some basic defaults for fonts
21 // Avoiding helvetica: issue #376
22 font-family: $text-font-family;
24 @include user-select(none);
26 // Fix for Firefox 9 fullscreen (only if it is enabled). Not needed when
27 // checking fullScreenEnabled.
28 &:-moz-full-screen { position: absolute; }
30 &:-webkit-full-screen {
31 width: 100% !important;
32 height: 100% !important;
36 // All elements inherit border-box sizing
48 list-style-position: outside;
50 // Important to specify each
57 // Fill the width of the containing element and use padding to create the
58 // desired aspect ratio. Default to 16x9 unless another ratio is given.
59 @mixin apply-aspect-ratio($width, $height) {
60 padding-top: 100% * ($height/$width);
63 // Not including a default AR in vjs-fluid because it would override
64 // the user set AR injected into the header.
74 @include apply-aspect-ratio(16, 9);
78 @include apply-aspect-ratio(4, 3);
86 // Playback technology elements expand to the width/height of the containing div
87 // <video> or <object>
97 body.vjs-full-window {
101 // Fix for IE6 full-window. http://www.cssplay.co.uk/layouts/fixed.html
104 .vjs-full-window .video-js.vjs-fullscreen {
113 .video-js.vjs-fullscreen {
114 width: 100% !important;
115 height: 100% !important;
116 // Undo any aspect ratio padding for fluid layouts
117 padding-top: 0 !important;
119 .video-js.vjs-fullscreen.vjs-user-inactive {
124 // Hide disabled or unsupported controls.
125 .vjs-hidden { display: none !important; }
132 // Visually hidden offscreen, but accessible to screen readers.
133 .video-js .vjs-offscreen {
142 display: block !important;
147 // In IE8 w/ no JavaScript (no HTML5 shim), the video tag doesn't register.
148 // The .video-js classname on the video tag also isn't considered.
149 // This optional paragraph inside the video tag can provide a message to users
150 // about what's required to play video.
154 background-color: #000;
156 font-family: $text-font-family;
164 .vjs-no-js a:visited {