// scss-docs-start caret-mixins @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; } } } // scss-docs-end caret-mixins
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
_alert.scss | File | 268 B | 0644 |
|
_border-radius.scss | File | 1.98 KB | 0644 |
|
_box-shadow.scss | File | 398 B | 0644 |
|
_breakpoints.scss | File | 4.38 KB | 0644 |
|
_buttons.scss | File | 4.13 KB | 0644 |
|
_caret.scss | File | 1.44 KB | 0644 |
|
_clearfix.scss | File | 147 B | 0644 |
|
_color-scheme.scss | File | 167 B | 0644 |
|
_container.scss | File | 265 B | 0644 |
|
_deprecate.scss | File | 613 B | 0644 |
|
_forms.scss | File | 3.8 KB | 0644 |
|
_gradients.scss | File | 1.92 KB | 0644 |
|
_grid.scss | File | 3.88 KB | 0644 |
|
_image.scss | File | 395 B | 0644 |
|
_list-group.scss | File | 509 B | 0644 |
|
_lists.scss | File | 168 B | 0644 |
|
_pagination.scss | File | 741 B | 0644 |
|
_reset-text.scss | File | 495 B | 0644 |
|
_resize.scss | File | 202 B | 0644 |
|
_table-variants.scss | File | 980 B | 0644 |
|
_text-truncate.scss | File | 168 B | 0644 |
|
_transition.scss | File | 661 B | 0644 |
|
_utilities.scss | File | 2.23 KB | 0644 |
|
_visually-hidden.scss | File | 1011 B | 0644 |
|