Skip to content

Commit

Permalink
update grid
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchox5 committed Oct 4, 2023
1 parent b5446e4 commit 0aa7d4d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/layouts/_radial-grid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
$z-index: #{$max-orbits - $i};

/* Check if the parent is .docker */
.docker > .orbit:nth-child(#{$i}) {
.docker > :nth-child(#{$i} of .orbit) {
--diam: calc(var(--radius-#{$i}) * 2);
--z-index: #{$z-index};
}

/* Check if the parent is .orbiter */
// @each $size, $var in $sizes {
.orbiter > .orbit:nth-child(#{$i}) {
.orbiter > :nth-child(#{$i} of .orbit) {
// @if $size == null {
// --diam: calc(var(--m) * #{$i});
// } @else {
Expand All @@ -46,15 +46,15 @@
$z-index: #{$max-orbits - $i};

/* Check if the parent is .docker */
.docker > .orbit:nth-child(#{$i}) > .orbit {
.docker > :nth-child(#{$i} of .orbit) > .orbit {
--diam: calc(var(--radius-#{$i}) * 2);
--z-index: #{$z-index};
--x: calc(var(--radius-#{$i}));
border: none;
}

/* Check if the parent is .docker */
.docker > .orbit:nth-child(#{$i}) > .orbit > .sector {
.docker > :nth-child(#{$i} of .orbit) > .orbit > .sector {
--length: calc(var(--radius-#{$i}) * 2);
--current-orbit: #{$i};
--max-orbits: #{$max-orbits};
Expand Down Expand Up @@ -165,7 +165,7 @@
@for $i from $min-orbits through $max-orbits {

/* Set x variable for each orbiter */
.docker > .orbit:nth-child(#{$i}) > .orbiter {
.docker > :nth-child(#{$i} of .orbit) > .orbiter {
--x: calc(var(--radius-#{$i}));
}
@each $class in $align {
Expand Down
4 changes: 3 additions & 1 deletion src/utilities/_reset.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/* container */
.docker * {
box-sizing: border-box;
margin: 0;
padding: 0;
}
ul.orbit, li.orbit {
margin: 0
}

0 comments on commit 0aa7d4d

Please sign in to comment.