Skip to content

Commit 883e24f

Browse files
docs style updates
1 parent 6038302 commit 883e24f

1 file changed

Lines changed: 4 additions & 15 deletions

File tree

docs/src/components/YouTubePreview/style.css

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
.youtube-preview-container-fixed {
22
position: relative;
3-
width: 720px;
4-
height: 405px;
3+
width: 100%;
4+
max-width: 720px;
5+
aspect-ratio: 16 / 9;
56
margin: 50px auto 0;
67
display: flex;
78
justify-content: center;
@@ -54,19 +55,7 @@
5455

5556
@media screen and (max-width: 768px) {
5657
.youtube-preview-container-fixed {
57-
width: 100%;
58-
height: 0;
59-
padding-bottom: 56.25%;
60-
margin: 1rem 0;
61-
position: relative;
62-
}
63-
64-
.youtube-preview-iframe,
65-
.youtube-preview-img-wrapper,
66-
.youtube-preview-img {
67-
width: 100%;
68-
height: auto;
69-
aspect-ratio: 16/9;
58+
margin: 1rem auto;
7059
}
7160

7261
.youtube-preview-play svg {

0 commit comments

Comments
 (0)