|
1 | 1 | @use '../common' as *; |
| 2 | +@use '../themes/light/themes' as *; |
2 | 3 |
|
3 | | -$row-border-width: var(--igx-row-border-width, var(--header-border-width)); |
4 | | -$row-border-style: var(--igx-row-border-style, var(--header-border-style)); |
5 | | -$row-border-color: var(--igx-row-border-color, var(--header-border-color)); |
6 | | -$row-odd-background: var(--igx-row-odd-background, var(--row-odd-background)); |
7 | | -$row-odd-text-color: var(--igx-row-odd-text-color, var(--row-odd-text-color)); |
8 | | -$row-even-background: var(--igx-row-even-background, var(--row-even-background)); |
9 | | -$row-even-text-color: var(--igx-row-even-text-color, var(--row-even-text-color)); |
10 | | -$row-hover-background: var(--igx-row-hover-background, var(--row-hover-background)); |
11 | | -$row-hover-text-color: var(--igx-row-hover-text-color, var(--row-hover-text-color)); |
| 4 | +$theme: $material; |
12 | 5 |
|
13 | 6 | :host { |
14 | 7 | display: grid; |
15 | 8 | width: 100%; |
16 | 9 | min-height: $ig-cells-min-height; |
17 | | - border-block-end: $row-border-width $row-border-style $row-border-color; |
18 | | - background: $row-odd-background; |
19 | | - color: $row-odd-text-color; |
| 10 | + border-block-end: rem(1px) solid var-get($theme, 'row-border-color'); |
| 11 | + background: var-get($theme, 'content-background'); |
| 12 | + color: var-get($theme, 'row-odd-text-color'); |
20 | 13 | z-index: var(--z-index-base); |
21 | 14 | } |
22 | 15 |
|
23 | 16 | :host(:last-of-type) { |
24 | 17 | border-bottom: 0; |
25 | 18 | } |
26 | 19 |
|
| 20 | +:host(:nth-of-type(odd)) { |
| 21 | + background: var-get($theme, 'row-odd-background'); |
| 22 | + color: var-get($theme, 'row-odd-text-color'); |
| 23 | +} |
| 24 | + |
27 | 25 | :host(:nth-of-type(even)) { |
28 | | - background: $row-even-background; |
29 | | - color: $row-even-text-color; |
| 26 | + background: var-get($theme, 'row-even-background'); |
| 27 | + color: var-get($theme, 'row-even-text-color'); |
30 | 28 | } |
31 | 29 |
|
32 | 30 | :host(:hover) { |
33 | | - background: $row-hover-background; |
34 | | - color: $row-hover-text-color; |
| 31 | + background: var-get($theme, 'row-hover-background'); |
| 32 | + color: var-get($theme, 'row-hover-text-color'); |
35 | 33 | } |
0 commit comments