videojs-max-quality-selector
Version:
A Videojs Plugin to help you list out resolutions and bit-rates from Live, Adaptive and Progressive streams.
68 lines (53 loc) • 1.72 kB
CSS
/**
* css for videojs-max-quality-selector
* With the default plugins for postcss you can
* - @import files, they will be inlined during build
* - not worry about browser prefixes, they will be handled
* - nest selectors. This follows the css specification that is
* currently out on some browsers. See https://tabatkins.github.io/specs/css-nesting/
* - custom properties (aka variables) via the var(--var-name) syntax. See
* https://www.w3.org/TR/css-variables-1/
*/
/* Note: all vars must be defined here, there are no "local" vars */
:root {
--main-color: red;
--base-font-size: 9;
--font-size: 7;
}
.video-js {
&.vjs-max-quality-selector {
/* This class is added to the video.js element by the plugin by default. */
display: block;
& .vjs-max-quality-selector-button {
width: auto;
& sup {
text-transform: uppercase;
font-weight: bold;
color: red;
}
& .vjs-menu li {
text-transform: none;
}
& .vjs-menu li.vjs-selected {
font-weight: bold;
color: black;
& sup {
text-shadow: 0px 1px black;
}
}
& .vjs-menu-content {
background-color: rgba(43, 51, 63, 0.9);
}
}
& .remove-me, & .remove-me-too, &.finally-remove-me {
/* examples of postcss syntax, you probably want to remove this */
color: var(--main-color);
/**
* Note that you have to use calc and multiply by a value with a unit
* prepending the unit like `var(--base-font-size)px` or
* `calc(10 * var(--base-font-size)em` will NOT work!
*/
font-size: calc(var(--font-size) * 8 * var(--base-font-size) * 1px);
}
}
}