docs(website): fix video responsiveness (#6709)

This commit is contained in:
Alexey Pyltsyn 2022-02-17 16:22:36 +03:00 committed by GitHub
parent 1551407a9b
commit 0f1f35b678
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 30 additions and 32 deletions

View file

@ -50,18 +50,16 @@ Or read the **[5-minute tutorial](https://tutorial.docusaurus.io)** online.
In this presentation at [Algolia Community Event](https://www.algolia.com/), [Meta Open Source team](https://opensource.facebook.com/) shared a brief walk-through of Docusaurus. They covered how to get started with the project, enable plugins, and set up functionalities like documentation and blogging.
<div className="col">
<div>
<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/Yhyx7otSksg"
title="Docusaurus: Documentation Made Easy"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
/>
</div>
<div className="video-container">
<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/Yhyx7otSksg"
title="Docusaurus: Documentation Made Easy"
frameBorder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
/>
</div>
## Disclaimer {#disclaimer}

View file

@ -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%;
}
}

View file

@ -162,7 +162,7 @@ function VideoContainer() {
<h2>
<Translate>Check it out in the intro video</Translate>
</h2>
<div className={styles.ytVideo}>
<div className="video-container">
<iframe
width="560"
height="315"

View file

@ -179,22 +179,3 @@
.test-marker-site-index-page {
content: 'site-index-page';
}
@media only screen and (max-width: 996px) {
.ytVideo {
position: relative;
overflow: hidden;
width: 100%;
max-width: 560px;
margin: 0 auto;
padding-top: 56.25%;
}
.ytVideo iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
}