Sha256: 19cf098955c3c1e3d7322233c8adcf33a80d50d05b9b059abfe9e5d88a108295

Contents?: true

Size: 1.38 KB

Versions: 10

Compression:

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

@mixin caret-start {
  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;
      margin-left: $caret-spacing;
      vertical-align: $caret-vertical-align;
      content: "";
      @if $direction == down {
        @include caret-down();
      } @else if $direction == up {
        @include caret-up();
      } @else if $direction == end {
        @include caret-end();
      }
    }

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

      &::before {
        display: inline-block;
        margin-right: $caret-spacing;
        vertical-align: $caret-vertical-align;
        content: "";
        @include caret-start();
      }
    }

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

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
bootstrap-5.0.0.beta2 assets/stylesheets/bootstrap/mixins/_caret.scss
infotorg-api-jekyll-theme-0.1.8 _sass/bootstrap/mixins/_caret.scss
infotorg-api-jekyll-theme-0.1.7 _sass/bootstrap/mixins/_caret.scss
infotorg-api-jekyll-theme-0.1.5 _sass/bootstrap/mixins/_caret.scss
bootstrap-5.0.0.beta1 assets/stylesheets/bootstrap/mixins/_caret.scss
infotorg-api-jekyll-theme-0.1.4 _sass/bootstrap/mixins/_caret.scss
infotorg-api-jekyll-theme-0.1.3 _sass/bootstrap/mixins/_caret.scss
infotorg-api-jekyll-theme-0.1.2 _sass/bootstrap/mixins/_caret.scss
infotorg-api-jekyll-theme-0.1.1 _sass/bootstrap/mixins/_caret.scss
infotorg-api-jekyll-theme-0.1.0 _sass/bootstrap/mixins/_caret.scss