Skip to content

Commit 074fd93

Browse files
committed
Add variables in SCSS and use math operators for variables
1 parent 202d2fb commit 074fd93

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/TodoList.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
@use "sass:math";
2+
$margin: 10px;
13
h3 {
2-
margin: 10px 0 0;
4+
margin: $margin 0 0;
35
}
46

57
ul {
@@ -9,7 +11,7 @@ ul {
911
}
1012

1113
li {
12-
margin: 5px 10px; //add line spacing between tasks
14+
margin: #{math.div($margin, 2)} $margin; //add line spacing between tasks
1315
}
1416

1517
a {

0 commit comments

Comments
 (0)