Skip to content

Commit

Permalink
fix nested orbit arbitrary sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Muda committed Oct 19, 2023
1 parent 46aa53a commit dcd1944
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/layouts/_radial-grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,21 @@
--o-z-index: #{$z-index};
// }
}

@each $orbit-size, $orbit-value in $orbit-sizes {

.o-orbiter > :nth-child(#{$i} of .o-orbit#{$orbit-size}) {
@if $orbit-size != null {

--o-diameter: #{$orbit-value};
} @else {
--o-diameter: calc(var(--o-size) * #{$i});
}
--o-z-index: #{$z-index};

}
}

}

/* ====== Radial Grid - Sub-orbit ======== */
Expand Down

0 comments on commit dcd1944

Please sign in to comment.