21 lines
472 B
Plaintext
21 lines
472 B
Plaintext
/*
|
|
This mixin can be used to set the object-fit:
|
|
.object-fit(contain);
|
|
|
|
or object-fit and object-position:
|
|
.object-fit(cover, top);
|
|
*/
|
|
.object-fit(@fit: fill, @position) {
|
|
-o-object-fit: @fit;
|
|
object-fit: @fit;
|
|
-o-object-position: @position;
|
|
object-position: @position;
|
|
font-family: 'object-fit: @{fit}; object-position: @{position}';
|
|
}
|
|
|
|
.object-fit(@fit: fill){
|
|
-o-object-fit: @fit;
|
|
object-fit: @fit;
|
|
font-family: 'object-fit: @{fit}';
|
|
}
|