Skip to content

Commit

Permalink
fix offset
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Muda committed Mar 20, 2023
1 parent 605ae85 commit 74b7183
Show file tree
Hide file tree
Showing 6 changed files with 260 additions and 260 deletions.
506 changes: 253 additions & 253 deletions css/index.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/index.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/index.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/css/index.min.css.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<hr class="item line">
<hr class="item line">
</div>
<div class="ring-1 items-5 offset-180" style="background-color: rgb(131, 204, 35);">
<div class="ring-1 items-5" style="background-color: rgb(131, 204, 35);">
<div class="item s box">A</div>
<div class="item s rounded">N</div>
<div class="item s"> D
Expand Down
6 changes: 3 additions & 3 deletions src/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@

}
.core >.item {
transform: rotate(calc(var(--angle) * var(--item-number) * 1deg))
transform: rotate(calc((var(--angle) * var(--item-number) + var(--offset-angle)) * 1deg))
}
@for $i from $min-rings through $max-rings {

Expand All @@ -370,12 +370,12 @@

.item.#{$size}>.ring-#{$i}>.item#{$class} {
--x: calc((#{$var} / 2 * var(--ring-#{$i}-factor)) #{$math});
transform: rotate(calc(var(--angle) * var(--item-number) * 1deg)) translate(var(--x), 0) rotate(calc(var(--angle) * var(--item-number) * 1deg * -1));
transform: rotate(calc((var(--angle) * var(--item-number) + var(--offset-angle)) * 1deg)) translate(var(--x), 0) rotate(calc((var(--angle) * var(--item-number) + var(--offset-angle)) * -1deg));
}

.item.#{$size}>.ring-#{$i}> .item.stationary#{$class} {
--x: calc((#{$var} / 2 * var(--ring-#{$i}-factor)) #{$math});
transform: rotate(calc(var(--angle) * var(--item-number) * 1deg)) translate(var(--x), 0);
transform: rotate(calc((var(--angle) * var(--item-number) + var(--offset-angle)) * 1deg)) translate(var(--x), 0);
}
}
}
Expand Down

0 comments on commit 74b7183

Please sign in to comment.