|
55 | 55 |
|
56 | 56 | @if $direction == "up" {
|
57 | 57 | border-color: transparent transparent $color;
|
58 |
| - border-width: 0 ($width * 0.5) $height; |
| 58 | + border-width: 0 ($width / 2) $height; |
59 | 59 | } @else if $direction == "up-right" {
|
60 | 60 | border-color: transparent $color transparent transparent;
|
61 | 61 | border-width: 0 $width $width 0;
|
62 | 62 | } @else if $direction == "right" {
|
63 | 63 | border-color: transparent transparent transparent $color;
|
64 |
| - border-width: ($height * 0.5) 0 ($height * 0.5) $width; |
| 64 | + border-width: ($height / 2) 0 ($height / 2) $width; |
65 | 65 | } @else if $direction == "down-right" {
|
66 | 66 | border-color: transparent transparent $color;
|
67 | 67 | border-width: 0 0 $width $width;
|
68 | 68 | } @else if $direction == "down" {
|
69 | 69 | border-color: $color transparent transparent;
|
70 |
| - border-width: $height ($width * 0.5) 0; |
| 70 | + border-width: $height ($width / 2) 0; |
71 | 71 | } @else if $direction == "down-left" {
|
72 | 72 | border-color: transparent transparent transparent $color;
|
73 | 73 | border-width: $width 0 0 $width;
|
74 | 74 | } @else if $direction == "left" {
|
75 | 75 | border-color: transparent $color transparent transparent;
|
76 |
| - border-width: ($height * 0.5) $width ($height * 0.5) 0; |
| 76 | + border-width: ($height / 2) $width ($height / 2) 0; |
77 | 77 | } @else if $direction == "up-left" {
|
78 | 78 | border-color: $color transparent transparent;
|
79 | 79 | border-width: $width $width 0 0;
|
|
0 commit comments