From aa8b6df4a51c82eb91e6fd71a090b2128098af6b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 6 Oct 2017 10:40:09 +0200 Subject: Client: handle multiple file resolutions --- client/src/sass/video-js-custom.scss | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) (limited to 'client/src/sass/video-js-custom.scss') diff --git a/client/src/sass/video-js-custom.scss b/client/src/sass/video-js-custom.scss index eb5b8f869..4e3aceaab 100644 --- a/client/src/sass/video-js-custom.scss +++ b/client/src/sass/video-js-custom.scss @@ -1,3 +1,33 @@ +// Thanks: https://github.com/kmoskwiak/videojs-resolution-switcher/pull/92/files +.vjs-resolution-button-label { + font-size: 1em; + line-height: 3em; + position: absolute; + top: 0; + left: -1px; + width: 100%; + height: 100%; + text-align: center; + box-sizing: inherit; +} + +.vjs-resolution-button { + outline: 0 !important; + + .vjs-menu { + .vjs-menu-content { + width: 4em; + left: 50%; /* Center the menu, in it's parent */ + margin-left: -2em; /* half of width, to center */ + } + + li { + text-transform: none; + font-size: 1em; + } + } +} + // Thanks: https://github.com/zanechua/videojs-sublime-inspired-skin // Video JS Sublime Skin @@ -210,7 +240,7 @@ $slider-bg-color: lighten($primary-background-color, 33%); width: 6em; position: absolute; right: 0; - margin-right: 30px; + margin-right: 65px; } .vjs-sublime-skin .vjs-volume-menu-button .vjs-menu-content, -- cgit v1.2.3