Skip to content

Commit

Permalink
remove deprecated o-text traces
Browse files Browse the repository at this point in the history
  • Loading branch information
tinchox5 committed Dec 24, 2024
1 parent 9ced925 commit f11a74e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 23 deletions.
6 changes: 3 additions & 3 deletions src/scss/_radial-layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
}

@for $i from 1 through $max-orbiters {
:nth-child(#{$i} of .satellite),:nth-child(#{$i} of o-arc), :nth-child(#{$i} of .vector) ,:nth-child(#{$i} of o-text) {
:nth-child(#{$i} of .satellite),:nth-child(#{$i} of o-arc), :nth-child(#{$i} of .vector) {
--o-orbit-child-number: #{$i - 1}; // Uses - 1 to start from 0 deg.
}
}

@for $i from 1 through $max-orbiters {
.orbit:has(> :nth-child(#{$i} of .satellite), > :nth-child(#{$i} of o-arc), > :nth-child(#{$i} of .vector), > :nth-child(#{$i} of .side), > :nth-child(#{$i} of o-text)),
[class*='orbit-']:has(> :nth-child(#{$i} of .satellite), > :nth-child(#{$i} of o-arc), > :nth-child(#{$i} of .vector), > :nth-child(#{$i} of .side), > :nth-child(#{$i} of o-text)) {
.orbit:has(> :nth-child(#{$i} of .satellite), > :nth-child(#{$i} of o-arc), > :nth-child(#{$i} of .vector), > :nth-child(#{$i} of .side)),
[class*='orbit-']:has(> :nth-child(#{$i} of .satellite), > :nth-child(#{$i} of o-arc), > :nth-child(#{$i} of .vector), > :nth-child(#{$i} of .side)) {
--o-angle: calc(var(--o-range) / (#{$i} - var(--o-fit-range, 0)));
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/scss/_support.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,13 @@

@container oslice not style(--o-ellipse-x: 1) {
/* Shown if ratio equals 1*/
o-arc, o-progress, o-text {
o-arc, o-progress {
display: none;
}
}
@container oslice not style(--o-ellipse-y: 1) {
/* Shown if ratio equals 1*/
o-arc, o-progress, o-text {
o-arc, o-progress {
display: none;
}
}
Expand Down
14 changes: 0 additions & 14 deletions src/scss/_themes.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ o-arc {
--o-hover-color: unset;
}

o-text {
--o-color: currentcolor;
--o-hover-color: unset;
}

/* Dev theme based on default*/
.dev-orbit.gravity-spot {
background: none;
Expand Down Expand Up @@ -82,11 +77,6 @@ o-text {
--o-hover-color: unset;
}

o-text {
--o-color: currentColor;
--o-hover-color: unset;

}
}

/* cyan theme based on default*/
Expand Down Expand Up @@ -127,10 +117,6 @@ o-arc {
--o-hover-color: unset;
}

o-text {
--o-text-color: var(--o-cyan-dark);
--o-hover-color: var(--o-cyan-darker);
}
}


Expand Down
8 changes: 4 additions & 4 deletions src/scss/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ $max-grade: 360;
}
}
@for $i from 0 through $max-grade {
o-arc.angle-#{$i}, o-progress.angle-#{$i}, o-text.angle-#{$i} {
o-arc.angle-#{$i}, o-progress.angle-#{$i} {
--o-angle-composite: calc(#{$i}deg) !important;
}
}
Expand All @@ -83,7 +83,7 @@ $max-grade: 360;

$max-gaps: calc($max-orbiters / 2);
@for $i from 0 through $max-gaps {
o-arc.gap-#{$i}, o-text.gap-#{$i} {
o-arc.gap-#{$i} {
--o-gap: #{$i};
}
}
Expand Down Expand Up @@ -117,14 +117,14 @@ Can be used in parent elements or in each orbiter class
}
@for $i from 1 through $max-orbits {
.grow-#{$i}x {
--o-size-ratio: #{calc($i * 2)} !important;
--o-size-ratio: #{calc($i + 1)} !important;
}

@for $f from 1 through 9 {
$percent: calc($f);
$value: calc($f / 10);
.grow-#{$i}\.#{$percent}x {
--o-size-ratio: #{calc($i * 2 + $value)} !important;
--o-size-ratio: #{calc($i + 1 + $value)} !important;
}
}

Expand Down

0 comments on commit f11a74e

Please sign in to comment.