https://github.com/sha-red/compass-mixins/tree/master/lib
extended with more sass frameworks and as django app.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
610 B
27 lines
610 B
7 years ago
|
// Grid Background API
|
||
|
// ===================
|
||
|
// - Sub-pixel rounding can lead to several pixels variation between browsers.
|
||
|
|
||
|
// Grid Background Output
|
||
|
// ----------------------
|
||
|
// - $image: background-image
|
||
|
// - $size: background-size
|
||
|
// - $clip: background-clip
|
||
|
// - [$flow]: ltr | rtl
|
||
|
@mixin background-grid-output (
|
||
|
$image,
|
||
|
$size: null,
|
||
|
$clip: null,
|
||
|
$flow: map-get($susy-defaults, flow)
|
||
|
) {
|
||
|
$output: (
|
||
|
background-image: $image,
|
||
|
background-size: $size,
|
||
|
background-origin: $clip,
|
||
|
background-clip: $clip,
|
||
|
background-position: from($flow) top,
|
||
|
);
|
||
|
|
||
|
@include output($output);
|
||
|
}
|