Sha256: 2e92d406712fc0dd44f3de58d3a349b4c3ced861df5891a17174c6f14cf0f4cc

Contents?: true

Size: 1.42 KB

Versions: 208

Compression:

Stored size: 1.42 KB

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-right {
  border-top: $caret-width solid transparent;
  border-bottom: $caret-width solid transparent;
  border-left: $caret-width solid;
}

@mixin caret-left {
  border-top: $caret-width solid transparent;
  border-right: $caret-width solid;
  border-bottom: $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;
      } @else if $direction == right {
        @include caret-right;
      }
    }

    @if $direction == left {
      &::after {
        display: none;
      }

      &::before {
        display: inline-block;
        width: 0;
        height: 0;
        margin-right: $caret-width * .85;
        vertical-align: $caret-width * .85;
        content: "";
        @include caret-left;
      }
    }

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

Version data entries

208 entries across 208 versions & 16 rubygems

Version Path
solidus_backend-4.4.1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_caret.scss
solidus_backend-4.4.0 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_caret.scss
solidus_backend-4.3.4 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_caret.scss
solidus_backend-4.2.4 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_caret.scss
solidus_backend-4.1.5 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_caret.scss
solidus_backend-4.3.3 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_caret.scss
solidus_backend-4.3.2 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_caret.scss
solidus_backend-4.1.4 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_caret.scss
solidus_backend-4.3.1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_caret.scss
solidus_backend-4.3.0 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_caret.scss
solidus_backend-4.2.3 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_caret.scss
solidus_backend-4.1.3 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_caret.scss
solidus_backend-4.0.4 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_caret.scss
solidus_backend-3.4.6 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_caret.scss
solidus_backend-4.0.3 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_caret.scss
solidus_backend-4.1.2 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_caret.scss
solidus_backend-4.2.2 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_caret.scss
solidus_backend-3.4.5 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_caret.scss
solidus_backend-4.2.1 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_caret.scss
solidus_backend-4.2.0 vendor/assets/stylesheets/solidus_admin/bootstrap/mixins/_caret.scss