From cace54e8b4b0f6baef35f1dac11bcf8f541f5301 Mon Sep 17 00:00:00 2001
From: Steve 'Cutter' Blades <no.junk@cutterscrossing.com>
Date: Mon, 11 Jul 2022 08:51:03 -0500
Subject: [PATCH] fix: do the math ourselves (#2220)

Remove requirement for SASS math plugin by doing the math ourselves
---
 .size-snapshot.json     | 24 ++++++++++++------------
 src/sass/variables.scss |  5 ++---
 2 files changed, 14 insertions(+), 15 deletions(-)

diff --git a/.size-snapshot.json b/.size-snapshot.json
index 8650b41d9d..f51ebdd369 100644
--- a/.size-snapshot.json
+++ b/.size-snapshot.json
@@ -24,26 +24,26 @@
     }
   },
   "react-big-calendar.js": {
-    "bundled": 1589216,
-    "minified": 446843,
-    "gzipped": 137873
+    "bundled": 1626986,
+    "minified": 458062,
+    "gzipped": 141015
   },
   "react-big-calendar.min.js": {
-    "bundled": 285015,
-    "minified": 283564,
-    "gzipped": 89629
+    "bundled": 296359,
+    "minified": 294893,
+    "gzipped": 92856
   },
   "react-big-calendar.esm.js": {
-    "bundled": 200727,
-    "minified": 93588,
-    "gzipped": 24341,
+    "bundled": 204084,
+    "minified": 95141,
+    "gzipped": 24761,
     "treeshaked": {
       "rollup": {
-        "code": 66887,
-        "import_statements": 1823
+        "code": 68272,
+        "import_statements": 1772
       },
       "webpack": {
-        "code": 70478
+        "code": 71884
       }
     }
   }
diff --git a/src/sass/variables.scss b/src/sass/variables.scss
index 1cb13e5741..3670180bff 100644
--- a/src/sass/variables.scss
+++ b/src/sass/variables.scss
@@ -1,5 +1,3 @@
-@use "sass:math";
-
 $out-of-range-color: lighten(#333, 40%) !default;
 $out-of-range-bg-color: lighten(#333, 70%) !default;
 
@@ -8,7 +6,8 @@ $cell-border: #ddd !default;
 
 $border-color: #ccc !default;
 
-$segment-width: percentage(math.div(1, 7)) !default;
+// Each calendar segment is 1/7th.
+$segment-width: 0.14286% !default;
 
 $time-selection-color: white !default;
 $time-selection-bg-color: rgba(0, 0, 0, 0.5) !default;