Sha256: d04df17402b7e35ddf7fe2bf4e17fff9660bdccd5d5ce2c619a1b4c09f892747

Contents?: true

Size: 701 Bytes

Versions: 3

Compression:

Stored size: 701 Bytes

Contents

// stylelint-disable property-blacklist
@mixin transition($transition...) {
  @if length($transition) == 0 {
    $transition: $transition-base;
  }

  @if length($transition) > 1 {
    @each $value in $transition {
      @if $value == null or $value == none {
        @warn "The keyword 'none' or 'null' must be used as a single argument.";
      }
    }
  }

  @if $enable-transitions {
    @if nth($transition, 1) != null {
      transition: $transition;
    }

    @if $enable-prefers-reduced-motion-media-query and nth($transition, 1) != null and nth($transition, 1) != none {
      @media (prefers-reduced-motion: reduce) {
        transition: none;
      }
    }
  }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
chulapa-jekyll-1.1.0 _sass/bootstrap/mixins/_transition.scss
chulapa-jekyll-1.0.1 _sass/bootstrap/mixins/_transition.scss
chulapa-jekyll-1.0.0 _sass/bootstrap/mixins/_transition.scss