Sha256: 8ce3820ff567df9a0bf9b99b828e2d9d1c498195b9fb13d9047676943bc01cbf

Contents?: true

Size: 821 Bytes

Versions: 83

Compression:

Stored size: 821 Bytes

Contents

@mixin caret($width: 1em, $height: 1em, $direction: up, $color-caret: $color-3) {
  &:before {
    content: '';
    display: block;
    position: absolute;
    border-width: $height $width;
    border-style: solid;
    border-color: transparent;

    @if $direction == up {
      border-bottom-color: $color-caret;
      top: -2 * $width;
      left: 50%;
      margin-left: -$height;
    }
    @else if $direction == down {
      border-top-color: $color-caret;
      top: -2 * $width;
      left: 50%;
      margin-left: -$height;
    }
    @else if $direction == left {
      border-right-color: $color-caret;
      left: -2 * $width;
      top: 50%;
      margin-top: -$height;
    }
    @else {
      border-left-color: $color-caret;
      right: -2 * $width;
      top: 50%;
      margin-top: -$height;
    }
  }
}

Version data entries

83 entries across 83 versions & 2 rubygems

Version Path
solidus_backend-2.8.6 app/assets/stylesheets/spree/backend/globals/mixins/_caret.scss
solidus_backend-2.6.6 app/assets/stylesheets/spree/backend/globals/mixins/_caret.scss
solidus_backend-2.7.4 app/assets/stylesheets/spree/backend/globals/mixins/_caret.scss
solidus_backend-2.8.5 app/assets/stylesheets/spree/backend/globals/mixins/_caret.scss
solidus_backend-2.7.3 app/assets/stylesheets/spree/backend/globals/mixins/_caret.scss
solidus_backend-2.6.5 app/assets/stylesheets/spree/backend/globals/mixins/_caret.scss
solidus_backend-2.5.2 app/assets/stylesheets/spree/backend/globals/mixins/_caret.scss
solidus_backend-2.8.4 app/assets/stylesheets/spree/backend/globals/mixins/_caret.scss
solidus_backend-2.8.3 app/assets/stylesheets/spree/backend/globals/mixins/_caret.scss
solidus_backend-2.7.2 app/assets/stylesheets/spree/backend/globals/mixins/_caret.scss
solidus_backend-2.6.4 app/assets/stylesheets/spree/backend/globals/mixins/_caret.scss
solidus_backend-2.8.2 app/assets/stylesheets/spree/backend/globals/mixins/_caret.scss
solidus_backend-2.8.1 app/assets/stylesheets/spree/backend/globals/mixins/_caret.scss
solidus_backend-2.5.1 app/assets/stylesheets/spree/backend/globals/mixins/_caret.scss
solidus_backend-2.6.3 app/assets/stylesheets/spree/backend/globals/mixins/_caret.scss
solidus_backend-2.8.0 app/assets/stylesheets/spree/backend/globals/mixins/_caret.scss
solidus_backend-2.7.1 app/assets/stylesheets/spree/backend/globals/mixins/_caret.scss
solidus_backend-2.6.2 app/assets/stylesheets/spree/backend/globals/mixins/_caret.scss
solidus_backend_devise_token_auth-2.8.0.alpha.14 app/assets/stylesheets/spree/backend/globals/mixins/_caret.scss
solidus_backend_devise_token_auth-2.8.0.alpha.13 app/assets/stylesheets/spree/backend/globals/mixins/_caret.scss