|
1 | 1 | @for $step from var(--offset-from) to var(--offset-to) by var(--offset-step) { |
2 | 2 | .offset-m-$(step) { |
3 | | - margin: calc($(step) * (1var(--offset-ext))); |
| 3 | + margin: calc($(step))var(--offset-ext); |
4 | 4 | } |
5 | 5 | .offset-p-$(step) { |
6 | | - padding: calc($(step) * (1var(--offset-ext))); |
| 6 | + padding: calc($(step))var(--offset-ext); |
7 | 7 | } |
8 | 8 | } |
9 | 9 |
|
10 | 10 | @each $position in v, h { |
11 | 11 | @for $step from var(--offset-from) to var(--offset-to) by var(--offset-step) { |
12 | 12 | .offset-m$(position)-$(step) { |
13 | 13 | @if ($position == 'v') { |
14 | | - margin-left: calc($(step) * (1var(--offset-ext))); |
15 | | - margin-right: calc($(step) * (1var(--offset-ext))); |
| 14 | + margin-left: calc($(step))var(--offset-ext); |
| 15 | + margin-right: calc($(step))var(--offset-ext); |
16 | 16 | } |
17 | 17 |
|
18 | 18 | @if ($position == 'h') { |
19 | | - margin-top: calc($(step) * (1var(--offset-ext))); |
20 | | - margin-bottom: calc($(step) * (1var(--offset-ext))); |
| 19 | + margin-top: calc($(step))var(--offset-ext); |
| 20 | + margin-bottom: calc($(step))var(--offset-ext); |
21 | 21 | } |
22 | 22 | } |
23 | 23 |
|
24 | 24 | .offset-p$(position)-$(step) { |
25 | 25 | @if ($position == 'v') { |
26 | | - padding-left: calc($(step) * (1var(--offset-ext))); |
27 | | - padding-right: calc($(step) * (1var(--offset-ext))); |
| 26 | + padding-left: calc($(step))var(--offset-ext); |
| 27 | + padding-right: calc($(step))var(--offset-ext); |
28 | 28 | } |
29 | 29 |
|
30 | 30 | @if ($position == 'h') { |
31 | | - padding-top: calc($(step) * (1var(--offset-ext))); |
32 | | - padding-bottom: calc($(step) * (1var(--offset-ext))); |
| 31 | + padding-top: calc($(step))var(--offset-ext); |
| 32 | + padding-bottom: calc($(step))var(--offset-ext); |
33 | 33 | } |
34 | 34 | } |
35 | 35 | } |
|
39 | 39 | @for $step from var(--offset-from) to var(--offset-to) by var(--offset-step) { |
40 | 40 | .offset-m$(position)-$(step) { |
41 | 41 | @if ($position == 't') { |
42 | | - margin-top: calc($(step) * (1var(--offset-ext))); |
| 42 | + margin-top: calc($(step))var(--offset-ext); |
43 | 43 | } |
44 | 44 |
|
45 | 45 | @if ($position == 'b') { |
46 | | - margin-bottom: calc($(step) * (1var(--offset-ext))); |
| 46 | + margin-bottom: calc($(step))var(--offset-ext); |
47 | 47 | } |
48 | 48 |
|
49 | 49 | @if ($position == 'l') { |
50 | | - margin-left: calc($(step) * (1var(--offset-ext))); |
| 50 | + margin-left: calc($(step))var(--offset-ext); |
51 | 51 | } |
52 | 52 |
|
53 | 53 | @if ($position == 'r') { |
54 | | - margin-right: calc($(step) * (1var(--offset-ext))); |
| 54 | + margin-right: calc($(step))var(--offset-ext); |
55 | 55 | } |
56 | 56 | } |
57 | 57 | .offset-p$(position)-$(step) { |
58 | 58 | @if ($position == 't') { |
59 | | - padding-top: calc($(step) * (1var(--offset-ext))); |
| 59 | + padding-top: calc($(step))var(--offset-ext); |
60 | 60 | } |
61 | 61 |
|
62 | 62 | @if ($position == 'b') { |
63 | | - padding-bottom: calc($(step) * (1var(--offset-ext))); |
| 63 | + padding-bottom: calc($(step))var(--offset-ext); |
64 | 64 | } |
65 | 65 |
|
66 | 66 | @if ($position == 'l') { |
67 | | - padding-left: calc($(step) * (1var(--offset-ext))); |
| 67 | + padding-left: calc($(step))var(--offset-ext); |
68 | 68 | } |
69 | 69 |
|
70 | 70 | @if ($position == 'r') { |
71 | | - padding-right: calc($(step) * (1var(--offset-ext))); |
| 71 | + padding-right: calc($(step))var(--offset-ext); |
72 | 72 | } |
73 | 73 | } |
74 | 74 | } |
|
0 commit comments