Skip to content

Commit e4b9f3f

Browse files
committed
components/LoadingSpinner.scss: pull math.div outside of calc function
1 parent dd509c0 commit e4b9f3f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/LoadingSpinner.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
@use "sass:math";
44

55
$size: 30px;
6+
$half-size: math.div($size, 2);
67

78
.spinner {
89
position: relative;
910
// TODO: #9: address build warnings
10-
top: calc(50% - math.div(#{$size}, 2));
11-
left: calc(50% - math.div(#{$size}, 2));
11+
top: calc(50% - $half-size);
12+
left: calc(50% - $half-size);
1213
width: $size;
1314
height: $size;
1415
animation: spinner 0.75s linear infinite;

0 commit comments

Comments
 (0)