39 lines
506 B
SCSS
39 lines
506 B
SCSS
////////////////////
|
|
// Responsive Embeds
|
|
////////////////////
|
|
|
|
.embed-responsive {
|
|
position: relative;
|
|
display: block;
|
|
height: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
|
|
.embed-responsive-item,
|
|
iframe,
|
|
embed,
|
|
object,
|
|
video {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
border: 0;
|
|
}
|
|
}
|
|
|
|
// Aspect ratios
|
|
.aspect-ratio-1x1 {
|
|
padding-top: 100%;
|
|
}
|
|
|
|
.aspect-ratio-16x9 {
|
|
padding-top: 56.25%;
|
|
}
|
|
|
|
.aspect-ratio-4x3 {
|
|
padding-top: 75%;
|
|
}
|