From a4e01da27c08e43a67b2618ad1e71c1f8f86d5cd Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Thu, 19 Sep 2024 15:33:11 +0530 Subject: youtube fronend --- youtube/static/modules/plyr/custom_plyr.css | 39 +++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 youtube/static/modules/plyr/custom_plyr.css (limited to 'youtube/static/modules/plyr/custom_plyr.css') diff --git a/youtube/static/modules/plyr/custom_plyr.css b/youtube/static/modules/plyr/custom_plyr.css new file mode 100644 index 0000000..0fd3c52 --- /dev/null +++ b/youtube/static/modules/plyr/custom_plyr.css @@ -0,0 +1,39 @@ +/* Prevent this div from blocking right-click menu for video +e.g. Firefox playback speed options */ +.plyr__poster { + display: none; +} + +/* plyr fix */ +.plyr:-moz-full-screen video { + max-height: initial; +} + +.plyr:-webkit-full-screen video { + max-height: initial; +} + +.plyr:-ms-fullscreen video { + max-height: initial; +} + +.plyr:fullscreen video { + max-height: initial; +} + +.plyr__preview-thumb__image-container { + width: 158px; + height: 90px; +} + +.plyr__preview-thumb { + bottom: 100%; +} + +.plyr__menu__container [role="menu"], +.plyr__menu__container [role="menucaptions"] { + /* Set vertical scroll */ + /* issue https://github.com/sampotts/plyr/issues/1420 */ + max-height: 320px; + overflow-y: auto; +} -- cgit v1.2.3-59-g8ed1b