Skip to content

Commit

Permalink
refactor(line): consolidate row styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ffoodd committed Oct 5, 2023
1 parent e13ba34 commit bc6b43b
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 49 deletions.
9 changes: 2 additions & 7 deletions _site/templates/css/examples/line.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,13 @@
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 [style]::before {
.chaarts.line tr[style]::before {
background: linear-gradient(to top, var(--chaarts-blue), var(--chaarts-red) 75%);
clip-path: var(--polygon);
content: "";
Expand Down Expand Up @@ -63,7 +58,7 @@
}

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

Please sign in to comment.