|
4 | 4 | @import url('https://unpkg.com/@fortawesome/fontawesome-free-webfonts@^1.0.9/css/fa-solid.css'); |
5 | 5 |
|
6 | 6 | :host ::ng-deep { |
7 | | - $crm-grid-palette: palette($primary: #09f, $secondary: #ffbf00, $surface: #fff); |
8 | | - $crm-grid-dark-palette: palette($primary: #09f, $secondary: #fff, $surface: #222); |
9 | | - @include theme($crm-grid-palette); |
| 7 | + $crm-grid-palette: palette( |
| 8 | + $primary: #09f, |
| 9 | + $secondary: #ffbf00, |
| 10 | + $surface: #fff |
| 11 | + ); |
| 12 | + $crm-grid-dark-palette: palette( |
| 13 | + $primary: #09f, |
| 14 | + $secondary: #fff, |
| 15 | + $surface: #222 |
| 16 | + ); |
| 17 | + @include palette($crm-grid-palette); |
10 | 18 |
|
11 | 19 | $checkbox-theme: checkbox-theme( |
12 | | - $fill-color: color($crm-grid-palette, 'secondary', 500), |
13 | | - $tick-color: black |
| 20 | + $fill-color: color($color: 'secondary', $variant: 500), |
| 21 | + $tick-color: contrast-color($color: 'secondary', $variant: 500) |
| 22 | + ); |
| 23 | + $checkbox-dark-theme: checkbox-theme( |
| 24 | + $fill-color: color($color: 'gray', $variant: 900), |
| 25 | + $tick-color: contrast-color($color: 'gray', $variant: 900) |
| 26 | + ); |
| 27 | + $summary-theme: grid-summary-theme( |
| 28 | + $background-color: #f0f8fe, |
| 29 | + $result-color: color($color: 'primary', $variant: 500) |
| 30 | + ); |
| 31 | + $search-theme: input-group-theme( |
| 32 | + $search-background: color($color: 'primary', $variant: 600), |
| 33 | + $idle-text-color: color($color: 'primary', $variant: 100), |
| 34 | + $filled-text-color: color($color: 'gray', $variant: 600), |
| 35 | + $focused-text-color: color($color: 'gray', $variant: 600) |
| 36 | + ); |
| 37 | + |
| 38 | + @debug $search-theme; |
| 39 | + |
| 40 | + $crm-grid-theme: grid-theme( |
| 41 | + $header-background: #f0f8fe, |
| 42 | + $header-border-color: #dde5eb |
14 | 43 | ); |
15 | | - $checkbox-dark-theme: checkbox-theme($fill-color: color($crm-grid-palette, 'gray', 50), $tick-color: black); |
16 | | - $summary-theme: grid-summary-theme($background-color: #f0f8fe, $result-color: color($crm-grid-palette, 'primary', 500)); |
17 | | - $search-theme: input-group-theme($search-background: color($crm-grid-palette, 'primary', 600), $idle-text-color: color($crm-grid-palette, 'primary', 100), $filled-text-color: color($crm-grid-palette, 'gray', 600), $focused-text-color: color($crm-grid-palette, 'gray', 600)); |
18 | | - $crm-grid-theme: grid-theme($header-background: #f0f8fe, $header-border-color: #dde5eb); |
19 | 44 | $crm-dark-grid-theme: grid-theme( |
20 | 45 | $row-selected-background: color($crm-grid-palette, 'gray', 800), |
21 | 46 | $row-hover-background: color($crm-grid-palette, 'gray', 700), |
22 | 47 | $row-selected-hover-background: color($crm-grid-palette, 'gray', 700), |
23 | 48 | $cell-active-border-color: color($crm-grid-palette, 'primary', 50), |
24 | 49 | $cell-selected-background: color($crm-grid-palette, 'gray', 50), |
25 | 50 | ); |
26 | | - $crm-grid-toolbar: grid-toolbar-theme($background-color: color($crm-grid-palette, 'primary', 500)); |
27 | | - $crm-grid-toolbar-button: button-theme($background: color($crm-grid-palette, 'primary', 800), $hover-background: color($crm-grid-palette, 'primary', 900), $focus-foreground: #fff); |
28 | | - $crm-grid-search-button: button-theme($background: transparent, $focus-background: color($crm-grid-palette, 'gray', 200), $hover-background: color($crm-grid-palette, 'gray', 200)); |
| 51 | + $crm-grid-toolbar: grid-toolbar-theme( |
| 52 | + $background-color: color($crm-grid-palette, 'primary', 500) |
| 53 | + ); |
| 54 | + $crm-grid-toolbar-button: button-theme( |
| 55 | + $background: color($crm-grid-palette, 'primary', 800), |
| 56 | + $hover-background: color($crm-grid-palette, 'primary', 900), |
| 57 | + $focus-foreground: #fff |
| 58 | + ); |
| 59 | + $crm-grid-search-button: button-theme( |
| 60 | + $background: transparent, |
| 61 | + $focus-background: color($crm-grid-palette, 'gray', 200), |
| 62 | + $hover-background: color($crm-grid-palette, 'gray', 200) |
| 63 | + ); |
29 | 64 | $crm-grid-dark-button: button-theme( |
30 | 65 | $foreground: color($crm-grid-dark-palette, 'primary', 500), |
31 | 66 | $hover-foreground: color($crm-grid-dark-palette, 'primary', 500), |
|
34 | 69 | $crm-grid-dark-progress: progress-linear-theme( |
35 | 70 | $track-color: color($crm-grid-palette, 'gray', 500) |
36 | 71 | ); |
37 | | - $crm-input-drop-down: input-group-theme($placeholder-color: color($crm-grid-palette, 'gray', 500), $idle-text-color: color($crm-grid-palette, 'gray', 900)); |
| 72 | + $crm-input-drop-down: input-group-theme( |
| 73 | + $placeholder-color: color($crm-grid-palette, 'gray', 500), |
| 74 | + $idle-text-color: color($crm-grid-palette, 'gray', 900) |
| 75 | + ); |
38 | 76 |
|
39 | 77 | .grid__wrapper { |
40 | 78 | width: inherit; |
|
295 | 333 | .grid__wrapper:not(.dark_grid) { |
296 | 334 | @include css-vars($crm-grid-theme); |
297 | 335 | @include css-vars($summary-theme); |
| 336 | + @include css-vars($checkbox-theme); |
298 | 337 | } |
299 | 338 |
|
300 | 339 | .dark_grid { |
|
0 commit comments