website_template/src/scss/_responsive-utilities.scss

44 lines
543 B
SCSS

/*
Responsive Utilities
*/
img,
canvas,
iframe,
video,
svg,
select,
textarea {
max-width: 100%;
}
/* Wrap tables or pre elements in a div with this class */
.overflow-container {
overflow-y: scroll;
}
/*
Aspect ratios for media objects i.e canvas, iframe, video, svg etc.
Defaults to 16x9
*/
.aspect-ratio {
height: 0;
padding-top: 56.25%;
position: relative;
}
.aspect-ratio--object {
height: 100%;
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
width: 100%;
z-index: 100;
}