Skip to content

Commit a440e07

Browse files
fix: math.div to calc
1 parent f11703c commit a440e07

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

scss/_widths.scss

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@use "sass:math";
21
// Converted Variables
32

43

@@ -70,8 +69,8 @@
7069
.w-90 { width: 90%; }
7170
.w-100 { width: 100%; }
7271

73-
.w-third { width: math.div(100% / 3); }
74-
.w-two-thirds { width: math.div(100% / 1.5); }
72+
.w-third { width: calc(100% / 3); }
73+
.w-two-thirds { width: calc(100% / 1.5); }
7574
.w-auto { width: auto; }
7675

7776
@media #{$breakpoint-not-small} {
@@ -94,8 +93,8 @@
9493
.w-80-ns { width: 80%; }
9594
.w-90-ns { width: 90%; }
9695
.w-100-ns { width: 100%; }
97-
.w-third-ns { width: math.div(100% / 3); }
98-
.w-two-thirds-ns { width: math.div(100% / 1.5); }
96+
.w-third-ns { width: calc(100% / 3); }
97+
.w-two-thirds-ns { width: calc(100% / 1.5); }
9998
.w-auto-ns { width: auto; }
10099
}
101100

@@ -119,8 +118,8 @@
119118
.w-80-m { width: 80%; }
120119
.w-90-m { width: 90%; }
121120
.w-100-m { width: 100%; }
122-
.w-third-m { width: math.div(100% / 3); }
123-
.w-two-thirds-m { width: math.div(100% / 1.5); }
121+
.w-third-m { width: calc(100% / 3); }
122+
.w-two-thirds-m { width: calc(100% / 1.5); }
124123
.w-auto-m { width: auto; }
125124
}
126125

@@ -144,7 +143,7 @@
144143
.w-80-l { width: 80%; }
145144
.w-90-l { width: 90%; }
146145
.w-100-l { width: 100%; }
147-
.w-third-l { width: math.div(100% / 3); }
148-
.w-two-thirds-l { width: math.div(100% / 1.5); }
146+
.w-third-l { width: calc(100% / 3); }
147+
.w-two-thirds-l { width: calc(100% / 1.5); }
149148
.w-auto-l { width: auto; }
150149
}

0 commit comments

Comments
 (0)