Skip to content

Commit

Permalink
refactor(pie): drop useless td selector
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Oct 20, 2023
1 parent 1aee5df commit a420a84
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 44 deletions.
15 changes: 6 additions & 9 deletions _site/templates/css/examples/pie.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
}

.chaarts.pie tr {
--lt-25: clamp(0, 25 - var(--value), 1);
--gt-25: calc(1 - var(--lt-25));
--lt-50: clamp(0, 50 - var(--value), 1);
--gt-50: calc(1 - var(--lt-50));
--lt-75: clamp(0, 75 - var(--value), 1);
--gt-75: calc(1 - var(--lt-75));
align-items: center;
display: flex;
flex: 1 1 auto;
Expand Down Expand Up @@ -91,15 +97,6 @@
translate: calc(-0.2rem * var(--is-rtl, 1)) 0.1rem 0;
}

.chaarts.pie td {
--lt-25: clamp(0, 25 - var(--value), 1);
--gt-25: calc(1 - var(--lt-25));
--lt-50: clamp(0, 50 - var(--value), 1);
--gt-50: calc(1 - var(--lt-50));
--lt-75: clamp(0, 75 - var(--value), 1);
--gt-75: calc(1 - var(--lt-75));
}

.chaarts.pie td::after,
.chaarts.pie td::before {
inset-block-start: calc(var(--radius) / 2);
Expand Down
14 changes: 6 additions & 8 deletions dist/chaarts.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/chaarts.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/chaarts.min.css

Large diffs are not rendered by default.

Loading

0 comments on commit a420a84

Please sign in to comment.