Sha256: 3370e2a3f5bd2db2b977cd0f6cfa9804b7da16cb84f8e42ecc3dae2f3ca493de

Contents?: true

Size: 1.55 KB

Versions: 292

Compression:

Stored size: 1.55 KB

Contents

// scss-docs-start caret-mixins
@mixin caret-down($width: $caret-width) {
  border-top: $width solid;
  border-right: $width solid transparent;
  border-bottom: 0;
  border-left: $width solid transparent;
}

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

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

@mixin caret-start($width: $caret-width) {
  border-top: $width solid transparent;
  border-right: $width solid;
  border-bottom: $width solid transparent;
}

@mixin caret(
  $direction: down,
  $width: $caret-width,
  $spacing: $caret-spacing,
  $vertical-align: $caret-vertical-align
) {
  @if $enable-caret {
    &::after {
      display: inline-block;
      margin-left: $spacing;
      vertical-align: $vertical-align;
      content: "";
      @if $direction == down {
        @include caret-down($width);
      } @else if $direction == up {
        @include caret-up($width);
      } @else if $direction == end {
        @include caret-end($width);
      }
    }

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

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

    &:empty::after {
      margin-left: 0;
    }
  }
}
// scss-docs-end caret-mixins

Version data entries

292 entries across 292 versions & 13 rubygems

Version Path
jekyll-theme-centos-2.2.14 _sass/bootstrap/mixins/_caret.scss
jekyll-theme-centos-2.2.13 _sass/bootstrap/mixins/_caret.scss
jekyll-theme-centos-2.2.12 _sass/bootstrap/mixins/_caret.scss
jekyll-theme-centos-2.2.11 _sass/bootstrap/mixins/_caret.scss
jekyll-theme-centos-2.2.6 _sass/bootstrap/mixins/_caret.scss
jekyll-theme-centos-2.2.5 _sass/bootstrap/mixins/_caret.scss
jekyll-theme-centos-2.2.4 _sass/bootstrap/mixins/_caret.scss
jekyll-theme-centos-2.2.3 _sass/bootstrap/mixins/_caret.scss
jekyll-theme-centos-2.3.0.beta.136 _sass/bootstrap/mixins/_caret.scss
jekyll-theme-centos-2.3.0.beta.135 _sass/bootstrap/mixins/_caret.scss
jekyll-theme-centos-2.3.0.beta.134 _sass/bootstrap/mixins/_caret.scss
paraqeet-0.11.0 _sass/bootstrap/mixins/_caret.scss
jekyll-theme-centos-2.3.0.beta.133 _sass/bootstrap/mixins/_caret.scss
jekyll-theme-centos-2.3.0.beta.132 _sass/bootstrap/mixins/_caret.scss
jekyll-theme-centos-2.3.0.beta.131 _sass/bootstrap/mixins/_caret.scss
jekyll-theme-centos-2.3.0.beta.130 _sass/bootstrap/mixins/_caret.scss
jekyll-theme-centos-2.3.0.beta.129 _sass/bootstrap/mixins/_caret.scss
jekyll-theme-centos-2.3.0.beta.128 _sass/bootstrap/mixins/_caret.scss
jekyll-theme-centos-2.3.0.beta.127 _sass/bootstrap/mixins/_caret.scss
jekyll-theme-centos-2.3.0.beta.126 _sass/bootstrap/mixins/_caret.scss