mirror of
https://github.com/tabler/tabler.git
synced 2026-08-29 21:31:28 +04:00
Remove leftover squircle-radius() dead code from border-radius mixin (#2896)
This commit is contained in:
@@ -22,28 +22,9 @@
|
||||
@return $return;
|
||||
}
|
||||
|
||||
@function squircle-radius($radius) {
|
||||
$return: ();
|
||||
@each $value in valid-radius($radius) {
|
||||
@if $value == 0 {
|
||||
$return: list.append($return, 0);
|
||||
} @else {
|
||||
$return: list.append($return, calc(#{$value} * 2.5));
|
||||
}
|
||||
}
|
||||
@return $return;
|
||||
}
|
||||
|
||||
@mixin border-radius($radius: $border-radius, $fallback-border-radius: false) {
|
||||
@if $enable-rounded {
|
||||
border-radius: valid-radius($radius);
|
||||
|
||||
// @if $radius != 0 {
|
||||
// @supports (corner-shape: squircle) {
|
||||
// corner-shape: squircle;
|
||||
// border-radius: squircle-radius($radius) !important;
|
||||
// }
|
||||
// }
|
||||
} @else if $fallback-border-radius != false {
|
||||
border-radius: $fallback-border-radius;
|
||||
}
|
||||
|
||||
@@ -21,13 +21,3 @@
|
||||
@include assert-equal(meta.inspect(valid-radius(4px -2px 6px)), '4px 0 6px');
|
||||
}
|
||||
}
|
||||
|
||||
@include describe('squircle-radius') {
|
||||
@include it('keeps 0 as 0') {
|
||||
@include assert-equal(meta.inspect(squircle-radius(0)), '0');
|
||||
}
|
||||
|
||||
@include it('scales a non-zero radius by 2.5 via calc()') {
|
||||
@include assert-equal(meta.inspect(squircle-radius(4px)), 'calc(4px * 2.5)');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user