More Mixins
This commit is contained in:
		@@ -1,3 +1,33 @@
 | 
			
		||||
@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;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@mixin RV-ContentCrop{
 | 
			
		||||
	&,* {
 | 
			
		||||
		overflow: hidden;
 | 
			
		||||
@@ -5,34 +35,29 @@
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	img {
 | 
			
		||||
		width: inherit;
 | 
			
		||||
		height: inherit;
 | 
			
		||||
		width: 100%;
 | 
			
		||||
		height: 100%;
 | 
			
		||||
		object-fit: cover;
 | 
			
		||||
		object-position: center;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	&--left {
 | 
			
		||||
		img {
 | 
			
		||||
			object-position: left;
 | 
			
		||||
		}
 | 
			
		||||
		@include RV-ContentCrop--left;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	&--right {
 | 
			
		||||
		img {
 | 
			
		||||
			object-position: right;
 | 
			
		||||
		}
 | 
			
		||||
	&--center {
 | 
			
		||||
		@include RV-ContentCrop--center;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	&--top {
 | 
			
		||||
		img {
 | 
			
		||||
			object-position: top;
 | 
			
		||||
		}
 | 
			
		||||
		@include RV-ContentCrop--top;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	&--bottom {
 | 
			
		||||
		img {
 | 
			
		||||
			object-position: bottom;
 | 
			
		||||
		}
 | 
			
		||||
		@include RV-ContentCrop--bottom;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	&--center {
 | 
			
		||||
		@include RV-ContentCrop--center;
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user