Cleaned more code, still untested.
This commit is contained in:
62
public/components/section/image/ImageSection.scss
Normal file
62
public/components/section/image/ImageSection.scss
Normal 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%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user