@progress/kendo-theme-default 7.0.3-dev.3 → 7.1.0-dev.0

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.
@@ -33,6 +33,15 @@
33
33
  *::after {
34
34
  box-sizing: border-box;
35
35
  }
36
+
37
+ // Card avatar
38
+ .k-card-avatar,
39
+ .k-avatar {
40
+ margin-right: $kendo-card-avatar-spacing;
41
+ width: $kendo-card-avatar-size;
42
+ height: $kendo-card-avatar-size;
43
+ flex-basis: $kendo-card-avatar-size;
44
+ }
36
45
  }
37
46
  .k-card > .k-card-inner {
38
47
  @include border-radius( $kendo-card-inner-border-radius );
@@ -42,11 +51,9 @@
42
51
  position: relative;
43
52
  }
44
53
 
45
-
46
54
  // Card orientation
47
- .k-card-horizontal { flex-flow: row nowrap; } // stylelint-disable-line block-opening-brace-space-before
48
- .k-card-vertical { flex-flow: column nowrap; } // stylelint-disable-line block-opening-brace-space-before
49
-
55
+ .k-card-horizontal { flex-flow: row nowrap; } // stylelint-disable-line block-opening-brace-space-before
56
+ .k-card-vertical { flex-flow: column nowrap; } // stylelint-disable-line block-opening-brace-space-before
50
57
 
51
58
  // Header
52
59
  .k-card-header {
@@ -103,30 +110,13 @@
103
110
  }
104
111
  }
105
112
 
106
-
107
- // Card avatar
108
- .k-card-avatar,
109
- .k-card .k-avatar {
110
- margin-right: $kendo-card-avatar-spacing;
111
- width: $kendo-card-avatar-size;
112
- height: $kendo-card-avatar-size;
113
- flex-basis: $kendo-card-avatar-size;
114
- }
115
-
116
-
117
- // Card image
118
- .k-card-image,
113
+ // Card media
119
114
  .k-card-media {
120
115
  border: 0;
121
116
  max-width: 100%;
122
117
  flex-shrink: 0;
123
118
  overflow: hidden;
124
119
 
125
- > img {
126
- border: 0;
127
- max-width: 100%;
128
- }
129
-
130
120
  .k-card-horizontal & {
131
121
  max-width: $kendo-card-img-max-width;
132
122
  object-fit: cover;
@@ -170,22 +160,23 @@
170
160
  flex: 0 0 auto;
171
161
  align-self: stretch;
172
162
  }
173
- .k-card-separator.k-separator-vertical,
174
- .k-card-horizontal > .k-card-separator {
175
- border-left-width: 1px;
176
- }
163
+
177
164
  .k-card-separator.k-separator-horizontal,
178
165
  .k-card-vertical > .k-card-separator {
179
166
  border-top-width: 1px;
180
167
  }
181
168
 
169
+ .k-card-separator.k-separator-vertical,
170
+ .k-card-horizontal > .k-card-separator {
171
+ border-left-width: 1px;
172
+ }
173
+
182
174
  .k-card > .k-hr {
183
175
  margin: 0;
184
176
  flex: 0 0 auto;
185
177
  border-color: inherit;
186
178
  }
187
179
 
188
-
189
180
  // Card actions
190
181
  .k-card-actions {
191
182
  padding-block: $kendo-card-actions-padding-y;
@@ -200,33 +191,6 @@
200
191
  gap: $kendo-card-actions-gap;
201
192
  }
202
193
 
203
-
204
- // Actions align
205
- .k-card-actions-start { justify-content: flex-start; } // stylelint-disable-line block-opening-brace-space-before
206
- .k-card-actions-end { justify-content: flex-end; } // stylelint-disable-line block-opening-brace-space-before
207
- .k-card-actions-center { justify-content: center; } // stylelint-disable-line block-opening-brace-space-before
208
-
209
-
210
- // Actions orientation
211
- .k-card-actions-horizontal { flex-flow: row nowrap; } // stylelint-disable-line block-opening-brace-space-before
212
- .k-card-actions-vertical { flex-flow: column nowrap; } // stylelint-disable-line block-opening-brace-space-before
213
-
214
-
215
- // Stretched actions
216
- .k-card-actions-stretched > * {
217
- flex: 1 1 auto;
218
- }
219
-
220
-
221
- // Card action
222
- .k-card-action {
223
- border-width: 0;
224
- border-style: solid;
225
- border-color: inherit;
226
- display: inline-flex;
227
- }
228
-
229
-
230
194
  // List
231
195
  .k-card-list {
232
196
  display: flex;
@@ -318,9 +282,6 @@
318
282
  }
319
283
  }
320
284
 
321
-
322
-
323
-
324
285
  // Card with callout
325
286
  .k-card-with-callout {
326
287
  overflow: visible;
@@ -107,7 +107,6 @@
107
107
  z-index: -1;
108
108
  }
109
109
 
110
- .k-slider-wrap,
111
110
  .k-slider-track-wrap {
112
111
  z-index: 1;
113
112
  }
