Skip to content

Commit

Permalink
Revert "refactor(line): consolidate row styles"
Browse files Browse the repository at this point in the history
This reverts commit bc6b43b.
  • Loading branch information
ffoodd committed Oct 9, 2023
1 parent bc6b43b commit 56d15a3
Show file tree
Hide file tree
Showing 10 changed files with 49 additions and 35 deletions.
9 changes: 7 additions & 2 deletions _site/templates/css/examples/line.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,18 @@
z-index: 1;
}

.chaarts.line tr::before {
content: "";
position: absolute;
}

.chaarts.line [scope=row],
.chaarts.line thead th:first-child {
color: var(--color, currentcolor);
text-align: start;
}

.chaarts.line tr[style]::before {
.chaarts.line [style]::before {
background: linear-gradient(to top, var(--chaarts-blue), var(--chaarts-red) 75%);
clip-path: var(--polygon);
content: "";
Expand Down Expand Up @@ -58,7 +63,7 @@
}

@media (prefers-contrast: more) {
.chaarts.line tr[style]::before {
.chaarts.line [style]::before {
background: var(--chaarts-blue);
}
}
Expand Down
48 changes: 25 additions & 23 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 56d15a3

Please sign in to comment.