Skip to content

Commit 2f1c8e7

Browse files
Create _responsive.scss
1 parent 77b8ab5 commit 2f1c8e7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

_sass/_responsive.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
/* _responsive-embeds.scss */
2+
.responsive-video {
3+
position: relative;
4+
padding-bottom: 56.25%; // 16:9 aspect ratio
5+
height: 0;
6+
overflow: hidden;
7+
8+
iframe {
9+
position: absolute;
10+
top: 0;
11+
left: 0;
12+
width: 100%;
13+
height: 100%;
14+
}
15+
}

0 commit comments

Comments
 (0)