scss: fix check for positive $cell-border-radius (#39883)
This commit is contained in:
parent
8ac1d03e3e
commit
d2b35d452f
|
@ -73,7 +73,7 @@ div.block {
|
|||
color: $cell-color;
|
||||
box-sizing: border-box;
|
||||
border: $cell-border;
|
||||
@if $cell-border-radius {
|
||||
@if is-positive-number($cell-border-radius) {
|
||||
border-radius: $cell-border-radius;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
|
|
@ -33,3 +33,8 @@ $black: #000000 !default;
|
|||
@if type-of($part) == number { @return $part; } }
|
||||
@return 0;
|
||||
}
|
||||
|
||||
// Check if value is a number > 0;
|
||||
@function is-positive-number($value) {
|
||||
@return type-of($value) == 'number' and $value > 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue