Refactor styles on video playback page
Made changes to the styles on the video playback page to enhance visibility and address issues with the video player. Added a new custom style file for Plyr, and removed redundant and unused styles in watch.css. Specific changes: - Added custom_plyr.css for Plyr styles. - Removed redundant styles related to playback issues in watch.css
This commit is contained in:
parent
d2c883c211
commit
3ee2df7faa
22
youtube/static/modules/plyr/custom_plyr.css
Normal file
22
youtube/static/modules/plyr/custom_plyr.css
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/* 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;
|
||||||
|
}
|
@ -24,20 +24,6 @@ video {
|
|||||||
max-height: calc(100vh/1.5);
|
max-height: calc(100vh/1.5);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 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;
|
|
||||||
}
|
|
||||||
|
|
||||||
a:link {
|
a:link {
|
||||||
color: var(--link);
|
color: var(--link);
|
||||||
}
|
}
|
||||||
|
@ -8,14 +8,8 @@
|
|||||||
{% if settings.use_video_player == 2 %}
|
{% if settings.use_video_player == 2 %}
|
||||||
<!-- plyr -->
|
<!-- plyr -->
|
||||||
<link href="/youtube.com/static/modules/plyr/plyr.css" rel="stylesheet">
|
<link href="/youtube.com/static/modules/plyr/plyr.css" rel="stylesheet">
|
||||||
|
<link href="/youtube.com/static/modules/plyr/custom_plyr.css" rel="stylesheet">
|
||||||
<!--/ plyr -->
|
<!--/ plyr -->
|
||||||
<style>
|
|
||||||
/* Prevent this div from blocking right-click menu for video
|
|
||||||
e.g. Firefox playback speed options */
|
|
||||||
.plyr__poster {
|
|
||||||
display: none !important;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock style %}
|
{% endblock style %}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user