mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-18 00:57:51 +02:00
docs(website): fix video responsiveness (#6709)
This commit is contained in:
parent
1551407a9b
commit
0f1f35b678
4 changed files with 30 additions and 32 deletions
|
@ -192,3 +192,22 @@ div[class^='announcementBar_'] {
|
|||
.test-marker-site-custom-css-unique-rule {
|
||||
content: 'site-custom-css-unique-rule';
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 996px) {
|
||||
.video-container {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
max-width: 560px;
|
||||
margin: 0 auto;
|
||||
padding-top: 56.25%;
|
||||
}
|
||||
|
||||
.video-container iframe {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue