|
1 | 1 | /* shared styles are loaded from: */ |
2 | 2 | /* https://static.infragistics.com/xplatform/css/samples */ |
3 | 3 |
|
4 | | - #grid { |
5 | | - --ig-size: var(--ig-size-medium); |
6 | | - } |
| 4 | +:root { |
| 5 | + /* Base Palette Colors */ |
| 6 | + --selection-primary: #0062a3; |
| 7 | + --selection-primary-light: #338bc7; |
| 8 | + --selection-primary-dark: #004d82; |
| 9 | + --selection-secondary: #f2c43c; |
| 10 | + --selection-accent: #e74c3c; |
| 11 | + --selection-success: #27ae60; |
| 12 | + --selection-text-light: #ffffff; |
| 13 | + --selection-text-dark: #2c3e50; |
| 14 | + --selection-border: #34495e; |
| 15 | + --selection-hover: rgba(0, 98, 163, 0.1); |
| 16 | + --selection-focus: rgba(242, 196, 60, 0.3); |
| 17 | +} |
7 | 18 |
|
8 | | - #grid { |
9 | | - --cell-selected-text-color: #FFFFFF; |
10 | | - --cell-active-border-color: #f2c43c; |
11 | | - --cell-selected-background: #0062a3; |
12 | | - } |
| 19 | +.custom-selection-palette { |
| 20 | + /* Core cell selection properties */ |
| 21 | + --ig-grid-cell-selected-background: var(--selection-primary); |
| 22 | + --ig-grid-cell-selected-text-color: var(--selection-text-light); |
| 23 | + --ig-grid-cell-active-border-color: var(--selection-secondary); |
| 24 | + |
| 25 | + /* Enhanced selection states */ |
| 26 | + --ig-grid-cell-selected-range-background: var(--selection-primary-light); |
| 27 | + --ig-grid-cell-selected-range-border-color: var(--selection-primary-dark); |
| 28 | + --ig-grid-cell-hover-background: var(--selection-hover); |
| 29 | + --ig-grid-cell-focus-background: var(--selection-focus); |
| 30 | + |
| 31 | + /* Header selection styling */ |
| 32 | + --ig-grid-header-selected-background: var(--selection-primary); |
| 33 | + --ig-grid-header-selected-text-color: var(--selection-text-light); |
| 34 | + |
| 35 | + /* Row selection integration */ |
| 36 | + --ig-grid-row-selected-background: var(--selection-primary-light); |
| 37 | + --ig-grid-row-selected-text-color: var(--selection-text-dark); |
| 38 | + --ig-grid-row-selected-hover-background: var(--selection-primary); |
| 39 | + |
| 40 | + /* Selection indicators and borders */ |
| 41 | + --ig-grid-selection-fill-color: var(--selection-secondary); |
| 42 | + --ig-grid-selection-border-color: var(--selection-border); |
| 43 | + |
| 44 | + /* Grid sizing */ |
| 45 | + --ig-size: var(--ig-size-medium); |
| 46 | +} |
13 | 47 |
|
0 commit comments