Skip to content

Commit

Permalink
fix deprecated column width calculations
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobJR authored Feb 3, 2023
1 parent 1c59bd6 commit 28faedc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sass/abstracts/mixins/_mixins.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "sass:math";

// Center block
@mixin center-block {
display: block;
Expand All @@ -7,5 +9,5 @@

// Column width with margin
@mixin column-width($numberColumns: 3) {
width: map-get($columns, $numberColumns) - ( ( $columns__margin * ( $numberColumns - 1 ) ) / $numberColumns );
width: math.div($columns--margin * ($numberColumns - 1), $numberColumns) or calc(($columns--margin * ($numberColumns - 1)) / $numberColumns);
}

0 comments on commit 28faedc

Please sign in to comment.