|
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( |
| 7 | + $light-palette: palette( |
8 | 8 | $primary: #09f, |
9 | 9 | $secondary: #ffbf00, |
10 | 10 | $surface: #fff |
11 | 11 | ); |
12 | | - $crm-grid-dark-palette: palette( |
13 | | - $primary: #09f, |
14 | | - $secondary: #fff, |
15 | | - $surface: #222 |
16 | | - ); |
17 | | - @include palette($crm-grid-palette); |
| 12 | + |
| 13 | + @include palette($light-palette); |
18 | 14 |
|
19 | 15 | $checkbox-theme: checkbox-theme( |
20 | 16 | $fill-color: color($color: 'secondary', $variant: 500), |
21 | 17 | $tick-color: contrast-color($color: 'secondary', $variant: 500) |
22 | 18 | ); |
23 | | - $checkbox-dark-theme: checkbox-theme( |
24 | | - $fill-color: color($color: 'gray', $variant: 900), |
25 | | - $tick-color: contrast-color($color: 'gray', $variant: 900) |
26 | | - ); |
| 19 | + |
27 | 20 | $summary-theme: grid-summary-theme( |
28 | 21 | $background-color: #f0f8fe, |
29 | 22 | $result-color: color($color: 'primary', $variant: 500) |
30 | 23 | ); |
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 | 24 |
|
40 | 25 | $crm-grid-theme: grid-theme( |
41 | 26 | $header-background: #f0f8fe, |
42 | 27 | $header-border-color: #dde5eb |
43 | 28 | ); |
44 | | - $crm-dark-grid-theme: grid-theme( |
45 | | - $row-selected-background: color($crm-grid-palette, 'gray', 800), |
46 | | - $row-hover-background: color($crm-grid-palette, 'gray', 700), |
47 | | - $row-selected-hover-background: color($crm-grid-palette, 'gray', 700), |
48 | | - $cell-active-border-color: color($crm-grid-palette, 'primary', 50), |
49 | | - $cell-selected-background: color($crm-grid-palette, 'gray', 50), |
50 | | - ); |
| 29 | + |
51 | 30 | $crm-grid-toolbar: grid-toolbar-theme( |
52 | | - $background-color: color($crm-grid-palette, 'primary', 500) |
| 31 | + $background-color: color($color: 'primary', $variant: 500), |
| 32 | + $title-text-color: contrast-color($color: 'primary', $variant: 500) |
53 | 33 | ); |
| 34 | + |
54 | 35 | $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 |
| 36 | + $background: color($light-palette, 'primary', 800), |
| 37 | + $hover-background: color($light-palette, 'primary', 900), |
| 38 | + $active-foreground: contrast-color($light-palette, 'primary', 900), |
| 39 | + $focus-foreground: contrast-color($light-palette, 'primary', 900) |
58 | 40 | ); |
| 41 | + |
59 | 42 | $crm-grid-search-button: button-theme( |
60 | 43 | $background: transparent, |
61 | | - $focus-background: color($crm-grid-palette, 'gray', 200), |
62 | | - $hover-background: color($crm-grid-palette, 'gray', 200) |
| 44 | + $focus-background: color($light-palette, 'gray', 200), |
| 45 | + $hover-background: color($light-palette, 'gray', 200) |
63 | 46 | ); |
64 | | - $crm-grid-dark-button: button-theme( |
65 | | - $foreground: color($crm-grid-dark-palette, 'primary', 500), |
66 | | - $hover-foreground: color($crm-grid-dark-palette, 'primary', 500), |
67 | | - $focus-foreground: color($crm-grid-dark-palette, 'primary', 500), |
68 | | - ); |
69 | | - $crm-grid-dark-progress: progress-linear-theme( |
70 | | - $track-color: color($crm-grid-palette, 'gray', 500) |
71 | | - ); |
| 47 | + |
72 | 48 | $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) |
| 49 | + $placeholder-color: color($light-palette, 'gray', 500), |
| 50 | + $idle-text-color: color($light-palette, 'gray', 900) |
75 | 51 | ); |
76 | 52 |
|
77 | 53 | .grid__wrapper { |
|
233 | 209 | margin-left: 4px; |
234 | 210 | } |
235 | 211 |
|
236 | | - @include css-vars($search-theme); |
237 | | - |
238 | 212 | .case-sensitive--active { |
239 | 213 | background: color($color: 'primary', $variant: 200); |
240 | 214 | } |
|
248 | 222 | box-shadow: none; |
249 | 223 | } |
250 | 224 |
|
251 | | - .igx-drop-down__list { |
252 | | - @include css-vars($crm-input-drop-down) |
253 | | - } |
| 225 | + |
| 226 | + @include css-vars($crm-input-drop-down); |
| 227 | + |
254 | 228 |
|
255 | 229 | .sample-flex-container { |
256 | 230 | .igx-input-group, |
|
271 | 245 |
|
272 | 246 | .igx-input-group { |
273 | 247 | igx-icon { |
274 | | - color: white; |
| 248 | + color: contrast-color($color: 'gray', $variant: 900); |
275 | 249 | } |
276 | 250 |
|
277 | 251 | &:hover, |
|
317 | 291 |
|
318 | 292 | .igx-input-group__input { |
319 | 293 | &::placeholder { |
320 | | - color: white; |
| 294 | + color: contrast-color($color: 'gray', $variant: 900); |
321 | 295 | opacity: 1; |
322 | 296 | } |
323 | 297 | } |
|
329 | 303 | @include css-vars($crm-grid-search-button); |
330 | 304 | } |
331 | 305 |
|
332 | | - // Not dark theme |
333 | 306 | .grid__wrapper:not(.dark_grid) { |
334 | 307 | @include css-vars($crm-grid-theme); |
335 | 308 | @include css-vars($summary-theme); |
336 | 309 | @include css-vars($checkbox-theme); |
337 | 310 | } |
338 | 311 |
|
| 312 | + |
| 313 | + // DARK THEME |
| 314 | + $dark-palette: palette( |
| 315 | + $primary: #09f, |
| 316 | + $secondary: #fff, |
| 317 | + $surface: #222, |
| 318 | + ); |
| 319 | + |
| 320 | + $checkbox-dark-theme: checkbox-theme( |
| 321 | + $fill-color: color($color: 'gray', $variant: 900), |
| 322 | + $tick-color: contrast-color($color: 'gray', $variant: 900) |
| 323 | + ); |
| 324 | + |
| 325 | + $crm-dark-grid-theme: grid-theme( |
| 326 | + $row-selected-background: color($color: 'gray', $variant: 100), |
| 327 | + $row-selected-text-color: contrast-color($color: 'gray', $variant: 100), |
| 328 | + $row-hover-background: color($color: 'gray', $variant: 200), |
| 329 | + $row-hover-text-color: contrast-color($color: 'gray', $variant: 200), |
| 330 | + $row-selected-hover-background: color($color: 'gray', $variant: 200), |
| 331 | + $row-selected-hover-text-color: contrast-color($color: 'gray', $variant: 200), |
| 332 | + $cell-selected-background: color($color: 'gray', $variant: 900), |
| 333 | + $cell-selected-text-color: contrast-color($color: 'gray', $variant: 900), |
| 334 | + $cell-active-border-color: color($color: 'gray', $variant: 900), |
| 335 | + ); |
| 336 | + |
| 337 | + $crm-grid-dark-button: button-theme( |
| 338 | + $foreground: color($color: 'primary', $variant: 500), |
| 339 | + $hover-foreground: color($color: 'primary', $variant: 500), |
| 340 | + $focus-foreground: color($color: 'primary', $variant: 500), |
| 341 | + ); |
| 342 | + |
| 343 | + $crm-grid-dark-progress: progress-linear-theme( |
| 344 | + $track-color: color($color: 'gray', $variant: 500) |
| 345 | + ); |
| 346 | + |
339 | 347 | .dark_grid { |
340 | | - @include palette($crm-grid-dark-palette); |
| 348 | + @include palette($dark-palette); |
341 | 349 | @include css-vars($checkbox-dark-theme); |
342 | | - @include css-vars($crm-grid-toolbar); |
343 | 350 | @include css-vars($crm-dark-grid-theme); |
344 | 351 | @include css-vars($crm-grid-dark-button); |
345 | 352 | @include css-vars($crm-grid-dark-progress); |
346 | 353 |
|
347 | 354 | .igx-grid-toolbar__actions { |
348 | 355 | @include css-vars($crm-grid-toolbar-button); |
349 | 356 | } |
350 | | - } |
| 357 | + |
| 358 | + .sample-flex-container { |
| 359 | + .igx-input-group, |
| 360 | + .igx-input-group--focused { |
| 361 | + igx-icon { |
| 362 | + color: color($color: 'primary', $variant: 200); |
| 363 | + } |
| 364 | + } |
| 365 | + |
| 366 | + .igx-input-group__textarea, |
| 367 | + .igx-input-group__input { |
| 368 | + color: color($color: 'primary', $variant: 100); |
| 369 | + } |
| 370 | + |
| 371 | + .igx-input-group { |
| 372 | + igx-icon { |
| 373 | + color: contrast-color($color: 'gray', $variant: 50); |
| 374 | + } |
| 375 | + |
| 376 | + &:hover, |
| 377 | + &:focus, |
| 378 | + &.igx-input-group--focused { |
| 379 | + igx-icon { |
| 380 | + color: color($color: 'gray', $variant: 400); |
| 381 | + } |
| 382 | + |
| 383 | + .igx-input-group__bundle { |
| 384 | + background: contrast-color($color: 'gray', $variant: 50); |
| 385 | + color: color($color: 'gray', $variant: 400); |
| 386 | + } |
| 387 | + |
| 388 | + .igx-input-group__input { |
| 389 | + &::placeholder { |
| 390 | + color: color($color: 'gray', $variant: 400); |
| 391 | + } |
| 392 | + } |
| 393 | + |
| 394 | + .igx-input-group__textarea, |
| 395 | + .igx-input-group__input { |
| 396 | + color: color($color: 'gray', $variant: 400); |
| 397 | + } |
| 398 | + |
| 399 | + .igx-button--icon { |
| 400 | + &:focus, |
| 401 | + &:active { |
| 402 | + color: color($color: 'gray', $variant: 400); |
| 403 | + } |
| 404 | + } |
| 405 | + } |
| 406 | + } |
| 407 | + |
| 408 | + .igx-input-group__input { |
| 409 | + &::placeholder { |
| 410 | + color: contrast-color($color: 'gray', $variant: 50); |
| 411 | + } |
| 412 | + } |
| 413 | + } |
| 414 | + } |
351 | 415 | } |
352 | 416 |
|
353 | 417 | .animated-fan { |
|
0 commit comments