Skip to content

Commit

Permalink
Fix arc angle
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchox5 committed Mar 30, 2023
1 parent 67830be commit bf3a67e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/_radial-grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,21 @@
}

@for $i from $min-items through $max-items {
.items-#{$i}>.item {
@each $arc,
$value in $arcs {
.items-#{$i}.#{$arc}>.item {
--angle: calc((var(--arc) / #{$i - 1}) * var(--direction));
}
}
}
@for $i from $min-items through $max-items {
.items-#{$i}>.item {
--angle: calc((var(--arc) / #{$i}) * var(--direction));
}
}



@for $i from $min-rings through $max-rings {
@each $size,
$var in $sizes {
Expand Down

0 comments on commit bf3a67e

Please sign in to comment.