Warning, /iDDS/monitor/data/scss/bootstrap/mixins/_border-radius.scss is written in an unsupported language. File is not indexed.
0001 // stylelint-disable property-disallowed-list
0002 // Single side border-radius
0003
0004 // Helper function to replace negative values with 0
0005 @function valid-radius($radius) {
0006 $return: ();
0007 @each $value in $radius {
0008 @if type-of($value) == number {
0009 $return: append($return, max($value, 0));
0010 } @else {
0011 $return: append($return, $value);
0012 }
0013 }
0014 @return $return;
0015 }
0016
0017 @mixin border-radius($radius: $border-radius, $fallback-border-radius: false) {
0018 @if $enable-rounded {
0019 border-radius: valid-radius($radius);
0020 }
0021 @else if $fallback-border-radius != false {
0022 border-radius: $fallback-border-radius;
0023 }
0024 }
0025
0026 @mixin border-top-radius($radius: $border-radius) {
0027 @if $enable-rounded {
0028 border-top-left-radius: valid-radius($radius);
0029 border-top-right-radius: valid-radius($radius);
0030 }
0031 }
0032
0033 @mixin border-end-radius($radius: $border-radius) {
0034 @if $enable-rounded {
0035 border-top-right-radius: valid-radius($radius);
0036 border-bottom-right-radius: valid-radius($radius);
0037 }
0038 }
0039
0040 @mixin border-bottom-radius($radius: $border-radius) {
0041 @if $enable-rounded {
0042 border-bottom-right-radius: valid-radius($radius);
0043 border-bottom-left-radius: valid-radius($radius);
0044 }
0045 }
0046
0047 @mixin border-start-radius($radius: $border-radius) {
0048 @if $enable-rounded {
0049 border-top-left-radius: valid-radius($radius);
0050 border-bottom-left-radius: valid-radius($radius);
0051 }
0052 }
0053
0054 @mixin border-top-start-radius($radius: $border-radius) {
0055 @if $enable-rounded {
0056 border-top-left-radius: valid-radius($radius);
0057 }
0058 }
0059
0060 @mixin border-top-end-radius($radius: $border-radius) {
0061 @if $enable-rounded {
0062 border-top-right-radius: valid-radius($radius);
0063 }
0064 }
0065
0066 @mixin border-bottom-end-radius($radius: $border-radius) {
0067 @if $enable-rounded {
0068 border-bottom-right-radius: valid-radius($radius);
0069 }
0070 }
0071
0072 @mixin border-bottom-start-radius($radius: $border-radius) {
0073 @if $enable-rounded {
0074 border-bottom-left-radius: valid-radius($radius);
0075 }
0076 }