Pas de barre noire YouTube
This commit is contained in:
parent
b18a8c1085
commit
03bc7d98fb
2 changed files with 10 additions and 2 deletions
|
@ -39,7 +39,7 @@ header.masthead {
|
|||
padding: .5rem 1rem;
|
||||
}
|
||||
|
||||
iframe {
|
||||
.video-container, iframe {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
@ -47,6 +47,12 @@ header.masthead {
|
|||
height: 100%;
|
||||
pointer-events: none;
|
||||
}
|
||||
@media (min-aspect-ratio: 16/9) {
|
||||
.video-container { height: 300%; top: -100%; }
|
||||
}
|
||||
@media (max-aspect-ratio: 16/9) {
|
||||
.video-container { width: 300%; left: -100%; }
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
height: 100%;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue