@progress/kendo-theme-default 5.4.2-dev.3 → 5.4.2-dev.6

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.
@@ -13,5 +13,3 @@
13
13
  @import "_typography.scss";
14
14
  @import "_hide-scrollbar.scss";
15
15
 
16
- // Other
17
- @import "_input-ripple.scss";
@@ -11,6 +11,7 @@
11
11
  }
12
12
  .k-drawer {
13
13
  height: 100%;
14
+ max-width: 100%;
14
15
  border-width: 0;
15
16
  border-style: solid;
16
17
  box-sizing: border-box;
@@ -163,6 +164,20 @@
163
164
  padding: 0 $drawer-item-padding-x;
164
165
  display: inline-block;
165
166
  white-space: nowrap;
167
+ overflow: hidden;
168
+ text-overflow: ellipsis;
169
+ }
170
+
171
+ .k-drawer-toggle {
172
+ margin-inline-start: auto;
173
+ cursor: pointer;
174
+ }
175
+
176
+ // Hierarchy items
177
+ @for $i from 1 through $drawer-item-level-count {
178
+ &.k-level-#{$i} {
179
+ padding-inline-start: ( $drawer-item-level-padding-x * $i );
180
+ }
166
181
  }
167
182
  }
168
183
  .k-drawer-separator {
@@ -8,6 +8,9 @@ $drawer-font-size: $font-size !default;
8
8
  $drawer-line-height: $line-height !default;
9
9
  $drawer-content-padding-x: $padding-x !default;
10
10
  $drawer-content-padding-y: $padding-y !default;
11
+ $drawer-item-level-padding-x: map-get( $spacing, 4 ) !default;
12
+
13
+ $drawer-item-level-count: 5 !default;
11
14
 
12
15
  $drawer-scrollbar-width: 7px !default;
13
16
  $drawer-scrollbar-color: rgba(156, 156, 156, .7) !default;
@@ -338,28 +338,16 @@
338
338
  // Fill mode
339
339
  .k-input-flat,
340
340
  .k-picker-flat {
341
- @include border-radius( 0 !important ); // sass-lint:disable-line no-important
341
+ @include border-bottom-radius( 0 !important ); // sass-lint:disable-line no-important
342
342
  border-width: $kendo-input-border-width 0;
343
343
  border-top-color: transparent !important; // sass-lint:disable-line no-important
344
344
  background-image: none !important; // sass-lint:disable-line no-important
345
-
346
- &:focus,
347
- &.k-focus {
348
- @include border-radius( $kendo-input-flat-border-radius !important ); // sass-lint:disable-line no-important
349
- }
350
- &:focus-within {
351
- @include border-radius( $kendo-input-flat-border-radius !important ); // sass-lint:disable-line no-important
352
- }
353
345
  }
354
346
 
355
347
  .k-input-outline {
356
348
  background: none !important; // sass-lint:disable-line no-important
357
349
  }
358
350
 
359
- .k-picker.k-picker-flat {
360
- @include border-radius( $kendo-input-flat-border-radius !important ); // sass-lint:disable-line no-important
361
- }
362
-
363
351
 
364
352
  // Sizing
365
353
  @each $size, $size-props in $kendo-input-sizes {
@@ -1,7 +1,7 @@
1
1
  @include exports( "input/theme" ) {
2
2
 
3
3
  // Solid input
4
- .k-input {
4
+ .k-input-solid {
5
5
  @include fill(
6
6
  $kendo-input-text,
7
7
  $kendo-input-bg,
@@ -38,7 +38,7 @@
38
38
  @include box-shadow( $kendo-input-focus-shadow );
39
39
  }
40
40
 
41
- //Disabled
41
+ // Disabled
42
42
  &:disabled,
43
43
  &[disabled],
44
44
  &.k-disabled {
@@ -55,7 +55,7 @@
55
55
  &.k-invalid,
56
56
  &.ng-invalid.ng-touched,
57
57
  &.ng-invalid.ng-dirty {
58
- @include fill( $border: $invalid-border );
58
+ @include fill( $border: $kendo-input-invalid-border );
59
59
 
60
60
  .k-input-validation-icon {
61
61
  color: $invalid-text;
@@ -63,10 +63,10 @@
63
63
 
64
64
  &:focus,
65
65
  &.k-focus {
66
- @include box-shadow($invalid-shadow);
66
+ @include box-shadow( $kendo-input-invalid-shadow );
67
67
  }
68
68
  &:focus-within {
69
- @include box-shadow($invalid-shadow);
69
+ @include box-shadow( $kendo-input-invalid-shadow );
70
70
  }
71
71
  }
72
72
 
@@ -74,7 +74,7 @@
74
74
 
75
75
 
76
76
  // Solid picker
77
- .k-picker {
77
+ .k-picker-solid {
78
78
  @include fill(
79
79
  $kendo-picker-text,
80
80
  $kendo-picker-bg,
@@ -115,7 +115,7 @@
115
115
  @include box-shadow( $kendo-picker-focus-shadow );
116
116
  }
117
117
 
118
- //Disabled
118
+ // Disabled
119
119
  &:disabled,
120
120
  &[disabled],
121
121
  &.k-disabled {
@@ -148,7 +148,8 @@
148
148
  }
149
149
  }
150
150
 
151
- // Outline
151
+
152
+ // Outline input
152
153
  .k-input-outline {
153
154
  @include fill (
154
155
  $kendo-input-outline-text,
@@ -169,6 +170,7 @@
169
170
  }
170
171
  }
171
172
 
173
+ // Hover
172
174
  &:hover,
173
175
  &.k-hover {
174
176
  @include fill (
@@ -178,6 +180,7 @@
178
180
  );
179
181
  }
180
182
 
183
+ // Focus
181
184
  &:focus,
182
185
  &.k-focus {
183
186
  @include fill (
@@ -187,12 +190,33 @@
187
190
  );
188
191
  @include box-shadow ( $kendo-input-outline-focus-shadow );
189
192
  }
193
+ &:focus-within {
194
+ @include fill (
195
+ $kendo-input-outline-focus-text,
196
+ $kendo-input-outline-focus-bg,
197
+ $kendo-input-outline-focus-border
198
+ );
199
+ @include box-shadow ( $kendo-input-outline-focus-shadow );
200
+ }
201
+
202
+ // Disabled
203
+ &:disabled,
204
+ &[disabled],
205
+ &.k-disabled {
206
+ @include fill(
207
+ $kendo-input-disabled-text,
208
+ $kendo-input-disabled-bg,
209
+ $kendo-input-disabled-border,
210
+ $kendo-input-disabled-gradient
211
+ );
212
+ @include box-shadow( $kendo-input-disabled-shadow );
213
+ }
190
214
 
191
215
  // Invalid
192
216
  &.k-invalid,
193
217
  &.ng-invalid.ng-touched,
194
218
  &.ng-invalid.ng-dirty {
195
- @include fill( $border: $invalid-border );
219
+ @include fill( $border: $kendo-input-invalid-border );
196
220
 
197
221
  .k-input-validation-icon {
198
222
  color: $invalid-text;
@@ -200,15 +224,17 @@
200
224
 
201
225
  &:focus,
202
226
  &.k-focus {
203
- @include box-shadow($invalid-shadow);
227
+ @include box-shadow( $kendo-input-invalid-shadow );
204
228
  }
205
229
  &:focus-within {
206
- @include box-shadow($invalid-shadow);
230
+ @include box-shadow( $kendo-input-invalid-shadow );
207
231
  }
208
232
  }
209
233
 
210
234
  }
211
235
 
236
+
237
+ // Outline picker
212
238
  .k-picker-outline {
213
239
  @include fill (
214
240
  $kendo-picker-outline-text,
@@ -216,6 +242,7 @@
216
242
  $kendo-picker-outline-border
217
243
  );
218
244
 
245
+ // Hover
219
246
  &:hover,
220
247
  &.k-hover {
221
248
  @include fill (
@@ -225,6 +252,7 @@
225
252
  );
226
253
  }
227
254
 
255
+ // Focus
228
256
  &:focus,
229
257
  &.k-focus {
230
258
  @include fill (
@@ -234,6 +262,14 @@
234
262
  );
235
263
  @include box-shadow ( $kendo-picker-outline-focus-shadow );
236
264
  }
265
+ &:focus-within {
266
+ @include fill (
267
+ $kendo-picker-outline-focus-text,
268
+ $kendo-picker-outline-focus-bg,
269
+ $kendo-picker-outline-focus-border
270
+ );
271
+ @include box-shadow ( $kendo-picker-outline-focus-shadow );
272
+ }
237
273
 
238
274
  &:focus:hover,
239
275
  &:focus.k-hover,
@@ -246,11 +282,24 @@
246
282
  );
247
283
  }
248
284
 
285
+ // Disabled
286
+ &:disabled,
287
+ &[disabled],
288
+ &.k-disabled {
289
+ @include fill(
290
+ $kendo-picker-disabled-text,
291
+ $kendo-picker-disabled-bg,
292
+ $kendo-picker-disabled-border,
293
+ $kendo-picker-disabled-gradient
294
+ );
295
+ @include box-shadow( $kendo-picker-disabled-shadow );
296
+ }
297
+
249
298
  // Invalid
250
299
  &.k-invalid,
251
300
  &.ng-invalid.ng-touched,
252
301
  &.ng-invalid.ng-dirty {
253
- @include fill( $border: $invalid-border );
302
+ @include fill( $border: $kendo-input-invalid-border );
254
303
 
255
304
  .k-input-validation-icon {
256
305
  color: $invalid-text;
@@ -258,15 +307,16 @@
258
307
 
259
308
  &:focus,
260
309
  &.k-focus {
261
- @include box-shadow($invalid-shadow);
310
+ @include box-shadow( $kendo-input-invalid-shadow );
262
311
  }
263
312
  &:focus-within {
264
- @include box-shadow($invalid-shadow);
313
+ @include box-shadow( $kendo-input-invalid-shadow );
265
314
  }
266
315
  }
267
316
  }
268
317
 
269
- // Flat
318
+
319
+ // Flat input
270
320
  .k-input-flat {
271
321
  @include fill (
272
322
  $kendo-input-flat-text,
@@ -274,6 +324,17 @@
274
324
  $kendo-input-flat-border
275
325
  );
276
326
 
327
+ // Hover
328
+ &:hover,
329
+ &.k-hover {
330
+ @include fill (
331
+ $kendo-input-flat-hover-text,
332
+ $kendo-input-flat-hover-bg,
333
+ $kendo-input-flat-hover-border
334
+ );
335
+ }
336
+
337
+ // Focus
277
338
  &:focus,
278
339
  &.k-focus {
279
340
  @include fill (
@@ -281,6 +342,28 @@
281
342
  $kendo-input-flat-focus-bg,
282
343
  $kendo-input-flat-focus-border
283
344
  );
345
+ @include box-shadow( $kendo-input-flat-focus-shadow );
346
+ }
347
+ &:focus-within {
348
+ @include fill (
349
+ $kendo-input-flat-focus-text,
350
+ $kendo-input-flat-focus-bg,
351
+ $kendo-input-flat-focus-border
352
+ );
353
+ @include box-shadow( $kendo-input-flat-focus-shadow );
354
+ }
355
+
356
+ // Disabled
357
+ &:disabled,
358
+ &[disabled],
359
+ &.k-disabled {
360
+ @include fill(
361
+ $kendo-input-disabled-text,
362
+ $kendo-input-disabled-bg,
363
+ $kendo-input-disabled-border,
364
+ $kendo-input-disabled-gradient
365
+ );
366
+ @include box-shadow( $kendo-input-disabled-shadow );
284
367
  }
285
368
 
286
369
  // Invalid
@@ -303,6 +386,8 @@
303
386
  }
304
387
  }
305
388
 
389
+
390
+ // Flat picker
306
391
  .k-picker-flat {
307
392
  @include fill (
308
393
  $kendo-picker-flat-text,
@@ -310,6 +395,7 @@
310
395
  $kendo-picker-flat-border
311
396
  );
312
397
 
398
+ // Hover
313
399
  &:hover,
314
400
  &.k-hover {
315
401
  @include fill (
@@ -319,6 +405,7 @@
319
405
  );
320
406
  }
321
407
 
408
+ // Focus
322
409
  &:focus,
323
410
  &.k-focus {
324
411
  @include fill (
@@ -328,6 +415,14 @@
328
415
  );
329
416
  @include box-shadow( $kendo-picker-flat-focus-shadow );
330
417
  }
418
+ &:focus-within {
419
+ @include fill (
420
+ $kendo-picker-flat-focus-text,
421
+ $kendo-picker-flat-focus-bg,
422
+ $kendo-picker-flat-focus-border
423
+ );
424
+ @include box-shadow( $kendo-picker-flat-focus-shadow );
425
+ }
331
426
 
332
427
  &:focus:hover,
333
428
  &:focus.k-hover,
@@ -340,6 +435,19 @@
340
435
  );
341
436
  }
342
437
 
438
+ // Disabled
439
+ &:disabled,
440
+ &[disabled],
441
+ &.k-disabled {
442
+ @include fill(
443
+ $kendo-picker-disabled-text,
444
+ $kendo-picker-disabled-bg,
445
+ $kendo-picker-disabled-border,
446
+ $kendo-picker-disabled-gradient
447
+ );
448
+ @include box-shadow( $kendo-picker-disabled-shadow );
449
+ }
450
+
343
451
  // Invalid
344
452
  &.k-invalid,
345
453
  &.ng-invalid.ng-touched,
@@ -78,7 +78,7 @@ $kendo-input-disabled-gradient: null !default;
78
78
  $kendo-input-disabled-shadow: null !default;
79
79
 
80
80
  $kendo-input-outline-bg: null !default;
81
- $kendo-input-outline-text: null !default;
81
+ $kendo-input-outline-text: $kendo-input-text !default;
82
82
  $kendo-input-outline-border: rgba( $kendo-button-text, .5) !default;
83
83
 
84
84
  $kendo-input-outline-hover-bg: null !default;
@@ -87,18 +87,21 @@ $kendo-input-outline-hover-border: rgba( $kendo-button-text, .8) !default;
87
87
 
88
88
  $kendo-input-outline-focus-bg: null !default;
89
89
  $kendo-input-outline-focus-text: null !default;
90
- $kendo-input-outline-focus-border: $kendo-input-outline-border !default;
90
+ $kendo-input-outline-focus-border: null !default;
91
91
  $kendo-input-outline-focus-shadow: $kendo-input-focus-shadow !default;
92
92
 
93
- $kendo-input-flat-bg: transparent !default;
93
+ $kendo-input-flat-bg: null !default;
94
94
  $kendo-input-flat-text: $kendo-input-text !default;
95
95
  $kendo-input-flat-border: $kendo-input-border !default;
96
96
 
97
+ $kendo-input-flat-hover-bg: null !default;
98
+ $kendo-input-flat-hover-text: null !default;
99
+ $kendo-input-flat-hover-border: $kendo-input-hover-border !default;
100
+
97
101
  $kendo-input-flat-focus-bg: null !default;
98
102
  $kendo-input-flat-focus-text: null !default;
99
103
  $kendo-input-flat-focus-border: null !default;
100
-
101
- $kendo-input-flat-border-radius: $kendo-border-radius $kendo-border-radius 0px 0px !default;
104
+ $kendo-input-flat-focus-shadow: $kendo-input-focus-shadow !default;
102
105
 
103
106
  $kendo-picker-bg: $kendo-button-bg !default;
104
107
  $kendo-picker-text: $kendo-button-text !default;
@@ -124,24 +127,24 @@ $kendo-picker-disabled-border: null !default;
124
127
  $kendo-picker-disabled-gradient: null !default;
125
128
  $kendo-picker-disabled-shadow: null !default;
126
129
 
127
- $kendo-picker-outline-bg: transparent !default;
128
- $kendo-picker-outline-text: null !default;
129
- $kendo-picker-outline-border: $kendo-button-text !default;
130
+ $kendo-picker-outline-bg: null !default;
131
+ $kendo-picker-outline-text: $kendo-button-text !default;
132
+ $kendo-picker-outline-border: rgba( $kendo-picker-outline-text, .5) !default;
130
133
 
131
- $kendo-picker-outline-hover-bg: $kendo-button-text !default;
132
- $kendo-picker-outline-hover-text: $body-bg !default;
133
- $kendo-picker-outline-hover-border: null !default;
134
+ $kendo-picker-outline-hover-bg: $kendo-picker-outline-text !default;
135
+ $kendo-picker-outline-hover-text: contrast-wcag( $kendo-picker-outline-hover-bg ) !default;
136
+ $kendo-picker-outline-hover-border: $kendo-picker-outline-hover-bg !default;
134
137
 
135
- $kendo-picker-outline-focus-bg: transparent !default;
136
- $kendo-picker-outline-focus-text: $kendo-picker-outline-text !default;
137
- $kendo-picker-outline-focus-border: $kendo-picker-outline-border !default;
138
+ $kendo-picker-outline-focus-bg: null !default;
139
+ $kendo-picker-outline-focus-text: null !default;
140
+ $kendo-picker-outline-focus-border: null !default;
138
141
  $kendo-picker-outline-focus-shadow: $kendo-picker-focus-shadow !default;
139
142
 
140
- $kendo-picker-outline-hover-focus-bg: $kendo-picker-outline-hover-bg !default;
141
- $kendo-picker-outline-hover-focus-text: $kendo-picker-outline-hover-text !default;
142
- $kendo-picker-outline-hover-focus-border: $kendo-picker-outline-hover-border !default;
143
+ $kendo-picker-outline-hover-focus-bg: null !default;
144
+ $kendo-picker-outline-hover-focus-text: null !default;
145
+ $kendo-picker-outline-hover-focus-border: null !default;
143
146
 
144
- $kendo-picker-flat-bg: transparent !default;
147
+ $kendo-picker-flat-bg: null !default;
145
148
  $kendo-picker-flat-text: $kendo-button-text !default;
146
149
  $kendo-picker-flat-border: $kendo-button-border !default;
147
150
 
@@ -152,7 +155,7 @@ $kendo-picker-flat-hover-border: rgba( $kendo-button-border, .16 ) !default;
152
155
  $kendo-picker-flat-focus-bg: null !default;
153
156
  $kendo-picker-flat-focus-text: null !default;
154
157
  $kendo-picker-flat-focus-border: null !default;
155
- $kendo-picker-flat-focus-shadow: null !default;
158
+ $kendo-picker-flat-focus-shadow: $kendo-picker-focus-shadow !default;
156
159
 
157
160
  $kendo-picker-flat-hover-focus-bg: null !default;
158
161
  $kendo-picker-flat-hover-focus-text: null !default;
@@ -5,7 +5,7 @@
5
5
  margin: 0;
6
6
  padding: 0;
7
7
  border-width: $panelbar-border-width;
8
- border-style: solid;
8
+ border-style: $panelbar-border-style;
9
9
  box-sizing: border-box;
10
10
  outline: 0;
11
11
  font-family: $panelbar-font-family;
@@ -5,6 +5,7 @@ $panelbar-font-family: $font-family !default;
5
5
  $panelbar-font-size: $font-size !default;
6
6
  $panelbar-line-height: $line-height !default;
7
7
  $panelbar-border-width: 1px !default;
8
+ $panelbar-border-style: solid !default;
8
9
  $panelbar-item-border-width: 1px !default;
9
10
  $panelbar-item-border-style: solid !default;
10
11
 
@@ -110,6 +110,16 @@
110
110
  flex: 0 0 1px;
111
111
  }
112
112
 
113
+ .k-tick-horizontal {
114
+ width: 1px;
115
+ min-height: 100%;
116
+ }
117
+
118
+ .k-tick-vertical {
119
+ width: 100%;
120
+ min-height: 1px;
121
+ }
122
+
113
123
  .k-draghandle {
114
124
  position: absolute;
115
125
  }
@@ -1,32 +0,0 @@
1
- @mixin input-ripple() {
2
- $height: 2 * $kendo-input-border-width;
3
-
4
- &::after {
5
- display: block;
6
- z-index: 2;
7
- content: "";
8
- position: absolute;
9
- bottom: calc( 1px - #{$height} );
10
- left: 0;
11
- right: 0;
12
- height: $height;
13
- margin: auto;
14
- opacity: 0;
15
- transform: scaleX(.5);
16
- transition: transform .3s;
17
- background-color: $primary;
18
- }
19
-
20
- &.k-state-focused::after ,
21
- &.k-focus::after {
22
- opacity: 1;
23
- transform: scaleX(1);
24
- }
25
-
26
-
27
- &.k-state-invalid::after ,
28
- &.k-invalid::after {
29
- background-color: $error;
30
- transition: none;
31
- }
32
- }