Cleaned more code, still untested.

This commit is contained in:
2018-10-24 09:06:18 +11:00
parent 7030a513de
commit f1b10e223e
28 changed files with 183 additions and 313 deletions

View File

@ -0,0 +1,62 @@
/*
* Image Section
* Styles for Image Sections, usually contains videos (hmmmm).
*
* Dependencies:
*
* Version:
* 1.1.0 - 2018/08/14
*/
@import '~@styles/global';
.c-image-section {
&__image {
display: block;
width: 100%;
}
&.is-full {
position: relative;
.c-image-section__image {
@include t-absolute-fill();
object-fit: cover;
object-position: bottom center;
}
}
&__content {
@include t-absolute-fill();
&-inner {
position: relative;
height: 100%;
width: 100%;
}
}
//Background Image
&.is-background {
position: relative;
.c-image-section {
&__image {
@include t-absolute-fill();
object-fit: cover;
object-position: bottom center;
}
&__content {
position: relative;
&-inner {
position: relative;
height: 100%;
width: 100%;
}
}
}
}
}