Sha256: 858fb754c95d528afcb5673e2f4a3b5939048924cab147032be629c16c7c4d83

Contents?: true

Size: 791 Bytes

Versions: 2

Compression:

Stored size: 791 Bytes

Contents

// 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: false,
  $clip: false,
  $flow: susy-get(flow)
) {
  @if mixin-exists(background-image) {
    @include background-image($image);
  } @else {
    background-image: $image;
  }

  @if $size {
    -webkit-background-size: $size;
    background-size: $size;
  }

  @if $clip {
    -webkit-background-origin: $clip;
    -webkit-background-clip: $clip;
    background-origin: $clip;
    background-clip: $clip;
  }

  background-position: from($flow) top;
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
susy-2.0.0.alpha.6 sass/susy/api/shared/_background.scss
susy-2.0.0.alpha.5 sass/susy/api/shared/_background.scss