Skip to content

Commit

Permalink
fix(triangle): replace division with math.div for border-width
Browse files Browse the repository at this point in the history
  • Loading branch information
Marinerer committed Jul 12, 2024
1 parent 6d88816 commit a34096b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mixins/_triangle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@
border-width: 0 $width $width 0;
} @else if $direction == "right" {
border-color: transparent transparent transparent $color;
border-width: ($height / 2) 0 ($height / 2) $width;
border-width: math.div($height,2) 0 math.div($height,2) $width;
} @else if $direction == "down-right" {
border-color: transparent transparent $color;
border-width: 0 0 $width $width;
} @else if $direction == "down" {
border-color: $color transparent transparent;
border-width: $height ($width / 2) 0;
border-width: $height math.div($width,2) 0;
} @else if $direction == "down-left" {
border-color: transparent transparent transparent $color;
border-width: $width 0 0 $width;
} @else if $direction == "left" {
border-color: transparent $color transparent transparent;
border-width: ($height / 2) $width ($height / 2) 0;
border-width: math.div($height,2) $width math.div($height,2) 0;
} @else if $direction == "up-left" {
border-color: $color transparent transparent;
border-width: $width $width 0 0;
Expand Down

0 comments on commit a34096b

Please sign in to comment.