Skip to content

Commit

Permalink
Add fine grine ring size
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Muda committed Apr 4, 2023
1 parent 1069e6e commit 4916ed8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/_core-elements.scss
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ $angle in $sectors {

@for $i from $min-rings through $max-rings {
.z-container>.ring-#{$i} {
width: calc(var(--radius) * 2 * var(--ring-#{$i}-factor));
height: calc(var(--radius) * 2 * var(--ring-#{$i}-factor));
width: calc(var(--radius-#{$i}) * 2);
height: calc(var(--radius-#{$i}) * 2);
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/_radial-grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
--offset-angle: 0;
--direction: 1;
--angle: 1;
--radius: 10vw;
--radius: 50px;
--item-number: 1;
--radius-padding: 8px;

@for $i from $min-rings through $max-rings {
--ring-#{$i}-factor: #{$i};
--radius-#{$i}: var(--radius) * #{$i};
}

/* Shape sizes */
Expand Down

0 comments on commit 4916ed8

Please sign in to comment.