Skip to content

Commit bf3a67e

Browse files
committed
Fix arc angle
1 parent 67830be commit bf3a67e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/_radial-grid.scss

+11-1
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,21 @@
4848
}
4949

5050
@for $i from $min-items through $max-items {
51-
.items-#{$i}>.item {
51+
@each $arc,
52+
$value in $arcs {
53+
.items-#{$i}.#{$arc}>.item {
54+
--angle: calc((var(--arc) / #{$i - 1}) * var(--direction));
55+
}
56+
}
57+
}
58+
@for $i from $min-items through $max-items {
59+
.items-#{$i}>.item {
5260
--angle: calc((var(--arc) / #{$i}) * var(--direction));
5361
}
5462
}
5563

64+
65+
5666
@for $i from $min-rings through $max-rings {
5767
@each $size,
5868
$var in $sizes {

0 commit comments

Comments
 (0)