.video-js { // display:inline-block would be closer to the video el's display:inline // but it results in flash reloading when going into fullscreen [#2205] display: block; // Make video.js videos align top when next to video elements vertical-align: top; box-sizing: border-box; color: $primary-foreground-color; background-color: #000; position: relative; padding: 0; // Start with 10px for base font size so other dimensions can be em based and // easily calculable. font-size: 10px; line-height: 1; // Provide some basic defaults for fonts font-weight: normal; font-style: normal; // Avoiding helvetica: issue #376 font-family: $text-font-family; // Fix for Firefox 9 fullscreen (only if it is enabled). Not needed when // checking fullScreenEnabled. &:-moz-full-screen { position: absolute; } &:-webkit-full-screen { width: 100% !important; height: 100% !important; } } // All elements inherit border-box sizing .video-js *, .video-js *:before, .video-js *:after { box-sizing: inherit; } // List style reset .video-js ul { font-family: inherit; font-size: inherit; line-height: inherit; list-style-position: outside; // Important to specify each margin-left: 0; margin-right: 0; margin-top: 0; margin-bottom: 0; } // Fill the width of the containing element and use padding to create the // desired aspect ratio. Default to 16x9 unless another ratio is given. @mixin apply-aspect-ratio($width, $height) { padding-top: 100% * ($height/$width); } // Not including a default AR in vjs-fluid because it would override // the user set AR injected into the header. .video-js.vjs-fluid, .video-js.vjs-16-9, .video-js.vjs-4-3 { width: 100%; max-width: 100%; height: 0; } .video-js.vjs-16-9 { @include apply-aspect-ratio(16, 9); } .video-js.vjs-4-3 { @include apply-aspect-ratio(4, 3); } .video-js.vjs-fill { width: 100%; height: 100%; } // Playback technology elements expand to the width/height of the containing div //