Skip to content

Commit

Permalink
fix: do the math ourselves (jquense#2220)
Browse files Browse the repository at this point in the history
Remove requirement for SASS math plugin by doing the math ourselves
  • Loading branch information
cutterbl committed Jul 11, 2022
1 parent 9b7e3b6 commit cace54e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
24 changes: 12 additions & 12 deletions .size-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
Expand Down
5 changes: 2 additions & 3 deletions src/sass/variables.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@use "sass:math";

$out-of-range-color: lighten(#333, 40%) !default;
$out-of-range-bg-color: lighten(#333, 70%) !default;

Expand All @@ -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;
Expand Down

0 comments on commit cace54e

Please sign in to comment.