scss-library/components/01_Layouts/contentCrop/_contentCrop.scss
2020-08-21 17:51:22 +02:00

41 lines
449 B
SCSS

@mixin 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 {
@include RV-ContentCrop;
}