Sha256: 3c2a9e011f9f2841fc76e6f590b6bee2ab3c23256981963ed358697ec30b0a7a

Contents?: true

Size: 1.19 KB

Versions: 26

Compression:

Stored size: 1.19 KB

Contents

// Background Clip
@import "compass/support";

// The the user threshold for background-clip support. Defaults to `$critical-usage-threshold`
$background-clip-support-threshold: $critical-usage-threshold !default;

// The default border-box model: [border-box | padding-box | content-box]
$default-background-clip: padding-box !default;


// Clip the background (image and color) at the edge of the padding, border, or content.
//   $clip... : [padding-box | border-box | content-box]
@mixin background-clip($clip...) {
  $output: ();
  $deprecated: ();

  @if (length($clip) > 0) {
    @each $layer in $clip {
      $output: append($output, unquote($layer), comma);
      $deprecated: append($deprecated, legacy-box($layer), comma);
    }
  } @else {
    $output: $default-background-clip;
    $deprecated: legacy-box($default-background-clip);
  }

  @include with-each-prefix(background-img-opts, $background-clip-support-threshold) {
    @if $current-prefix == -moz or $current-prefix == -webkit {
      // Legacy versions of Mozilla support a different syntax, prefixed.
      @include prefix-prop(background-clip, $deprecated);
    } @else {
      @include prefix-prop(background-clip, $output);
    }
  }
}

Version data entries

26 entries across 26 versions & 4 rubygems

Version Path
arcabouco-0.2.13 vendor/bundle/gems/compass-core-1.0.3/stylesheets/compass/css3/_background-clip.scss
gem_2345-0.1.2 stylesheets/compass/css3/_background-clip.scss
compass-core-1.0.3 stylesheets/compass/css3/_background-clip.scss
compass-core-1.1.0.alpha.3 stylesheets/compass/css3/_background-clip.scss
compass-core-1.1.0.alpha.2 stylesheets/compass/css3/_background-clip.scss
compass-core-1.1.0.alpha.1 stylesheets/compass/css3/_background-clip.scss
compass-core-1.1.0.alpha.0 stylesheets/compass/css3/_background-clip.scss
compass-core-1.0.1 stylesheets/compass/css3/_background-clip.scss
compass-core-1.0.0 stylesheets/compass/css3/_background-clip.scss
compass-core-1.0.0.rc.1 stylesheets/compass/css3/_background-clip.scss
compass-core-1.0.0.rc.0 stylesheets/compass/css3/_background-clip.scss
compass-core-1.0.0.alpha.21 stylesheets/compass/css3/_background-clip.scss
compass-core-1.0.0.alpha.20 stylesheets/compass/css3/_background-clip.scss
compass-core-1.0.0.alpha.19 stylesheets/compass/css3/_background-clip.scss
compass-core-1.0.0.alpha.17 stylesheets/compass/css3/_background-clip.scss
compass-core-1.0.0.alpha.16 stylesheets/compass/css3/_background-clip.scss
compass-core-1.0.0.alpha.15 stylesheets/compass/css3/_background-clip.scss
compass-core-1.0.0.alpha.14 stylesheets/compass/css3/_background-clip.scss
compass-core-1.0.0.alpha.13 stylesheets/compass/css3/_background-clip.scss
compass-0.13.alpha.12 frameworks/compass/stylesheets/compass/css3/_background-clip.scss