igniteui-theming 27.1.0 → 27.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/json/components/bootstrap.json +1 -1
- package/dist/json/components/fluent.json +1 -1
- package/dist/json/components/indigo.json +1 -1
- package/dist/json/components/material.json +1 -1
- package/dist/json/components/themes.json +12 -2
- package/dist/mcp/index.js +1 -1
- package/dist/mcp/theming/dist/json/components/themes.js +12 -2
- package/dist/tailwind/utilities/bootstrap.css +1 -1
- package/dist/tailwind/utilities/fluent.css +1 -1
- package/dist/tailwind/utilities/indigo.css +1 -1
- package/dist/tailwind/utilities/material.css +1 -1
- package/package.json +1 -1
- package/sass/themes/components/grid/_grid-summary-theme.scss +17 -3
- package/sass/themes/components/grid/_grid-theme.scss +30 -268
- package/sass/themes/components/grid/_grid-toolbar-theme.scss +12 -8
- package/sass/themes/schemas/components/dark/_grid-summary.scss +9 -0
- package/sass/themes/schemas/components/dark/_grid.scss +2 -2
- package/sass/themes/schemas/components/light/_grid-summary.scss +6 -2
- package/sass/themes/schemas/components/light/_grid.scss +3 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "igniteui-theming",
|
|
3
|
-
"version": "27.1
|
|
3
|
+
"version": "27.2.1",
|
|
4
4
|
"description": "A set of Sass variables, mixins, and functions for generating palettes, typography, and elevations used by Ignite UI components.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -26,9 +26,11 @@
|
|
|
26
26
|
/// @param {Color} $background-color [null] - The summaries background color. PRIMARY - derives label-color, result-color, border-color, pinned-border-color.
|
|
27
27
|
/// @param {Color} $label-color [null] - The summaries label color. PRIMARY - derives label-hover-color. Auto-derived from background-color.
|
|
28
28
|
/// @param {Color} $result-color [null] - The summaries value/result color. Auto-derived from background-color.
|
|
29
|
+
/// @param {String} $border-width [null] - The summaries border width.
|
|
30
|
+
/// @param {String} $border-style [null] - The summaries border style.
|
|
29
31
|
/// @param {Color} $border-color [null] - The summaries border color. Auto-derived from background-color.
|
|
30
|
-
/// @param {
|
|
31
|
-
/// @param {
|
|
32
|
+
/// @param {String} $pinned-border-width [null] - The border width of the summary panel.
|
|
33
|
+
/// @param {String} $pinned-border-style [null] - The border style of the summary panel.
|
|
32
34
|
/// @param {Color} $pinned-border-color [null] - The border color of the summary panel. Auto-derived from background-color.
|
|
33
35
|
/// @param {Color} $label-hover-color [null] - The summaries hover label color. Auto-derived from label-color.
|
|
34
36
|
/// @requires $light-material-schema
|
|
@@ -45,6 +47,8 @@
|
|
|
45
47
|
$background-color: null,
|
|
46
48
|
$label-color: null,
|
|
47
49
|
$result-color: null,
|
|
50
|
+
$border-width: null,
|
|
51
|
+
$border-style: null,
|
|
48
52
|
$border-color: null,
|
|
49
53
|
$pinned-border-width: null,
|
|
50
54
|
$pinned-border-style: null,
|
|
@@ -74,8 +78,16 @@
|
|
|
74
78
|
$result-color: adaptive-contrast(var(--background-color));
|
|
75
79
|
}
|
|
76
80
|
|
|
81
|
+
@if not($border-color) and $background-color and $result-color {
|
|
82
|
+
$border-color: hsl(from color-mix(in srgb, var(--result-color) 16%, var(--background-color)) h s l / 0.38);
|
|
83
|
+
}
|
|
84
|
+
|
|
77
85
|
@if not($border-color) and $background-color {
|
|
78
|
-
$border-color: hsl(from adaptive-contrast(var(--background-color)) h s l / 0.
|
|
86
|
+
$border-color: hsl(from adaptive-contrast(var(--background-color)) h s l / 0.2);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@if not($pinned-border-color) and $background-color and $result-color {
|
|
90
|
+
$pinned-border-color: color-mix(in srgb, var(--result-color) 20%, var(--background-color));
|
|
79
91
|
}
|
|
80
92
|
|
|
81
93
|
@if not($pinned-border-color) and $background-color {
|
|
@@ -89,6 +101,8 @@
|
|
|
89
101
|
background-color: $background-color,
|
|
90
102
|
label-color: $label-color,
|
|
91
103
|
result-color: $result-color,
|
|
104
|
+
border-width: $border-width,
|
|
105
|
+
border-style: $border-style,
|
|
92
106
|
border-color: $border-color,
|
|
93
107
|
pinned-border-width: $pinned-border-width,
|
|
94
108
|
pinned-border-style: $pinned-border-style,
|
|
@@ -270,248 +270,6 @@
|
|
|
270
270
|
$theme: digest-schema($grid-schema);
|
|
271
271
|
$variant: map.get($theme, '_meta', 'theme');
|
|
272
272
|
|
|
273
|
-
@if not($ghost-header-icon-color) and $ghost-header-background {
|
|
274
|
-
$ghost-header-icon-color: hsl(from adaptive-contrast(var(--ghost-header-background)) h s l / 0.07);
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
@if not($ghost-header-text-color) and $ghost-header-background {
|
|
278
|
-
$ghost-header-text-color: adaptive-contrast(var(--ghost-header-background));
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
@if not($header-selected-text-color) and $header-selected-background and not($header-text-color) {
|
|
282
|
-
$header-selected-text-color: adaptive-contrast(var(--header-selected-background));
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
@if not($header-text-color) and $header-background {
|
|
286
|
-
$header-text-color: adaptive-contrast(var(--header-background));
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
@if not($header-selected-background) and $header-background {
|
|
290
|
-
$header-selected-background: dynamic-shade(var(--header-background));
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
@if not($header-selected-text-color) and $header-text-color {
|
|
294
|
-
$header-selected-text-color: var(--header-text-color);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
@if not($drop-area-text-color) and $header-text-color {
|
|
298
|
-
$drop-area-text-color: var(--header-text-color);
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
@if not($drop-area-icon-color) and $drop-area-text-color {
|
|
302
|
-
$drop-area-icon-color: var(--drop-area-text-color);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
@if not($header-border-color) and $header-background {
|
|
306
|
-
$header-border-color: hsl(from adaptive-contrast(var(--header-background)) h s l / 0.24);
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
@if not($content-text-color) and $content-background {
|
|
310
|
-
$content-text-color: adaptive-contrast(var(--content-background));
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
@if not($row-odd-background) and $content-background {
|
|
314
|
-
$row-odd-background: hsl(from var(--content-background) h calc(s - 10) l);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
@if not($row-odd-text-color) and $row-odd-background {
|
|
318
|
-
$row-odd-text-color: adaptive-contrast(var(--row-odd-background));
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
@if not($row-even-background) and $content-background {
|
|
322
|
-
$row-even-background: hsl(from var(--content-background) h calc(s + 10) l);
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
@if not($row-even-text-color) and $row-even-background {
|
|
326
|
-
$row-even-text-color: adaptive-contrast(var(--row-even-background));
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
@if not($row-hover-background) and $content-background {
|
|
330
|
-
$row-hover-background: dynamic-shade(var(--content-background), $offset: 7);
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
@if not($row-hover-text-color) and $row-hover-background {
|
|
334
|
-
$row-hover-text-color: adaptive-contrast(var(--row-hover-background));
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
@if not($cell-selected-within-background) and $cell-selected-background {
|
|
338
|
-
$cell-selected-within-background: dynamic-shade($cell-selected-background);
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
@if not($cell-selected-background) and $content-background {
|
|
342
|
-
$cell-selected-background: dynamic-shade(var(--content-background), $offset: 10);
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
@if not($cell-selected-text-color) and $cell-selected-background {
|
|
346
|
-
$cell-selected-text-color: adaptive-contrast(var(--cell-selected-background));
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
@if not($row-selected-background) and $content-background {
|
|
350
|
-
$row-selected-background: dynamic-shade(var(--content-background));
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
@if not($row-selected-text-color) and $row-selected-background {
|
|
354
|
-
$row-selected-text-color: adaptive-contrast(var(--row-selected-background));
|
|
355
|
-
}
|
|
356
|
-
|
|
357
|
-
@if not($row-selected-hover-background) and $row-selected-background {
|
|
358
|
-
$row-selected-hover-background: dynamic-shade(var(--row-selected-background), $offset: 7);
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
@if not($row-selected-hover-text-color) and $row-selected-hover-background {
|
|
362
|
-
$row-selected-hover-text-color: adaptive-contrast(var(--row-selected-hover-background));
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
@if not($row-border-color) and $content-background {
|
|
366
|
-
$row-border-color: hsl(from adaptive-contrast(var(--content-background)) h s l / 0.08);
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
@if not($cell-selected-within-background) and $row-selected-background {
|
|
370
|
-
$cell-selected-within-background: dynamic-shade(var(--row-selected-background), $offset: 7);
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
@if not($cell-selected-within-text-color) and $cell-selected-within-background {
|
|
374
|
-
$cell-selected-within-text-color: adaptive-contrast(var(--cell-selected-within-background));
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
@if not($cell-editing-background) and $content-background {
|
|
378
|
-
$cell-editing-background: var(--content-background);
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
@if not($cell-editing-foreground) and $cell-editing-background {
|
|
382
|
-
$cell-editing-foreground: adaptive-contrast(var(--cell-editing-background));
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
@if not($cell-editing-focus-foreground) and $cell-editing-background {
|
|
386
|
-
$cell-editing-focus-foreground: adaptive-contrast(var(--cell-editing-background));
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
@if not($cell-active-border-color) and $content-background {
|
|
390
|
-
$cell-active-border-color: hsl(from adaptive-contrast(var(--content-background)) h s l / 0.5);
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
@if not($pinned-border-color) and $content-background {
|
|
394
|
-
$pinned-border-color: hsl(from adaptive-contrast(var(--content-background)) h s l / 0.08);
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
@if not($group-row-background) and $header-background {
|
|
398
|
-
$group-row-background: $header-background;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
@if not($expand-icon-color) and $group-row-background {
|
|
402
|
-
$expand-icon-color: adaptive-contrast(var(--group-row-background));
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
@if not($group-row-selected-background) and $group-row-background {
|
|
406
|
-
$group-row-selected-background: dynamic-shade(var(--group-row-background), $offset: 10);
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
@if not($group-label-text) and $group-row-selected-background {
|
|
410
|
-
$group-label-text: adaptive-contrast(var(--group-row-selected-background));
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
@if not($expand-icon-color) and $group-row-selected-background {
|
|
414
|
-
$expand-icon-color: adaptive-contrast(var(--group-row-selected-background));
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
@if not($expand-icon-hover-color) and $expand-icon-color {
|
|
418
|
-
$expand-icon-hover-color: var(--expand-icon-color);
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
@if not($group-count-background) and $group-row-selected-background {
|
|
422
|
-
$group-count-background: adaptive-contrast(var(--group-row-selected-background));
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
@if not($expand-all-icon-color) and $header-background {
|
|
426
|
-
$expand-all-icon-color: hsl(from adaptive-contrast(var(--header-background)) h s l / 0.87);
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
@if not($expand-all-icon-hover-color) and $header-background {
|
|
430
|
-
$expand-all-icon-hover-color: adaptive-contrast(var(--header-background));
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
@if not($sorted-header-icon-color) and $header-background {
|
|
434
|
-
$sorted-header-icon-color: hsl(from adaptive-contrast(var(--header-background)) h s l / 0.8);
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
@if not($sortable-header-icon-hover-color) and $sorted-header-icon-color {
|
|
438
|
-
$sortable-header-icon-hover-color: hsl(from var(--sorted-header-icon-color) h s l / 1);
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
@if not($edit-mode-color) and $content-background {
|
|
442
|
-
$edit-mode-color: hsl(from adaptive-contrast(var(--content-background)) h s l / 0.5);
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
@if not($group-label-text) and $group-row-background {
|
|
446
|
-
$group-label-text: adaptive-contrast(var(--group-row-background));
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
@if not($group-count-background) and $group-row-background {
|
|
450
|
-
$group-count-background: adaptive-contrast(var(--group-row-background));
|
|
451
|
-
}
|
|
452
|
-
|
|
453
|
-
@if not($group-count-text-color) and $group-count-background {
|
|
454
|
-
$group-count-text-color: adaptive-contrast(var(--group-count-background));
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
@if not($grouparea-background) and $header-background {
|
|
458
|
-
$grouparea-background: var(--header-background);
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
@if not($grouparea-color) and $grouparea-background {
|
|
462
|
-
$grouparea-color: hsl(from adaptive-contrast(var(--grouparea-background)) h s l / 0.8);
|
|
463
|
-
}
|
|
464
|
-
|
|
465
|
-
@if not($grouparea-color) and $header-background {
|
|
466
|
-
$grouparea-color: hsl(from adaptive-contrast(var(--header-background)) h s l / 0.8);
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
@if not($drop-area-background) and $grouparea-background {
|
|
470
|
-
$drop-area-background: dynamic-shade(var(--grouparea-background));
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
@if not($drop-area-on-drop-background) and $drop-area-background {
|
|
474
|
-
$drop-area-on-drop-background: $drop-area-background;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
@if not($drop-area-text-color) and $drop-area-background {
|
|
478
|
-
$drop-area-text-color: adaptive-contrast(var(--drop-area-background));
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
@if not($drop-area-icon-color) and $drop-area-background {
|
|
482
|
-
$drop-area-icon-color: adaptive-contrast(var(--drop-area-background));
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
@if not($filtering-header-background) and $header-background {
|
|
486
|
-
$filtering-header-background: color-mix(in hsl, var(--header-background), #fff 5%);
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
@if not($filtering-header-text-color) and $filtering-header-background {
|
|
490
|
-
$filtering-header-text-color: adaptive-contrast(var(--filtering-header-background));
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
@if not($filtering-row-text-color) and $filtering-row-background {
|
|
494
|
-
$filtering-row-text-color: adaptive-contrast(var(--filtering-row-background));
|
|
495
|
-
}
|
|
496
|
-
|
|
497
|
-
@if not($excel-filtering-header-foreground) and $filtering-row-background {
|
|
498
|
-
$excel-filtering-header-foreground: adaptive-contrast(var(--filtering-row-background));
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
@if not($excel-filtering-subheader-foreground) and $filtering-row-background {
|
|
502
|
-
$excel-filtering-subheader-foreground: adaptive-contrast(var(--filtering-row-background));
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
@if not($excel-filtering-actions-foreground) and $filtering-row-background {
|
|
506
|
-
$excel-filtering-actions-foreground: hsl(from adaptive-contrast(var(--filtering-row-background)) h s l / 0.8);
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
@if not($excel-filtering-actions-disabled-foreground) and $filtering-row-background {
|
|
510
|
-
$excel-filtering-actions-disabled-foreground: hsl(
|
|
511
|
-
from adaptive-contrast(var(--filtering-row-background)) h s l / 0.5
|
|
512
|
-
);
|
|
513
|
-
}
|
|
514
|
-
|
|
515
273
|
@if not($grid-shadow) {
|
|
516
274
|
$grid-elevation: map.get($grid-schema, 'grid-elevation');
|
|
517
275
|
$grid-shadow: elevation($grid-elevation);
|
|
@@ -540,36 +298,40 @@
|
|
|
540
298
|
|
|
541
299
|
// header
|
|
542
300
|
|
|
543
|
-
@if not($header-
|
|
544
|
-
$header-
|
|
301
|
+
@if not($header-text-color) and $header-background {
|
|
302
|
+
$header-text-color: adaptive-contrast(var(--header-background));
|
|
545
303
|
}
|
|
546
304
|
|
|
547
305
|
@if not($header-text-color) and $foreground {
|
|
548
306
|
$header-text-color: var(--foreground);
|
|
549
307
|
}
|
|
550
308
|
|
|
551
|
-
@if not($header-
|
|
552
|
-
$header-
|
|
309
|
+
@if not($header-background) and $foreground and $background {
|
|
310
|
+
$header-background: color-mix(in srgb, var(--foreground) 6%, var(--background));
|
|
553
311
|
}
|
|
554
312
|
|
|
555
|
-
@if not($header-selected-
|
|
556
|
-
$header-selected-
|
|
313
|
+
@if not($header-selected-background) and $accent-color and $header-background {
|
|
314
|
+
$header-selected-background: color-mix(in srgb, var(--accent-color) 12%, var(--header-background));
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
@if not($header-selected-text-color) and $header-text-color {
|
|
318
|
+
$header-selected-text-color: var(--header-text-color);
|
|
557
319
|
}
|
|
558
320
|
|
|
559
321
|
@if not($ghost-header-background) and $header-background {
|
|
560
322
|
$ghost-header-background: var(--header-background);
|
|
561
323
|
}
|
|
562
324
|
|
|
563
|
-
@if not($ghost-header-text-color) and $
|
|
564
|
-
$ghost-header-text-color: var(--
|
|
325
|
+
@if not($ghost-header-text-color) and $header-text-color {
|
|
326
|
+
$ghost-header-text-color: var(--header-text-color);
|
|
565
327
|
}
|
|
566
328
|
|
|
567
|
-
@if not($ghost-header-icon-color) and $
|
|
568
|
-
$ghost-header-icon-color: var(--
|
|
329
|
+
@if not($ghost-header-icon-color) and $header-text-color {
|
|
330
|
+
$ghost-header-icon-color: var(--header-text-color);
|
|
569
331
|
}
|
|
570
332
|
|
|
571
|
-
@if not($header-border-color) and $
|
|
572
|
-
$header-border-color:
|
|
333
|
+
@if not($header-border-color) and $header-text-color and $header-background {
|
|
334
|
+
$header-border-color: color-mix(in srgb, var(--header-text-color) 20%, var(--header-background));
|
|
573
335
|
}
|
|
574
336
|
|
|
575
337
|
@if not($sorted-header-icon-color) and $accent-color {
|
|
@@ -594,8 +356,8 @@
|
|
|
594
356
|
$row-odd-background: var(--background);
|
|
595
357
|
}
|
|
596
358
|
|
|
597
|
-
@if not($row-hover-background) and $accent-color and $background {
|
|
598
|
-
$row-hover-background: color-mix(in srgb, var(--accent-color) 8%, var(--background));
|
|
359
|
+
@if not($row-hover-background) and $accent-color and $row-odd-background {
|
|
360
|
+
$row-hover-background: color-mix(in srgb, var(--accent-color) 8%, var(--row-odd-background));
|
|
599
361
|
}
|
|
600
362
|
|
|
601
363
|
@if not($row-selected-background) and $accent-color and $background {
|
|
@@ -780,12 +542,12 @@
|
|
|
780
542
|
|
|
781
543
|
// grouping
|
|
782
544
|
|
|
783
|
-
@if not($grouparea-background) and $
|
|
784
|
-
$grouparea-background:
|
|
545
|
+
@if not($grouparea-background) and $header-background {
|
|
546
|
+
$grouparea-background: var(--header-background);
|
|
785
547
|
}
|
|
786
548
|
|
|
787
|
-
@if not($grouparea-color) and $
|
|
788
|
-
$grouparea-color: color-mix(in srgb, var(--
|
|
549
|
+
@if not($grouparea-color) and $header-text-color and $header-background {
|
|
550
|
+
$grouparea-color: color-mix(in srgb, var(--header-text-color) 60%, var(--header-background));
|
|
789
551
|
}
|
|
790
552
|
|
|
791
553
|
@if not($group-row-background) and $foreground and $background {
|
|
@@ -816,20 +578,20 @@
|
|
|
816
578
|
$group-count-text-color: var(--foreground);
|
|
817
579
|
}
|
|
818
580
|
|
|
819
|
-
@if not($drop-area-text-color) and $
|
|
820
|
-
$drop-area-text-color: color-mix(in srgb, var(--
|
|
581
|
+
@if not($drop-area-text-color) and $header-text-color and $header-background {
|
|
582
|
+
$drop-area-text-color: color-mix(in srgb, var(--header-text-color) 80%, var(--header-background));
|
|
821
583
|
}
|
|
822
584
|
|
|
823
|
-
@if not($drop-area-icon-color) and $
|
|
824
|
-
$drop-area-icon-color:
|
|
585
|
+
@if not($drop-area-icon-color) and $drop-area-text-color {
|
|
586
|
+
$drop-area-icon-color: var(--drop-area-text-color);
|
|
825
587
|
}
|
|
826
588
|
|
|
827
|
-
@if not($drop-area-background) and $background {
|
|
828
|
-
$drop-area-background: var(--background);
|
|
589
|
+
@if not($drop-area-background) and $header-background {
|
|
590
|
+
$drop-area-background: dynamic-shade(var(--header-background));
|
|
829
591
|
}
|
|
830
592
|
|
|
831
|
-
@if not($drop-area-on-drop-background) and $background {
|
|
832
|
-
$drop-area-on-drop-background: var(--background);
|
|
593
|
+
@if not($drop-area-on-drop-background) and $header-background {
|
|
594
|
+
$drop-area-on-drop-background: dynamic-shade(var(--header-background));
|
|
833
595
|
}
|
|
834
596
|
|
|
835
597
|
// summaries
|
|
@@ -90,16 +90,24 @@
|
|
|
90
90
|
$item-text-color: var(--foreground);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
@if not($item-hover-background) and $background and $accent-color {
|
|
94
|
-
$item-hover-background: color-mix(in srgb, var(--accent-color) 8%, var(--background));
|
|
93
|
+
@if not($item-hover-background) and $dropdown-background and $accent-color {
|
|
94
|
+
$item-hover-background: color-mix(in srgb, var(--accent-color) 8%, var(--dropdown-background));
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@if not($item-hover-background) and $dropdown-background {
|
|
98
|
+
$item-hover-background: dynamic-shade(var(--dropdown-background));
|
|
95
99
|
}
|
|
96
100
|
|
|
97
101
|
@if not($item-hover-text-color) and $item-text-color {
|
|
98
102
|
$item-hover-text-color: var(--item-text-color);
|
|
99
103
|
}
|
|
100
104
|
|
|
101
|
-
@if not($item-focus-background) and $background and $accent-color {
|
|
102
|
-
$item-focus-background: color-mix(in srgb, var(--accent-color) 12%, var(--background));
|
|
105
|
+
@if not($item-focus-background) and $dropdown-background and $accent-color {
|
|
106
|
+
$item-focus-background: color-mix(in srgb, var(--accent-color) 12%, var(--dropdown-background));
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@if not($item-focus-background) and $dropdown-background {
|
|
110
|
+
$item-focus-background: dynamic-shade(var(--dropdown-background), $offset: 8);
|
|
103
111
|
}
|
|
104
112
|
|
|
105
113
|
@if not($item-focus-text-color) and $item-text-color {
|
|
@@ -110,10 +118,6 @@
|
|
|
110
118
|
$border-color: color-mix(in srgb, var(--foreground) 20%, var(--background));
|
|
111
119
|
}
|
|
112
120
|
|
|
113
|
-
@if not($title-text-color) and $background {
|
|
114
|
-
$title-text-color: adaptive-contrast(var(--background));
|
|
115
|
-
}
|
|
116
|
-
|
|
117
121
|
@if not($item-text-color) and $dropdown-background {
|
|
118
122
|
$item-text-color: adaptive-contrast(var(--dropdown-background));
|
|
119
123
|
}
|
|
@@ -60,6 +60,7 @@ $dark-material-grid-summary: extend(
|
|
|
60
60
|
/// Generates a dark fluent grid-summary schema.
|
|
61
61
|
/// @type Map
|
|
62
62
|
/// @prop {Map} label-color [color: ('primary', 300)] - The summaries label color.
|
|
63
|
+
/// @prop {Map} pinned-border-color [color: ('gray', 300, .24)] - The color of the pinned border.
|
|
63
64
|
/// @requires $fluent-grid-summary
|
|
64
65
|
$dark-fluent-grid-summary: extend(
|
|
65
66
|
$fluent-grid-summary,
|
|
@@ -71,6 +72,14 @@ $dark-fluent-grid-summary: extend(
|
|
|
71
72
|
300,
|
|
72
73
|
),
|
|
73
74
|
),
|
|
75
|
+
|
|
76
|
+
pinned-border-color: (
|
|
77
|
+
color: (
|
|
78
|
+
'gray',
|
|
79
|
+
300,
|
|
80
|
+
0.24,
|
|
81
|
+
),
|
|
82
|
+
),
|
|
74
83
|
)
|
|
75
84
|
);
|
|
76
85
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
/// @type Map
|
|
12
12
|
/// @prop {Color} content-background [color: 'surface'] - The table body background color.
|
|
13
13
|
/// @prop {Map} drop-area-background [color: ('gray', 100, .4)] - The drop area background color.
|
|
14
|
-
/// @prop {Map} header-border-color [color: ('gray', 200
|
|
14
|
+
/// @prop {Map} header-border-color [color: ('gray', 200)] - The color used for header borders.
|
|
15
15
|
/// @prop {Map} header-background [color: ('gray', 100)] - The table header background color.
|
|
16
16
|
/// @prop {Map} header-selected-background [color: ('secondary', 600)] - The table header background color when selected (ex. column selection).
|
|
17
17
|
/// @prop {Map} header-selected-text-color [contrast-color: ('secondary', 600)] - The table header text color when selected (ex. column selection).
|
|
@@ -51,7 +51,6 @@ $base-dark-grid: (
|
|
|
51
51
|
color: (
|
|
52
52
|
'gray',
|
|
53
53
|
200,
|
|
54
|
-
0.24,
|
|
55
54
|
),
|
|
56
55
|
),
|
|
57
56
|
|
|
@@ -275,6 +274,7 @@ $dark-material-grid: extend(
|
|
|
275
274
|
/// @prop {Map} row-selected-hover-background [color: ('gray', 200)] - The selected row background color on hover.
|
|
276
275
|
/// @prop {Map} body-column-selected-border-color [color: ('gray', 100)] - The border color used for the body column when in group-row state.
|
|
277
276
|
/// @prop {Map} body-column-hover-selected-border-color [color: ('gray', 200)] - The border color used for the body column when in group-row + hover state.
|
|
277
|
+
/// @prop {Map} pinned-border-color [color: ('gray', 300, .24)] - The color of the pinned border.
|
|
278
278
|
/// @prop {Map} row-selected-hover-text-color [contrast-color: ('gray', 200)] - The selected row hover text color.
|
|
279
279
|
/// @prop {Map} cell-selected-within-background [color: ('gray', 200)] - The background of the selected cell inside a selected row/column.
|
|
280
280
|
/// @prop {Map} cell-selected-within-text-color [contrast-color: ('gray', 200)] - The color of the selected cell inside a selected row/column.
|
|
@@ -13,8 +13,10 @@
|
|
|
13
13
|
/// @prop {Map} label-color [color: ('primary', 500)] - The summaries label color.
|
|
14
14
|
/// @prop {Map} label-hover-color [color: ('primary', 700)] - The summaries hover label color.
|
|
15
15
|
/// @prop {Map} result-color [contrast-color: ('gray', 300)] - The summaries value/result color.
|
|
16
|
+
/// @prop {String} border-width [1px] - The summaries column border width.
|
|
17
|
+
/// @prop {String} border-style [solid] - The summaries column border style.
|
|
16
18
|
/// @prop {Color} border-color [transparent] - The summaries column border color.
|
|
17
|
-
/// @prop {String} pinned-border-width [
|
|
19
|
+
/// @prop {String} pinned-border-width [2px] - The border width of the summary panel.
|
|
18
20
|
/// @prop {String} pinned-border-style [solid] - The border style of the summary panel.
|
|
19
21
|
/// @prop {Map} pinned-border-color [color: ('gray', 400)] - The border color of the summary panel.
|
|
20
22
|
$light-grid-summary: (
|
|
@@ -46,9 +48,11 @@ $light-grid-summary: (
|
|
|
46
48
|
),
|
|
47
49
|
),
|
|
48
50
|
|
|
51
|
+
border-width: 1px,
|
|
52
|
+
border-style: solid,
|
|
49
53
|
border-color: transparent,
|
|
50
54
|
|
|
51
|
-
pinned-border-width:
|
|
55
|
+
pinned-border-width: 2px,
|
|
52
56
|
pinned-border-style: solid,
|
|
53
57
|
pinned-border-color: (
|
|
54
58
|
color: (
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
/// @prop {Map} sortable-header-icon-hover-color [color: ('secondary', 500)] - The icon color on hover in grid header when the column is sortable.
|
|
17
17
|
/// @prop {Number} header-border-width [1px] - The border width used for header borders.
|
|
18
18
|
/// @prop {String} header-border-style [solid] - The border style used for header borders.
|
|
19
|
-
/// @prop {Map} header-border-color [color: ('gray', 400
|
|
19
|
+
/// @prop {Map} header-border-color [color: ('gray', 400)] - The color used for header borders.
|
|
20
20
|
/// @prop {Map} ghost-header-text-color [color: ('gray', 700)] - The dragged header text color.
|
|
21
21
|
/// @prop {Map} ghost-header-icon-color [color: ('gray', 600)] - The dragged header icon color.
|
|
22
22
|
/// @prop {Map} ghost-header-background [color: ('gray', 50)] - The dragged header background color.
|
|
@@ -176,7 +176,6 @@ $light-grid: extend(
|
|
|
176
176
|
color: (
|
|
177
177
|
'gray',
|
|
178
178
|
400,
|
|
179
|
-
0.38,
|
|
180
179
|
),
|
|
181
180
|
),
|
|
182
181
|
|
|
@@ -839,7 +838,7 @@ $material-grid: extend(
|
|
|
839
838
|
/// @prop {Map} header-text-color [color: ('gray', 800)] - The table header text color.
|
|
840
839
|
/// @prop {Map} header-selected-background [color: ('gray', 200)] - The table header background color when selected (ex. column selection).
|
|
841
840
|
/// @prop {Map} header-selected-text-color [contrast-color: ('gray', 200)] - The table header text color when selected (ex. column selection).
|
|
842
|
-
/// @prop {Map} header-border-color [color: ('gray',
|
|
841
|
+
/// @prop {Map} header-border-color [color: ('gray', 300)] - The color used for header borders.
|
|
843
842
|
/// @prop {Map} row-selected-background [color: ('gray', 200)] - The selected row background color.
|
|
844
843
|
/// @prop {Map} row-selected-hover-background [color: ('gray', 300)] - The selected row hover background.
|
|
845
844
|
/// @prop {Map} body-column-selected-border-color [color: ('gray', 200)] - The border color used for the body column when in group-row state.
|
|
@@ -901,7 +900,7 @@ $fluent-grid: extend(
|
|
|
901
900
|
header-border-color: (
|
|
902
901
|
color: (
|
|
903
902
|
'gray',
|
|
904
|
-
|
|
903
|
+
300,
|
|
905
904
|
),
|
|
906
905
|
),
|
|
907
906
|
|