Sha256: 38b93f1600270d896ded6d36c35b391b9218ee28e9004a99903eb79d23db4a90

Contents?: true

Size: 1.05 KB

Versions: 79

Compression:

Stored size: 1.05 KB

Contents

// Override `$default-background-origin` to change the default.

@import "shared";

$default-background-origin: content-box !default;

// Position the background off the edge of the padding, border or content
//
// * Possible values:
//   * `padding-box`
//   * `border-box`
//   * `content-box`
// * browser defaults to `padding-box`
// * mixin defaults to `content-box`


@mixin background-origin($origin: $default-background-origin) {
  $origin: unquote($origin);
  // webkit and mozilla use the deprecated short [border | padding | content]
  $deprecated: $origin;
  @if $origin == padding-box { $deprecated: padding; }
  @if $origin == border-box  { $deprecated: border;  }
  @if $origin == content-box { $deprecated: content; }

  // Support for webkit and mozilla's use of the deprecated short form
  @include experimental(background-origin, $deprecated,
    -moz,
    -webkit,
    not -o,
    not -ms,
    not -khtml,
    not official
  );
  @include experimental(background-origin, $origin,
    not -moz,
    not -webkit,
    -o,
    -ms,
    -khtml,
    official
  );
}

Version data entries

79 entries across 75 versions & 9 rubygems

Version Path
egghead-styles-1.0.82 app/assets/stylesheets/plugins/compass/compass/css3/_background-origin.scss
egghead-styles-1.0.81 app/assets/stylesheets/plugins/compass/compass/css3/_background-origin.scss
egghead-styles-1.0.80 app/assets/stylesheets/plugins/compass/compass/css3/_background-origin.scss
egghead-styles-1.0.79 app/assets/stylesheets/plugins/compass/compass/css3/_background-origin.scss
egghead-styles-1.0.78 app/assets/stylesheets/plugins/compass/compass/css3/_background-origin.scss
egghead-styles-1.0.77 app/assets/stylesheets/plugins/compass/compass/css3/_background-origin.scss
egghead-styles-1.0.76 app/assets/stylesheets/plugins/compass/compass/css3/_background-origin.scss
egghead-styles-1.0.75 app/assets/stylesheets/plugins/compass/compass/css3/_background-origin.scss
egghead-styles-1.0.74 app/assets/stylesheets/plugins/compass/compass/css3/_background-origin.scss
egghead-styles-1.0.73 app/assets/stylesheets/plugins/compass/compass/css3/_background-origin.scss
frontsau-0.0.3 lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_background-origin.scss
frontsau-0.0.3 lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_background-origin.scss
frontsau-0.0.2 lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_background-origin.scss
frontsau-0.0.2 lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_background-origin.scss
frontsau-0.0.1 lib/Phamlp/sass/extensions/compass/stylesheets/compass/css3/_background-origin.scss
frontsau-0.0.1 lib/Phamlp/sass/extensions/compass/frameworks/compass/stylesheets/compass/css3/_background-origin.scss
compass-0.12.7 frameworks/compass/stylesheets/compass/css3/_background-origin.scss
sadui-0.0.4 vendor/bundle/ruby/2.0.0/gems/compass-0.12.3/frameworks/compass/stylesheets/compass/css3/_background-origin.scss
sadui-0.0.4 vendor/bundle/ruby/2.1.0/gems/compass-0.12.3/frameworks/compass/stylesheets/compass/css3/_background-origin.scss
compass-0.12.6 frameworks/compass/stylesheets/compass/css3/_background-origin.scss