Skip to content

Commit

Permalink
fix layout
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchox5 committed Oct 9, 2023
1 parent b15f382 commit 5e7acd5
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions src/layouts/_radial-grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -105,14 +105,23 @@
}
@each $orbit-size, $orbit-value in $orbit-sizes {

.pod > :nth-child(#{$i} of .orbit#{$orbit-size}) > .orbiter {
@each $class in $align {
$math: '';

@if $class == '.upper' {
$math: '+ (calc(var(--size) / 2))';
}
@if $class == '.lower' {
$math: '- (calc(var(--size) / 2))';
}

.pod > :nth-child(#{$i} of .orbit#{$orbit-size}) > .orbiter#{$class} {
@if $orbit-size != null {
--x: calc( #{$orbit-value} / 2);
--x: calc( #{$orbit-value} / 2 #{$math});
}

}
}

}
}

.orbiter > .orbit:nth-child(#{$i}) > .orbit {
--diam: calc(var(--size) * #{$i});
Expand Down

0 comments on commit 5e7acd5

Please sign in to comment.