mirror of
https://github.com/scratchfoundation/scratchx.git
synced 2024-12-01 11:57:05 -05:00
15 lines
331 B
SCSS
15 lines
331 B
SCSS
|
@mixin image-rendering ($mode:auto) {
|
||
|
|
||
|
@if ($mode == crisp-edges) {
|
||
|
-ms-interpolation-mode: nearest-neighbor; // IE8+
|
||
|
image-rendering: -moz-crisp-edges;
|
||
|
image-rendering: -o-crisp-edges;
|
||
|
image-rendering: -webkit-optimize-contrast;
|
||
|
image-rendering: crisp-edges;
|
||
|
}
|
||
|
|
||
|
@else {
|
||
|
image-rendering: $mode;
|
||
|
}
|
||
|
}
|