Skip to content

Commit

Permalink
Update SCSS to use math module where necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
larsjohnsen committed May 29, 2021
1 parent a0ae0ae commit c53aa87
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion lib/css/_zindex.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
@use 'sass:math';

@function _($i) {
$base: 10000000;
$increment: $base / 100;
$increment: math.div($base, 100);

@return $base + $i * $increment;
}
Expand Down
6 changes: 4 additions & 2 deletions lib/css/modules/_wheelBrowse.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use 'sass:math';

$full-width: 32px;

.res-wheel-browse {
Expand All @@ -16,9 +18,9 @@ $full-width: 32px;

&-gallery {
position: absolute;
width: $full-width / 2;
width: math.div($full-width, 2);
height: 100%;
left: $full-width / 2;
left: math.div($full-width, 2);
background-color: rgba(255, 0, 0, .24);
}
}

0 comments on commit c53aa87

Please sign in to comment.