Skip to content

Commit 75a3f41

Browse files
committed
Using / for division in Sass is deprecated
1 parent 08f5b3d commit 75a3f41

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

src/assets/sass/modules/_alerts.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@use "../setup";
2+
@use "sass:math";
23

34
/* Alert messages
45
========================================================================== */
@@ -61,7 +62,7 @@
6162
.alert-block {
6263
padding: 0.5em 1em;
6364
border: 1px solid;
64-
border-radius: setup.$border-radius / 2;
65+
border-radius: math.div(setup.$border-radius, 2);
6566
word-wrap: break-word; /* 1 */
6667

6768
&.success {

src/assets/sass/modules/_cards.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@use "../setup";
2+
@use "sass:math";
23

34
/* Cards/article tiles
45
========================================================================== */
@@ -37,20 +38,20 @@
3738
top: 0;
3839
left: -1px;
3940
transform: translateY(-50%);
40-
border-radius: (setup.$border-radius / 2) (setup.$border-radius / 2) (setup.$border-radius / 2) 0;
41+
border-radius: (math.div(setup.$border-radius, 2)) (math.div(setup.$border-radius, 2)) (math.div(setup.$border-radius, 2)) 0;
4142
}
4243
}
4344

4445
.card.align-right .alert-pill {
4546
right: -1px;
4647
left: auto;
47-
border-radius: (setup.$border-radius / 2) (setup.$border-radius / 2) 0;
48+
border-radius: (math.div(setup.$border-radius, 2)) (math.div(setup.$border-radius, 2)) 0;
4849
}
4950

5051
.card.align-center .alert-pill {
5152
left: 50%;
5253
transform: translate(-50%, -50%);
53-
border-radius: (setup.$border-radius / 2);
54+
border-radius: math.div(setup.$border-radius, 2);
5455
}
5556

5657
.card-body {

src/assets/sass/modules/_responsive.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
@use "../setup";
2+
@use "sass:math";
23

34
/* ==========================================================================
45
Styling and layout for screen media at 1st breakpoint
@@ -291,7 +292,7 @@
291292
margin: 0 0.2727273em 0.2727273em -0.2727273em; // 6px / 22px
292293
padding: 0 0.2727273em; // 6px / 22px
293294
border: 1px solid var(--clr-bkgd);
294-
border-radius: setup.$border-radius / 2;
295+
border-radius: math.div(setup.$border-radius, 2);
295296
font-size: 1.375em; // 22px / 16px
296297
font-weight: 400;
297298

0 commit comments

Comments
 (0)