// stylelint-disable property-disallowed-list // Single side border-radius // Helper function to replace negative values with 0 @function valid-radius($radius) { $return: (); @each $value in $radius { @if type-of($value) == number { $return: append($return, max($value, 0)); } @else { $return: append($return, $value); } } @return $return; } // scss-docs-start border-radius-mixins @mixin border-radius($radius: $border-radius, $fallback-border-radius: false) { @if $enable-rounded { border-radius: valid-radius($radius); } @else if $fallback-border-radius != false { border-radius: $fallback-border-radius; } } @mixin border-top-radius($radius: $border-radius) { @if $enable-rounded { border-top-left-radius: valid-radius($radius); border-top-right-radius: valid-radius($radius); } } @mixin border-end-radius($radius: $border-radius) { @if $enable-rounded { border-top-right-radius: valid-radius($radius); border-bottom-right-radius: valid-radius($radius); } } @mixin border-bottom-radius($radius: $border-radius) { @if $enable-rounded { border-bottom-right-radius: valid-radius($radius); border-bottom-left-radius: valid-radius($radius); } } @mixin border-start-radius($radius: $border-radius) { @if $enable-rounded { border-top-left-radius: valid-radius($radius); border-bottom-left-radius: valid-radius($radius); } } @mixin border-top-start-radius($radius: $border-radius) { @if $enable-rounded { border-top-left-radius: valid-radius($radius); } } @mixin border-top-end-radius($radius: $border-radius) { @if $enable-rounded { border-top-right-radius: valid-radius($radius); } } @mixin border-bottom-end-radius($radius: $border-radius) { @if $enable-rounded { border-bottom-right-radius: valid-radius($radius); } } @mixin border-bottom-start-radius($radius: $border-radius) { @if $enable-rounded { border-bottom-left-radius: valid-radius($radius); } } // scss-docs-end border-radius-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 |
|