Skip to content

Commit

Permalink
fix(community): fix tabbing order in contributor circle
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoMcA committed Oct 1, 2024
1 parent 8b751f0 commit 28aa732
Showing 1 changed file with 17 additions and 31 deletions.
48 changes: 17 additions & 31 deletions client/src/community/contributor-list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ svg {
}

li {
--offset-distance: calc(var(--community-circle-angle) * 50% + 25%);
// necessary because Firefox seems to have a bug where the links aren't
// clickable until we force some kind of re-render which an animation does:
animation: community-circle 0.1ms forwards;
Expand All @@ -109,41 +108,28 @@ svg {
}
}

&:nth-of-type(n + 6) {
--img-size: 5em;
offset-path: ellipse(50% 25% at 100% 50%);
}

&:nth-of-type(1) {
--community-circle-angle: 0;
}

&:nth-of-type(2) {
--community-circle-angle: 1/4;
}

&:nth-of-type(3) {
--community-circle-angle: 2/4;
}
$outer-elements: 5;
$inner-elements: 3;

&:nth-of-type(4) {
--community-circle-angle: 3/4;
}

&:nth-of-type(5) {
--community-circle-angle: 1;
}

&:nth-of-type(6) {
--community-circle-angle: 0;
@for $i from 1 through $outer-elements {
&:nth-of-type(#{$i}) {
--offset-distance: #{calc(
75% - (($i - 1) * 50% / ($outer-elements - 1))
)};
}
}

&:nth-of-type(7) {
--community-circle-angle: 1/2;
&:nth-of-type(n + #{$outer-elements + 1}) {
--img-size: 5em;
offset-path: ellipse(50% 25% at 100% 50%);
}

&:nth-of-type(8) {
--community-circle-angle: 1;
@for $i from 1 through $inner-elements {
&:nth-of-type(#{$outer-elements + $i}) {
--offset-distance: #{calc(
75% - (($i - 1) * 50% / ($inner-elements - 1))
)};
}
}
}

Expand Down

0 comments on commit 28aa732

Please sign in to comment.