Sha256: d6970d5a86661c023c29fe1d6a6809cb196e6c5e73bf15e74392b07fe56c5d5b

Contents?: true

Size: 767 Bytes

Versions: 23

Compression:

Stored size: 767 Bytes

Contents

@mixin caret-down {
  border-top: $caret-width solid;
  border-right: $caret-width solid transparent;
  border-bottom: 0;
  border-left: $caret-width solid transparent;
}

@mixin caret-up {
  border-top: 0;
  border-right: $caret-width solid transparent;
  border-bottom: $caret-width solid;
  border-left: $caret-width solid transparent;
}

@mixin caret($direction: down) {
  @if $enable-caret {
    &::after {
      display: inline-block;
      width: 0;
      height: 0;
      margin-left: $caret-width * .85;
      vertical-align: $caret-width * .85;
      content: "";
      @if $direction == down {
        @include caret-down;
      } @else if $direction == up {
        @include caret-up;
      }
    }

    &:empty::after {
      margin-left: 0;
    }
  }
}

Version data entries

23 entries across 21 versions & 5 rubygems

Version Path
card-1.93.3 mod/bootstrap/vendor/bootstrap/scss/mixins/_caret.scss
bootstrap-4.0.0.beta2.1 assets/stylesheets/bootstrap/mixins/_caret.scss
bootstrap-4.0.0.beta2 assets/stylesheets/bootstrap/mixins/_caret.scss