@progress/kendo-theme-core 13.2.0-dev.3 → 13.2.0-dev.4

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.
@@ -16,12 +16,7 @@
16
16
  @if $name == "inherit" {
17
17
  color: inherit;
18
18
  background-color: inherit;
19
- } @else if $name == "dark" {
20
- color: $kendo-appbar-dark-text;
21
- background-color: $kendo-appbar-dark-bg;
22
- } @else if $name == "light" {
23
- color: $kendo-appbar-light-text;
24
- background-color: $kendo-appbar-light-bg;
19
+
25
20
  } @else {
26
21
  color: k-color(on-#{$name});
27
22
  background-color: k-color(#{$name});
@@ -15,15 +15,9 @@ $kendo-appbar-line-height: null !default;
15
15
 
16
16
  $kendo-appbar-gap: null !default;
17
17
 
18
- $kendo-appbar-light-bg: null !default;
19
- $kendo-appbar-light-text: null !default;
20
-
21
- $kendo-appbar-dark-bg: null !default;
22
- $kendo-appbar-dark-text: null !default;
23
-
24
18
  $kendo-appbar-box-shadow: null !default;
25
19
  $kendo-appbar-bottom-box-shadow: null !default;
26
20
 
27
21
  /// The theme colors map of the AppBar.
28
22
  /// @group appbar
29
- $kendo-appbar-theme-colors: ("inherit", "base", "primary", "secondary", "tertiary", "info", "success", "warning", "error", "dark", "light", "inverse") !default;
23
+ $kendo-appbar-theme-colors: ("base", "primary", "secondary", "tertiary", "inverse") !default;
@@ -31,4 +31,4 @@ $kendo-avatar-sizes: (
31
31
 
32
32
  /// The theme colors map of the Avatar.
33
33
  /// @group avatar
34
- $kendo-avatar-theme-colors: ("base", "primary", "secondary", "tertiary", "info", "success", "warning", "error", "dark", "light", "inverse") !default;
34
+ $kendo-avatar-theme-colors: ("base", "primary", "secondary", "tertiary") !default;
@@ -60,4 +60,4 @@ $kendo-badge-roundness: ( "none", "sm", "md", "lg", "full" ) !default;
60
60
 
61
61
  /// The theme colors map of the Badge.
62
62
  /// @group badge
63
- $kendo-badge-theme-colors: ("base", "primary", "secondary", "tertiary", "info", "success", "warning", "error", "dark", "light", "inverse") !default;
63
+ $kendo-badge-theme-colors: ("base", "primary", "secondary", "tertiary", "info", "success", "warning", "error") !default;
@@ -30,4 +30,4 @@ $kendo-bottom-nav-flat-border: null !default;
30
30
 
31
31
  /// The theme colors map of the BottomNavigation.
32
32
  /// @group bottom-navigation
33
- $kendo-bottom-navigation-theme-colors: ("primary", "secondary", "tertiary", "info", "success", "warning", "error", "dark", "light", "inverse") !default;
33
+ $kendo-bottom-navigation-theme-colors: ("base", "primary", "secondary", "tertiary", "inverse") !default;
@@ -113,7 +113,7 @@ $kendo-button-roundness: ("none", "sm", "md", "lg", "full") !default;
113
113
 
114
114
  /// The theme colors map of the Button.
115
115
  /// @group button
116
- $kendo-button-theme-colors: ("base", "primary", "secondary", "tertiary", "info", "success", "warning", "error", "dark", "light", "inverse") !default;
116
+ $kendo-button-theme-colors: ("base", "primary", "secondary", "tertiary", "info", "success", "warning", "error", "inverse") !default;
117
117
 
118
118
  /// The sizes map of the Button.
119
119
  /// @group button
@@ -34,21 +34,6 @@
34
34
  @include box-shadow( $kendo-card-focus-shadow );
35
35
  }
36
36
 
37
-
38
- // Card theme colors
39
- @each $name in $kendo-card-theme-colors {
40
- #{k-when-default($kendo-card-default-theme-color, $name)}
41
- &.k-card-#{$name} {
42
- background-color: k-color(#{$name}-subtle);
43
- color: k-color(#{$name}-on-subtle);
44
- border-color: k-color(#{$name}-emphasis);
45
-
46
- .k-card-subtitle {
47
- color: inherit;
48
- }
49
- }
50
- }
51
-
52
37
  }
53
38
 
54
39
 
@@ -1,7 +1,5 @@
1
1
  // Card
2
2
 
3
- $kendo-card-default-theme-color: null !default;
4
-
5
3
  $kendo-card-padding-x: null !default;
6
4
  $kendo-card-padding-y: null !default;
7
5
  $kendo-card-border-width: null !default;
@@ -71,7 +69,3 @@ $kendo-card-deck-scroll-button-offset: null !default;
71
69
 
72
70
  $kendo-card-callout-width: null !default;
73
71
  $kendo-card-callout-height: null !default;
74
-
75
- /// The theme colors map of the Card.
76
- /// @group card
77
- $kendo-card-theme-colors: ("primary", "secondary", "tertiary", "info", "success", "warning", "error", "dark", "light", "inverse") !default;
@@ -7,18 +7,6 @@
7
7
  @mixin kendo-dialog--theme-base() {
8
8
  .k-dialog {
9
9
  background-color: $kendo-dialog-bg;
10
-
11
- // Dialog theme colors
12
- @each $name in $kendo-dialog-theme-colors {
13
-
14
- #{k-when-default($kendo-dialog-default-theme-color, $name)}
15
- &.k-dialog-#{$name} {
16
- .k-dialog-titlebar {
17
- color: k-color(on-#{$name});
18
- background-color: k-color(#{$name});
19
- }
20
- }
21
- }
22
10
  }
23
11
 
24
12
  // Dialog titlebar
@@ -1,7 +1,5 @@
1
1
  // Dialog
2
2
 
3
- $kendo-dialog-default-theme-color: null !default;
4
-
5
3
  $kendo-dialog-titlebar-bg: null !default;
6
4
  $kendo-dialog-titlebar-text: null !default;
7
5
  $kendo-dialog-titlebar-border: null !default;
@@ -12,7 +10,3 @@ $kendo-dialog-buttongroup-border-width: null !default;
12
10
  $kendo-dialog-button-spacing: null !default;
13
11
 
14
12
  $kendo-dialog-bg: null !default;
15
-
16
- /// The theme colors map of the Dialog.
17
- /// @group dialog
18
- $kendo-dialog-theme-colors: ("primary", "light", "dark") !default;
@@ -65,7 +65,7 @@ $kendo-fab-roundness: ( "none", "sm", "md", "lg", "full" ) !default;
65
65
 
66
66
  /// The theme colors map of the FloatingActionButton.
67
67
  /// @group floating-action-button
68
- $kendo-fab-theme-colors: ("base", "primary", "secondary", "tertiary", "info", "success", "warning", "error", "dark", "light", "inverse") !default;
68
+ $kendo-fab-theme-colors: ("base", "primary", "secondary", "tertiary") !default;
69
69
 
70
70
  /// The sizes map of the FloatingActionButton.
71
71
  /// @group floating-action-button
@@ -51,6 +51,7 @@
51
51
 
52
52
  .k-list-scroller {
53
53
  width: 100%;
54
+ min-width: 0;
54
55
  min-height: 0;
55
56
  height: inherit;
56
57
  border-width: $kendo-listbox-border-width;
@@ -420,8 +420,7 @@
420
420
 
421
421
  }
422
422
 
423
- .k-loader-container,
424
- .k-loader-container-overlay {
423
+ .k-loader-container {
425
424
  width: 100%;
426
425
  height: 100%;
427
426
  position: absolute;
@@ -431,10 +430,6 @@
431
430
  inset-inline-start: 0;
432
431
  }
433
432
 
434
- // TODO: use k-overlay as a base class in rendering
435
- .k-loader-container-overlay {
436
- opacity: $kendo-overlay-opacity;
437
- }
438
433
 
439
434
  .k-loader-container-inner {
440
435
  display: flex;
@@ -443,6 +438,14 @@
443
438
  z-index: k-z-index("base", 2);
444
439
  }
445
440
 
441
+ .k-loader-container-overlay {
442
+ position: absolute;
443
+ }
444
+
445
+ .k-loader-container-overlay + .k-loader-container-inner {
446
+ z-index: k-z-index("overlay");
447
+ }
448
+
446
449
  .k-loader-container-panel {
447
450
  border-width: $kendo-loader-container-panel-border-width;
448
451
  border-style: $kendo-loader-container-panel-border-style;
@@ -56,4 +56,4 @@ $kendo-zindex-loading: null !default;
56
56
 
57
57
  /// The theme colors map of the Loader.
58
58
  /// @group loader
59
- $kendo-loader-theme-colors: ("base", "primary", "secondary", "tertiary", "info", "success", "warning", "error", "dark", "light", "inverse") !default;
59
+ $kendo-loader-theme-colors: ("base", "primary", "secondary", "tertiary") !default;
@@ -11,19 +11,11 @@
11
11
  .k-messagebox {
12
12
  #{k-when-default($kendo-message-box-default-theme-color, $color-name)}
13
13
  &.k-messagebox-#{$color-name} {
14
- @if $color-name == "inverse" {
15
- @include fill(
16
- k-color(dark-on-subtle),
17
- k-color(dark-subtle),
18
- k-color(dark-hover)
19
- );
20
- } @else {
21
- @include fill(
22
- k-color(#{$color-name}-on-subtle),
23
- k-color(#{$color-name}-subtle),
24
- k-color(#{$color-name}-emphasis)
25
- );
26
- }
14
+ @include fill(
15
+ k-color(#{$color-name}-on-subtle),
16
+ k-color(#{$color-name}-subtle),
17
+ k-color(#{$color-name}-emphasis)
18
+ );
27
19
  }
28
20
  }
29
21
  }
@@ -19,4 +19,4 @@ $kendo-message-box-link-text-decoration: null !default;
19
19
 
20
20
  /// The theme colors map of the MessageBox.
21
21
  /// @group message-box
22
- $kendo-message-box-theme-colors: ("base", "primary", "secondary", "tertiary", "info", "success", "warning", "error", "dark", "light", "inverse") !default;
22
+ $kendo-message-box-theme-colors: ("base", "primary", "secondary", "tertiary", "info", "success", "warning", "error", "inverse") !default;
@@ -1,25 +1,8 @@
1
- @use "../../color-system/_functions.scss" as *;
2
- @use "../../functions/default.scss" as *;
3
1
  @use "./_variables.scss" as *;
4
2
 
5
3
  @mixin kendo-overlay--theme-base() {
6
4
  // Overlay
7
5
  .k-overlay {
8
- @each $name in $kendo-overlay-theme-colors {
9
- #{k-when-default($kendo-overlay-default-theme-color, $name)}
10
- &.k-overlay-#{$name} {
11
- background-color: k-color(#{$name});
12
- }
13
- }
14
-
15
6
  background-color: $kendo-overlay-bg;
16
7
  }
17
-
18
- // Where single k-overlay-{color} is used as a theme element
19
- @each $name in $kendo-overlay-theme-colors {
20
- .k-overlay-#{$name} {
21
- background-color: k-color(#{$name});
22
- }
23
- }
24
-
25
8
  }
@@ -1,8 +1,3 @@
1
- $kendo-overlay-default-theme-color: null !default;
2
-
3
1
  $kendo-overlay-bg: null !default;
4
2
  $kendo-overlay-opacity: null !default;
5
3
 
6
- /// The theme colors map of the Overlay.
7
- /// @group overlay
8
- $kendo-overlay-theme-colors: ("dark", "light", "inverse") !default;
@@ -16,6 +16,7 @@
16
16
 
17
17
  .k-suggestion-group {
18
18
  padding-block: calc( #{$kendo-suggestion-padding-y} / 2 );
19
+ margin-inline: calc( #{$kendo-suggestion-padding-y} / -2 );
19
20
  display: flex;
20
21
  flex: 1;
21
22
  flex-wrap: wrap;
@@ -27,8 +28,12 @@
27
28
  flex-wrap: nowrap;
28
29
  }
29
30
 
31
+ &:not(:has(.k-suggestions-scroll)) {
32
+ padding-inline: calc( #{$kendo-suggestion-padding-y} / 2 );
33
+ }
34
+
30
35
  .k-suggestions-scroll {
31
- padding-block: calc( #{$kendo-suggestion-padding-y} / 2 );
36
+ padding: calc( #{$kendo-suggestion-padding-y} / 2 );
32
37
  margin-block: calc( #{$kendo-suggestion-padding-y} / -2 );
33
38
  display: flex;
34
39
  overflow-x: auto;
@@ -15,7 +15,7 @@ $kendo-suggestion-focus-shadow-color: null !default;
15
15
 
16
16
  /// The theme colors map of the Suggestion.
17
17
  /// @group suggestion
18
- $kendo-suggestion-theme-colors: ("base", "primary", "secondary") !default;
18
+ $kendo-suggestion-theme-colors: ("base", "primary", "secondary", "tertiary") !default;
19
19
 
20
20
  $kendo-suggestion-default-theme-color: null !default;
21
21
 
@@ -14,18 +14,6 @@
14
14
  $kendo-window-border
15
15
  );
16
16
  @include box-shadow( $kendo-window-shadow );
17
-
18
- // Window theme colors
19
- @each $name in $kendo-window-theme-colors {
20
-
21
- #{k-when-default($kendo-window-default-theme-color, $name)}
22
- &.k-window-#{$name} {
23
- .k-window-titlebar {
24
- color: k-color(on-#{$name});
25
- background-color: k-color(#{$name});
26
- }
27
- }
28
- }
29
17
  }
30
18
 
31
19
  .k-window:focus,
@@ -1,6 +1,5 @@
1
1
  // Window
2
2
 
3
- $kendo-window-default-theme-color: null !default;
4
3
  $kendo-window-default-size: null !default;
5
4
 
6
5
  $kendo-window-border-width: null !default;
@@ -47,7 +46,3 @@ $kendo-window-sizes: (
47
46
  md: 800px,
48
47
  lg: 1200px
49
48
  ) !default;
50
-
51
- /// The theme colors map of the Window.
52
- /// @group window
53
- $kendo-window-theme-colors: ("primary", "light", "dark") !default;