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

66 lines
797 B
SCSS
Raw Normal View History

2020-08-23 11:37:22 +02:00
@mixin RV-ContentCrop--bottom {
img {
object-position: botom;
}
}
@mixin RV-ContentCrop--top {
img {
object-position: top;
}
}
@mixin RV-ContentCrop--right {
img {
object-position: right;
}
}
@mixin RV-ContentCrop--left {
img {
object-position: left;
}
}
@mixin RV-ContentCrop--center {
img {
object-position: center;
}
}
2020-08-21 17:51:22 +02:00
@mixin RV-ContentCrop{
2020-08-21 16:50:22 +02:00
&,* {
overflow: hidden;
word-break: break-all;
}
img {
2020-08-23 11:37:22 +02:00
width: 100%;
height: 100%;
2020-08-21 16:50:22 +02:00
object-fit: cover;
}
&--left {
2020-08-23 11:37:22 +02:00
@include RV-ContentCrop--left;
2020-08-21 16:50:22 +02:00
}
2020-08-23 11:37:22 +02:00
&--center {
@include RV-ContentCrop--center;
2020-08-21 16:50:22 +02:00
}
&--top {
2020-08-23 11:37:22 +02:00
@include RV-ContentCrop--top;
2020-08-21 16:50:22 +02:00
}
&--bottom {
2020-08-23 11:37:22 +02:00
@include RV-ContentCrop--bottom;
}
&--center {
@include RV-ContentCrop--center;
2020-08-21 16:50:22 +02:00
}
}
.RV-ContentCrop__Container {
2020-08-21 17:51:22 +02:00
@include RV-ContentCrop;
2020-08-21 16:50:22 +02:00
}