Sha256: b69b46eba8d1f68bd884e83044501c1955259c42fa43335a7e32e1dcb139b4ea

Contents?: true

Size: 1.17 KB

Versions: 7

Compression:

Stored size: 1.17 KB

Contents

// Adds keyframes blocks for supported prefixes, removing redundant prefixes in the block's content
@mixin keyframes($name) {
  $original-prefix-for-webkit:    $prefix-for-webkit;
  $original-prefix-for-mozilla:   $prefix-for-mozilla;
  $original-prefix-for-opera:     $prefix-for-opera;
  $original-prefix-for-spec:      $prefix-for-spec;

  @if $original-prefix-for-webkit {
    @include disable-prefix-for-all();
    $prefix-for-webkit: true;
    @-webkit-keyframes #{$name} {
      @content;
    }
  }
  @if $original-prefix-for-mozilla {
    @include disable-prefix-for-all();
    $prefix-for-mozilla: true;
    @-moz-keyframes #{$name} {
      @content;
    }
  }
  @if $original-prefix-for-opera {
    @include disable-prefix-for-all();
    $prefix-for-opera: true;
    @-o-keyframes #{$name} {
      @content;
    }
  }
  @if $original-prefix-for-spec {
    @include disable-prefix-for-all();
    $prefix-for-spec: true;
    @keyframes #{$name} {
      @content;
    }
  }

  $prefix-for-webkit:    $original-prefix-for-webkit;
  $prefix-for-mozilla:   $original-prefix-for-mozilla;
  $prefix-for-opera:     $original-prefix-for-opera;
  $prefix-for-spec:      $original-prefix-for-spec;
}

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
bourbon-compass-3.1.5 stylesheets/bourbon/css3/_keyframes.scss
bourbon-3.1.5 app/assets/stylesheets/css3/_keyframes.scss
bourbon-compass-3.1.4 stylesheets/bourbon/css3/_keyframes.scss
bourbon-3.1.4 app/assets/stylesheets/css3/_keyframes.scss
bourbon-compass-3.1.3 stylesheets/bourbon/css3/_keyframes.scss
bourbon-3.1.3 app/assets/stylesheets/css3/_keyframes.scss
bourbon-3.1.2.1 app/assets/stylesheets/css3/_keyframes.scss