mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
Add Responsive YT Video Embedding styling
The IBRACORP YouTube video embed was causing overflow scrolling horizontally on smaller screens/mobile devices. Just tweaked some CSS to make the embed iframe responsive, which solves the horizontal overflow problem.
This commit is contained in:
parent
7c733e14b4
commit
8d523c3fbc
1 changed files with 21 additions and 1 deletions
22
docs/_static/custom.css
vendored
22
docs/_static/custom.css
vendored
|
@ -187,4 +187,24 @@ a .logo-hover {
|
|||
}
|
||||
a:hover .logo-hover {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
/* Responsive YT Video Embedding */
|
||||
.responsiveYT {
|
||||
position: relative;
|
||||
height: 0;
|
||||
padding-top: 56%;
|
||||
overflow: hidden;
|
||||
max-width: 100%;
|
||||
}
|
||||
.responsiveYT iframe,
|
||||
.responsiveYT object,
|
||||
.responsiveYT embed {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.responsiveYT .fluid-vids {
|
||||
position: initial !important
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue