| 1 |
// Video |
| 2 |
// |
| 3 |
// Styles from this page can be found in `wyrm_core/_video.sass`. |
| 4 |
// It is basically a simple way to handle simple 16:9 responsive embeds. |
| 5 |
// |
| 6 |
// Markup: |
| 7 |
// <div class="wy-video {$modifiers}"><iframe src="//www.youtube.com/embed/dJ0Neq2up9E" frameborder="0" allowfullscreen></iframe></div> |
| 8 |
// |
| 9 |
// .wy-video-sd - 4:3 TV style |
| 10 |
// .wy-video-cinema - Anamorphic |
| 11 |
// |
| 12 |
// Styleguide 12.0 |
| 13 |
|
| 14 |
.wy-video |
| 15 |
position: relative |
| 16 |
padding-bottom: 56.25% |
| 17 |
height: 0 |
| 18 |
iframe, object |
| 19 |
position: absolute |
| 20 |
top: 0 |
| 21 |
left: 0 |
| 22 |
width: 100% |
| 23 |
height: 100% |
| 24 |
|
| 25 |
.wy-video.wy-video-sd |
| 26 |
padding-bottom: 75% |
| 27 |
.wy-video.wy-video-cinema |
| 28 |
padding-bottom: 41.84% |