scss-library/components/01_Layouts/contentCrop/_contentCrop.scss

41 lines
441 B
SCSS

RV-ContentCrop{
&,* {
overflow: hidden;
word-break: break-all;
}
img {
width: inherit;
height: inherit;
object-fit: cover;
object-position: center;
}
&--left {
img {
object-position: left;
}
}
&--right {
img {
object-position: right;
}
}
&--top {
img {
object-position: top;
}
}
&--bottom {
img {
object-position: bottom;
}
}
}
.RV-ContentCrop__Container {
@extend RV-ContentCrop;
}