@@ -907,6 +907,7 @@
907
907
  $_selection-aggregates-padding-x: k-map-get( $size-props, selection-aggregates-padding-x );
908
908
  $_selection-aggregates-padding-y: k-map-get( $size-props, selection-aggregates-padding-y );
909
909
 
910
+ .k-grid .k-grid-#{$size},
910
911
  .k-grid-#{$size} {
911
912
 
912
913
  .k-table-th {
@@ -36,6 +36,7 @@
36
36
  .k-popup.k-popup-transparent {
37
37
  border-width: 0;
38
38
  background-color: transparent;
39
+ box-shadow: none;
39
40
  }
40
41
 
41
42
  // Flush popup
@@ -53,19 +53,6 @@
53
53
  }
54
54
  }
55
55
 
56
-
57
- // Slider wrap
58
- .k-slider-wrap {
59
- width: 100%;
60
- height: 100%;
61
- display: flex;
62
- flex-flow: inherit;
63
- align-items: inherit;
64
- gap: inherit;
65
- position: relative;
66
- }
67
-
68
-
69
56
  // New rendering
70
57
  .k-slider {
71
58
  width: min-content;
@@ -397,15 +384,7 @@
397
384
  .k-slider kendo-resize-sensor {
398
385
  position: absolute;
399
386
  }
400
- .k-slider-horizontal .k-slider-wrap:not(.k-slider-buttons) {
401
- padding-inline-start: calc( #{$kendo-slider-draghandle-size} / 2 );
402
- padding-inline-end: calc( #{$kendo-slider-draghandle-size} / 2 );
403
- }
404
- .k-slider-vertical .k-slider-wrap:not(.k-slider-buttons) {
405
- padding-top: calc( #{$kendo-slider-draghandle-size} / 2 );
406
- padding-bottom: calc( #{$kendo-slider-draghandle-size} / 2 );
407
- }
408
-
387
+
409
388
  // Aliases
410
389
  .k-draghandle { @extend .k-slider-thumb !optional; }
411
390
  .k-draghandle-start { @extend .k-slider-thumb-start !optional; }
@@ -5,7 +5,6 @@
5
5
  margin: 0;
6
6
  padding-block: $kendo-tooltip-padding-y;
7
7
  padding-inline: $kendo-tooltip-padding-x;
8
- // max-width: $kendo-tooltip-max-width;
9
8
  border-width: $kendo-tooltip-border-width;
10
9
  border-style: solid;
11
10
  box-sizing: border-box;
@@ -1,12 +1,4 @@
1
1
  @mixin kendo-tooltip--theme-base() {
2
-
3
- .k-tooltip-wrapper {
4
- .k-tooltip {
5
- box-shadow: $kendo-tooltip-shadow;
6
- }
7
- }
8
-
9
-
10
2
  // Default tooltip
11
3
  .k-tooltip {
12
4
  @include fill(
@@ -14,67 +6,26 @@
14
6
  $kendo-tooltip-bg,
15
7
  $kendo-tooltip-border
16
8
  );
9
+
10
+ @include box-shadow( $kendo-tooltip-shadow );
17
11
 
18
12
  .k-callout {
19
13
  color: $kendo-tooltip-bg;
20
14
  }
21
15
  }
22
16
 
23
-
24
17
  // Tooltip variants
25
- .k-tooltip-primary {
26
- @include fill(
27
- $kendo-tooltip-primary-text,
28
- $kendo-tooltip-primary-bg,
29
- $kendo-tooltip-primary-border
30
- );
31
-
32
- .k-callout {
33
- color: $kendo-tooltip-primary-bg;
34
- }
35
- }
36
- .k-tooltip-info {
37
- @include fill(
38
- $kendo-tooltip-info-text,
39
- $kendo-tooltip-info-bg,
40
- $kendo-tooltip-info-border
41
- );
42
-
43
- .k-callout {
44
- color: $kendo-tooltip-info-bg;
45
- }
46
- }
47
- .k-tooltip-success {
48
- @include fill(
49
- $kendo-tooltip-success-text,
50
- $kendo-tooltip-success-bg,
51
- $kendo-tooltip-success-border
52
- );
53
-
54
- .k-callout {
55
- color: $kendo-tooltip-success-bg;
56
- }
57
- }
58
- .k-tooltip-warning {
59
- @include fill(
60
- $kendo-tooltip-warning-text,
61
- $kendo-tooltip-warning-bg,
62
- $kendo-tooltip-warning-border
63
- );
64
-
65
- .k-callout {
66
- color: $kendo-tooltip-warning-bg;
67
- }
68
- }
69
- .k-tooltip-error {
70
- @include fill(
71
- $kendo-tooltip-error-text,
72
- $kendo-tooltip-error-bg,
73
- $kendo-tooltip-error-border
74
- );
75
-
76
- .k-callout {
77
- color: $kendo-tooltip-error-bg;
18
+ @each $name, $props in $kendo-tooltip-theme {
19
+ .k-tooltip-#{$name} {
20
+ @include fill(
21
+ k-map-get( $props, color ),
22
+ k-map-get( $props, background-color ),
23
+ k-map-get( $props, border )
24
+ );
25
+
26
+ .k-callout {
27
+ color: k-map-get( $props, background-color );
28
+ }
78
29
  }
79
30
  }
80
31
 
@@ -1,37 +1,70 @@
1
1
  // Tooltip
2
+
3
+ /// The vertical padding of the Tooltip.
4
+ /// @group tooltip
2
5
  $kendo-tooltip-padding-y: $kendo-padding-md-y !default;
6
+ /// The horizontal padding of the Tooltip.
7
+ /// @group tooltip
3
8
  $kendo-tooltip-padding-x: $kendo-padding-md-x !default;
4
- $kendo-tooltip-max-width: null !default;
9
+ /// The width of the border around the Tooltip.
10
+ /// @group tooltip
5
11
  $kendo-tooltip-border-width: 0px !default;
12
+ /// The border radius of the Tooltip.
13
+ /// @group tooltip
6
14
  $kendo-tooltip-border-radius: $kendo-border-radius-md !default;
7
15
 
16
+ /// The font family of the Tooltip.
17
+ /// @group tooltip
8
18
  $kendo-tooltip-font-family: $kendo-font-family !default;
19
+ /// The font size of the Tooltip.
20
+ /// @group tooltip
9
21
  $kendo-tooltip-font-size: $kendo-font-size-md !default;
22
+ /// The line height of the Tooltip.
23
+ /// @group tooltip
10
24
  $kendo-tooltip-line-height: 1.25 !default;
11
25
 
26
+ /// The font size of the Tooltip title.
27
+ /// @group tooltip
12
28
  $kendo-tooltip-title-font-size: ($kendo-tooltip-font-size * 1.25) !default;
29
+ /// The line height of the Tooltip title.
30
+ /// @group tooltip
13
31
  $kendo-tooltip-title-line-height: 1 !default;
14
32
 
33
+ /// The size of the Tooltip callout.
34
+ /// @group tooltip
15
35
  $kendo-tooltip-callout-size: 6px !default;
16
36
 
37
+ /// The default background of the Tooltip.
38
+ /// @group tooltip
17
39
  $kendo-tooltip-bg: rgba( k-contrast-legacy( $kendo-body-bg ), .75 ) !default;
40
+ /// The default text color of the Tooltip.
41
+ /// @group tooltip
18
42
  $kendo-tooltip-text: k-contrast-legacy( $kendo-tooltip-bg ) !default;
43
+ /// The default border color of the Tooltip.
44
+ /// @group tooltip
19
45
  $kendo-tooltip-border: $kendo-tooltip-bg !default;
20
46
 
47
+ /// The box-shadow of the Tooltip.
48
+ /// @group tooltip
21
49
  $kendo-tooltip-shadow: k-elevation(2) !default;
22
50
 
23
- $kendo-tooltip-primary-bg: $kendo-color-primary !default;
24
- $kendo-tooltip-primary-text: k-contrast-legacy( $kendo-tooltip-primary-bg ) !default;
25
- $kendo-tooltip-primary-border: $kendo-tooltip-primary-bg !default;
26
- $kendo-tooltip-info-bg: $kendo-color-info !default;
27
- $kendo-tooltip-info-text: k-contrast-legacy( $kendo-tooltip-info-bg ) !default;
28
- $kendo-tooltip-info-border: $kendo-tooltip-info-bg !default;
29
- $kendo-tooltip-success-bg: $kendo-color-success !default;
30
- $kendo-tooltip-success-text: k-contrast-legacy( $kendo-tooltip-success-bg ) !default;
31
- $kendo-tooltip-success-border: $kendo-tooltip-success-bg !default;
32
- $kendo-tooltip-warning-bg: $kendo-color-warning !default;
33
- $kendo-tooltip-warning-text: k-contrast-legacy( $kendo-tooltip-warning-bg ) !default;
34
- $kendo-tooltip-warning-border: $kendo-tooltip-warning-bg !default;
35
- $kendo-tooltip-error-bg: $kendo-color-error !default;
36
- $kendo-tooltip-error-text: k-contrast-legacy( $kendo-tooltip-error-bg ) !default;
37
- $kendo-tooltip-error-border: $kendo-tooltip-error-bg !default;
51
+ @function tooltip-theme( $colors ) {
52
+ $_theme: ();
53
+
54
+ @each $name, $color in $colors {
55
+ $_theme: k-map-merge(( $name: (
56
+ color: k-contrast-legacy( $color ),
57
+ background-color: $color,
58
+ border: $color,
59
+ )), $_theme );
60
+ }
61
+
62
+ @return $_theme;
63
+ }
64
+
65
+ /// The theme colors map for the Tooltip.
66
+ /// @group tooltip
67
+ $kendo-tooltip-theme-colors: $kendo-theme-colors !default;
68
+ /// The generated theme colors map for the Tooltip.
69
+ /// @group tooltip
70
+ $kendo-tooltip-theme: tooltip-theme( $kendo-tooltip-theme-colors ) !default;