@progress/kendo-theme-default 4.42.1-dev.4 → 5.0.0-alpha.3

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.
Files changed (130) hide show
  1. package/dist/all.css +1651 -2882
  2. package/dist/all.scss +2211 -4033
  3. package/package.json +4 -4
  4. package/scss/_variables.scss +2 -0
  5. package/scss/adaptive/_layout.scss +0 -16
  6. package/scss/autocomplete/_layout.scss +1 -34
  7. package/scss/autocomplete/_theme.scss +2 -74
  8. package/scss/autocomplete/_variables.scss +12 -12
  9. package/scss/breadcrumb/_layout.scss +0 -5
  10. package/scss/button/_layout.scss +106 -114
  11. package/scss/button/_theme.scss +253 -264
  12. package/scss/button/_variables.scss +170 -130
  13. package/scss/button/index.md +3 -0
  14. package/scss/calendar/_layout.scss +0 -12
  15. package/scss/calendar/_theme.scss +0 -17
  16. package/scss/captcha/_layout.scss +0 -5
  17. package/scss/card/_layout.scss +0 -4
  18. package/scss/card/_variables.scss +1 -1
  19. package/scss/chat/_variables.scss +5 -5
  20. package/scss/checkbox/_layout.scss +87 -91
  21. package/scss/checkbox/_theme.scss +33 -39
  22. package/scss/checkbox/_variables.scss +153 -56
  23. package/scss/colorgradient/_layout.scss +0 -4
  24. package/scss/colorpicker/_layout.scss +2 -130
  25. package/scss/colorpicker/_theme.scss +2 -64
  26. package/scss/colorpicker/_variables.scss +9 -9
  27. package/scss/combobox/_layout.scss +2 -61
  28. package/scss/combobox/_theme.scss +2 -123
  29. package/scss/combobox/_variables.scss +23 -23
  30. package/scss/common/_base.scss +1 -2
  31. package/scss/core/_normalize.scss +11 -0
  32. package/scss/core/mixins/_input-ripple.scss +1 -1
  33. package/scss/dataviz/_theme.scss +8 -8
  34. package/scss/dataviz/_variables.scss +6 -6
  35. package/scss/dateinput/_index.scss +15 -0
  36. package/scss/dateinput/_layout.scss +6 -0
  37. package/scss/dateinput/_theme.scss +6 -0
  38. package/scss/dateinput/_variables.scss +1 -0
  39. package/scss/datepicker/_index.scss +15 -0
  40. package/scss/datepicker/_layout.scss +6 -0
  41. package/scss/datepicker/_theme.scss +6 -0
  42. package/scss/datepicker/_variables.scss +1 -0
  43. package/scss/daterangepicker/_index.scss +15 -0
  44. package/scss/daterangepicker/_layout.scss +3 -0
  45. package/scss/daterangepicker/_theme.scss +3 -0
  46. package/scss/daterangepicker/_variables.scss +1 -0
  47. package/scss/datetime/_layout.scss +2 -263
  48. package/scss/datetime/_theme.scss +0 -227
  49. package/scss/datetime/_variables.scss +27 -27
  50. package/scss/datetimepicker/_index.scss +15 -0
  51. package/scss/datetimepicker/_layout.scss +6 -0
  52. package/scss/datetimepicker/_theme.scss +6 -0
  53. package/scss/datetimepicker/_variables.scss +1 -0
  54. package/scss/dropdowngrid/_layout.scss +4 -0
  55. package/scss/dropdowngrid/_theme.scss +3 -0
  56. package/scss/dropdownlist/_layout.scss +3 -98
  57. package/scss/dropdownlist/_theme.scss +3 -91
  58. package/scss/dropdownlist/_variables.scss +9 -9
  59. package/scss/dropdowntree/_layout.scss +2 -25
  60. package/scss/dropdowntree/_theme.scss +2 -1
  61. package/scss/editor/_layout.scss +10 -48
  62. package/scss/editor/_variables.scss +2 -2
  63. package/scss/fab/_variables.scss +3 -3
  64. package/scss/filter/_layout.scss +0 -4
  65. package/scss/floating-label/_layout.scss +0 -3
  66. package/scss/floating-label/_theme.scss +0 -2
  67. package/scss/floating-label/_variables.scss +4 -4
  68. package/scss/forms/_layout.scss +8 -33
  69. package/scss/gantt/_layout.scss +3 -3
  70. package/scss/grid/_layout.scss +20 -65
  71. package/scss/grid/_theme.scss +2 -2
  72. package/scss/grid/_variables.scss +0 -2
  73. package/scss/index.scss +5 -0
  74. package/scss/input/_layout.scss +101 -89
  75. package/scss/input/_theme.scss +74 -16
  76. package/scss/input/_variables.scss +66 -67
  77. package/scss/map/_layout.scss +0 -21
  78. package/scss/map/_theme.scss +5 -5
  79. package/scss/map/_variables.scss +1 -1
  80. package/scss/maskedtextbox/_layout.scss +2 -46
  81. package/scss/maskedtextbox/_theme.scss +2 -20
  82. package/scss/multiselect/_layout.scss +15 -15
  83. package/scss/multiselect/_variables.scss +16 -16
  84. package/scss/numerictextbox/_layout.scss +2 -93
  85. package/scss/numerictextbox/_theme.scss +2 -95
  86. package/scss/numerictextbox/_variables.scss +1 -32
  87. package/scss/pager/_layout.scss +7 -12
  88. package/scss/pager/_variables.scss +1 -1
  89. package/scss/pdf-viewer/_layout.scss +0 -16
  90. package/scss/pdf-viewer/_variables.scss +1 -1
  91. package/scss/pivotgrid/_layout.scss +7 -7
  92. package/scss/pivotgrid/_theme.scss +13 -13
  93. package/scss/popup/_layout.scss +0 -30
  94. package/scss/popup/_theme.scss +4 -4
  95. package/scss/popup/_variables.scss +1 -1
  96. package/scss/radio/_layout.scss +78 -63
  97. package/scss/radio/_theme.scss +23 -23
  98. package/scss/radio/_variables.scss +154 -51
  99. package/scss/scheduler/_layout.scss +9 -228
  100. package/scss/scheduler/_theme.scss +5 -86
  101. package/scss/scrollview/_variables.scss +4 -4
  102. package/scss/searchbox/_layout.scss +1 -19
  103. package/scss/searchbox/_theme.scss +1 -46
  104. package/scss/searchbox/_variables.scss +0 -20
  105. package/scss/slider/_layout.scss +0 -19
  106. package/scss/slider/_theme.scss +0 -4
  107. package/scss/slider/_variables.scss +10 -10
  108. package/scss/spreadsheet/_layout.scss +4 -36
  109. package/scss/spreadsheet/_theme.scss +13 -13
  110. package/scss/switch/_index.scss +0 -2
  111. package/scss/switch/_layout.scss +95 -70
  112. package/scss/switch/_theme.scss +91 -93
  113. package/scss/switch/_variables.scss +193 -83
  114. package/scss/taskboard/_layout.scss +0 -4
  115. package/scss/taskboard/_variables.scss +1 -1
  116. package/scss/textarea/_layout.scss +1 -91
  117. package/scss/textarea/_theme.scss +1 -66
  118. package/scss/textarea/_variables.scss +0 -53
  119. package/scss/textbox/_layout.scss +1 -73
  120. package/scss/textbox/_theme.scss +1 -70
  121. package/scss/textbox/_variables.scss +1 -2
  122. package/scss/timeline/_variables.scss +7 -7
  123. package/scss/timepicker/_index.scss +15 -0
  124. package/scss/timepicker/_layout.scss +6 -0
  125. package/scss/timepicker/_theme.scss +6 -0
  126. package/scss/timepicker/_variables.scss +1 -0
  127. package/scss/toolbar/_layout.scss +2 -2
  128. package/scss/toolbar/_variables.scss +1 -1
  129. package/scss/treeview/_variables.scss +1 -1
  130. package/scss/window/_layout.scss +0 -11
@@ -1,17 +1,17 @@
1
1
  @include exports("grid/layout") {
2
2
 
3
- $filter-rows-span-size: calc( #{$line-height-em} + #{$input-padding-y * 2} + #{$input-border-width * 2}) !default;
3
+ $filter-rows-span-size: calc( #{$line-height-em} + #{$kendo-input-padding-y * 2} + #{$kendo-input-border-width * 2}) !default;
4
4
 
5
5
  $grid-group-dropclue-size: 6px;
6
6
  $grid-group-dropclue-line-size: $grid-group-dropclue-size / 3;
7
- $grid-group-dropclue-height: $button-calc-size !default;
7
+ $grid-group-dropclue-height: $kendo-button-calc-size !default;
8
8
  $grid-group-dropclue-top: 3px !default;
9
9
 
10
10
  $grid-row-inner-height: calc( #{$line-height-em} + #{$table-cell-padding-y * 2} );
11
11
  // $grid-row-half-inner-height: calc( #{$line-height-em / 2} + #{$table-cell-padding-y} );
12
12
 
13
13
  // be cautious when changing the next line; see https://github.com/MoOx/reduce-css-calc/issues/38
14
- $grid-command-cell-padding-y: calc( #{$table-cell-padding-y} - (#{$button-calc-size} - #{$line-height-em}) / 2 ) !default;
14
+ $grid-command-cell-padding-y: calc( #{$table-cell-padding-y} - (#{$kendo-button-calc-size} - #{$line-height-em}) / 2 ) !default;
15
15
 
16
16
  $grid-form-component-vertical-align: middle !default;
17
17
  $grid-hierarchy-col-width: ($icon-size * 2) !default;
@@ -27,7 +27,7 @@
27
27
  $grid-sorted-icon-spacing: calc( #{$padding-x} - 1px ) !default;
28
28
 
29
29
  // helper variables
30
- $grid-filterable-icon-spacing: calc( #{$button-calc-size} + #{$grid-header-menu-icon-spacing} );
30
+ $grid-filterable-icon-spacing: calc( #{$kendo-button-calc-size} + #{$grid-header-menu-icon-spacing} );
31
31
 
32
32
  .k-grid {
33
33
  border-width: $grid-border-width;
@@ -416,12 +416,6 @@
416
416
  }
417
417
 
418
418
 
419
- // Grid search
420
- .k-grid-search {
421
- width: $grid-search-width;
422
- }
423
-
424
-
425
419
  // Grouping header
426
420
  .k-grouping-header {
427
421
  padding: $grid-grouping-header-padding-y $grid-grouping-header-padding-x;
@@ -435,7 +429,7 @@
435
429
 
436
430
  &::before {
437
431
  content: "";
438
- height: $button-calc-size;
432
+ height: $kendo-button-calc-size;
439
433
  display: inline-block;
440
434
  vertical-align: middle;
441
435
  }
@@ -468,7 +462,7 @@
468
462
  .k-group-indicator {
469
463
  @include border-radius( $grid-group-indicator-border-radius );
470
464
  margin: 0;
471
- padding: $button-padding-y $button-padding-x;
465
+ padding: $kendo-button-padding-y $kendo-button-padding-x;
472
466
  border-width: 1px;
473
467
  border-style: solid;
474
468
  display: inline-flex;
@@ -639,7 +633,7 @@
639
633
  padding-right: $grid-filterable-icon-spacing;
640
634
 
641
635
  .k-ie & {
642
- padding-right: calc( #{ $button-calc-size } + #{ $grid-header-menu-icon-spacing });
636
+ padding-right: calc( #{ $kendo-button-calc-size } + #{ $grid-header-menu-icon-spacing });
643
637
  }
644
638
  }
645
639
 
@@ -649,9 +643,9 @@
649
643
 
650
644
  .k-grid-filter,
651
645
  .k-header-column-menu {
652
- padding: $button-padding-y;
653
- width: $button-calc-size;
654
- height: $button-calc-size;
646
+ padding: $kendo-button-padding-y;
647
+ width: $kendo-button-calc-size;
648
+ height: $kendo-button-calc-size;
655
649
  box-sizing: border-box;
656
650
  outline: 0;
657
651
  line-height: $form-line-height;
@@ -661,15 +655,15 @@
661
655
  justify-content: center;
662
656
  position: absolute;
663
657
  right: $grid-header-menu-icon-spacing;
664
- bottom: calc( #{ $grid-header-padding-y } + #{ $line-height-em / 2 } - #{ $button-inner-calc-size / 2 } );
658
+ bottom: calc( #{ $grid-header-padding-y } + #{ $line-height-em / 2 } - #{ $kendo-button-inner-calc-size / 2 } );
665
659
  z-index: 1;
666
660
 
667
661
  .k-ie & {
668
662
  position: static;
669
663
  float: right;
670
- margin-top: calc( (#{ $button-calc-size } - #{ $form-line-height * 1em}) / -2);
671
- margin-bottom: calc( (#{ $button-calc-size } - #{ $form-line-height * 1em}) / -2);
672
- margin-right: calc( -1 * #{ $button-calc-size });
664
+ margin-top: calc( (#{ $kendo-button-calc-size } - #{ $form-line-height * 1em}) / -2);
665
+ margin-bottom: calc( (#{ $kendo-button-calc-size } - #{ $form-line-height * 1em}) / -2);
666
+ margin-right: calc( -1 * #{ $kendo-button-calc-size });
673
667
  }
674
668
 
675
669
  &:hover {
@@ -781,30 +775,10 @@
781
775
  width: 100%;
782
776
  }
783
777
 
784
- > span {
785
- .k-button {
786
- visibility: visible;
787
- pointer-events: all;
788
- }
789
-
790
- .k-button,
791
- .k-dropdown-operator {
792
- margin-left: $grid-cell-padding-y / 2;
793
-
794
- .k-ie & {
795
- min-width: $button-inner-calc-size;
796
- }
797
- }
798
-
799
- .k-widget {
800
- width: auto;
801
- }
802
- }
803
-
804
778
  .k-filtercell-operator {
805
779
  > .k-button.k-clear-button-visible {
806
780
  visibility: visible;
807
- height: $button-calc-size;
781
+ height: $kendo-button-calc-size;
808
782
  }
809
783
 
810
784
  > .k-button:not(.k-clear-button-visible) {
@@ -817,17 +791,6 @@
817
791
  margin-left: $grid-cell-padding-y / 2;
818
792
  }
819
793
 
820
- .k-widget:not(.k-dropdown-operator),
821
- .k-filtercell-wrapper > .k-textbox {
822
- display: flex;
823
- flex: 1 1 auto;
824
- }
825
-
826
- .k-filtercell-wrapper > .k-textbox {
827
- width: 100%;
828
- min-width: 0;
829
- }
830
-
831
794
  }
832
795
 
833
796
  // Grid content
@@ -874,7 +837,6 @@
874
837
 
875
838
  > input:not([type="checkbox"]):not([type="radio"]),
876
839
  > select,
877
- > .k-textbox,
878
840
  > .k-widget:not(.k-switch) {
879
841
  width: 100%;
880
842
  vertical-align: $grid-form-component-vertical-align;
@@ -1122,12 +1084,12 @@
1122
1084
  }
1123
1085
 
1124
1086
  .k-header > .k-cell-inner {
1125
- margin: (-1 * $grid-header-padding-y) calc(-1 * calc( #{$button-calc-size} - #{$grid-cell-padding-x})) (-1 * $grid-header-padding-y) (-1 * $grid-cell-padding-x);
1087
+ margin: (-1 * $grid-header-padding-y) calc(-1 * calc( #{$kendo-button-calc-size} - #{$grid-cell-padding-x})) (-1 * $grid-header-padding-y) (-1 * $grid-cell-padding-x);
1126
1088
  }
1127
1089
 
1128
1090
  .k-filterable {
1129
1091
  > .k-cell-inner {
1130
- margin: (-1 * $grid-header-padding-y) calc(-1 * #{$button-calc-size}) (-1 * $grid-header-padding-y) (-1 * $grid-cell-padding-x);
1092
+ margin: (-1 * $grid-header-padding-y) calc(-1 * #{$kendo-button-calc-size}) (-1 * $grid-header-padding-y) (-1 * $grid-cell-padding-x);
1131
1093
 
1132
1094
  .k-link {
1133
1095
  padding-right: 0;
@@ -1307,9 +1269,7 @@
1307
1269
  }
1308
1270
 
1309
1271
  .k-widget,
1310
- .k-radio-list,
1311
- .k-textbox,
1312
- .k-searchbox {
1272
+ .k-radio-list {
1313
1273
  margin: $grid-filter-menu-item-spacing-y $grid-filter-menu-item-spacing-x 0;
1314
1274
  width: calc( 100% - ( 2 * #{$grid-filter-menu-item-spacing-x} ) );
1315
1275
  box-sizing: border-box;
@@ -1324,11 +1284,6 @@
1324
1284
  width: auto;
1325
1285
  display: inline-flex;
1326
1286
  }
1327
-
1328
- .k-switch {
1329
- width: $switch-size;
1330
- display: inline-flex;
1331
- }
1332
1287
  }
1333
1288
 
1334
1289
  .k-multicheck-wrap {
@@ -1466,7 +1421,7 @@
1466
1421
 
1467
1422
  .k-header > .k-cell-inner {
1468
1423
  margin-right: (-1 * $grid-cell-padding-x);
1469
- margin-left: calc(-1 * calc( #{$button-calc-size} - #{$grid-cell-padding-x}));
1424
+ margin-left: calc(-1 * calc( #{$kendo-button-calc-size} - #{$grid-cell-padding-x}));
1470
1425
 
1471
1426
  .k-sort-order {
1472
1427
  margin-right: $grid-sorting-index-spacing-x;
@@ -1477,7 +1432,7 @@
1477
1432
  .k-filterable {
1478
1433
  > .k-cell-inner {
1479
1434
  margin-right: (-1 * $grid-cell-padding-x);
1480
- margin-left: calc(-1 * #{$button-calc-size});
1435
+ margin-left: calc(-1 * #{$kendo-button-calc-size});
1481
1436
 
1482
1437
  .k-link {
1483
1438
  padding-right: $grid-header-padding-x;
@@ -188,8 +188,8 @@
188
188
  .k-header-column-menu,
189
189
  .k-hierarchy-cell .k-icon {
190
190
  &:hover {
191
- color: $button-hovered-text;
192
- background-color: $button-hovered-bg;
191
+ color: $kendo-button-hover-text;
192
+ background-color: $kendo-button-hover-bg;
193
193
  }
194
194
  &:focus,
195
195
  &.k-state-focus,
@@ -116,8 +116,6 @@ $grid-edit-cell-padding-y: 3px !default;
116
116
 
117
117
  $grid-command-cell-button-spacing: map-get( $spacing, 2 ) !default;
118
118
 
119
- $grid-search-width: $input-default-width !default;
120
-
121
119
  $grid-sticky-bg: $component-bg !default;
122
120
  $grid-sticky-text: $grid-text !default;
123
121
  $grid-sticky-border: rgba( black, .3 ) !default;
package/scss/index.scss CHANGED
@@ -63,6 +63,11 @@
63
63
  @import "coloreditor/_index.scss";
64
64
  @import "colorpicker/_index.scss";
65
65
  @import "combobox/_index.scss";
66
+ @import "dateinput/_index.scss";
67
+ @import "datepicker/_index.scss";
68
+ @import "timepicker/_index.scss";
69
+ @import "datetimepicker/_index.scss";
70
+ @import "daterangepicker/_index.scss";
66
71
  @import "datetime/_index.scss";
67
72
  @import "dropdowngrid/_index.scss";
68
73
  @import "dropdownlist/_index.scss";
@@ -1,24 +1,49 @@
1
1
  @include exports( "input/layout" ) {
2
2
 
3
3
  // Generic input
4
- .k-input {
4
+ .k-input,
5
+ .k-picker {
6
+ @include border-radius( $kendo-input-border-radius );
5
7
  margin: 0;
6
- padding: $input-padding-y $input-padding-x;
8
+ padding: 0;
7
9
  width: 100%;
8
10
  min-width: 0;
9
- height: $input-inner-calc-height;
10
- border: 0;
11
+ border-width: $kendo-input-border-width;
12
+ border-style: solid;
11
13
  outline: 0;
12
- box-sizing: border-box;
13
- // Targets https://github.com/telerik/kendo-react/issues/638.
14
+ font-family: $kendo-input-font-family;
15
+ font-size: $kendo-input-font-size;
16
+ line-height: $kendo-input-line-height;
14
17
  box-shadow: none;
18
+ display: inline-flex;
19
+ flex-flow: row nowrap;
20
+ align-items: stretch;
21
+ position: relative;
22
+ overflow: hidden;
23
+ text-overflow: ellipsis;
24
+ -webkit-appearance: none;
25
+ }
26
+ input.k-input {
27
+ padding: $kendo-input-padding-y $kendo-input-padding-x;
28
+ }
29
+ select.k-picker {
30
+ padding: $kendo-input-padding-y $kendo-input-padding-x;
31
+ appearance: auto;
32
+ }
33
+
34
+
35
+ // Input inner
36
+ .k-input-inner {
37
+ padding: $kendo-input-padding-y $kendo-input-padding-x;
38
+ width: 100%;
39
+ border: 0;
40
+ outline: 0;
15
41
  color: inherit;
16
42
  background: none;
17
43
  font: inherit;
18
- display: flex;
19
- flex-flow: row nowrap;
20
- align-items: center;
21
- flex: 0 1 auto;
44
+ flex: 1;
45
+ position: relative;
46
+ z-index: 1;
22
47
  overflow: hidden;
23
48
  text-overflow: ellipsis;
24
49
  -webkit-appearance: none;
@@ -28,12 +53,12 @@
28
53
 
29
54
  // Placeholder text
30
55
  &::placeholder {
31
- color: $input-placeholder-text;
32
- opacity: $input-placeholder-opacity;
56
+ color: $kendo-input-placeholder-text;
57
+ opacity: $kendo-input-placeholder-opacity;
33
58
  user-select: none;
34
59
  }
35
60
  &:-ms-input-placeholder {
36
- color: $input-placeholder-text;
61
+ color: $kendo-input-placeholder-text;
37
62
  }
38
63
 
39
64
  // Invalid
@@ -41,129 +66,116 @@
41
66
  box-shadow: none;
42
67
  }
43
68
  }
69
+ span.k-input-inner {
70
+ display: flex;
71
+ flex-flow: row nowrap;
72
+ align-items: center;
44
73
 
45
-
46
- // TODO: Deprecate
47
- // Input spacing
48
- .k-space-left,
49
- .k-space-right {
50
- > input {
51
- flex-grow: 1;
74
+ .k-value-icon {
75
+ flex: none;
52
76
  }
53
-
54
- > .k-icon {
55
- left: 3px;
56
- margin: 3px 6px;
77
+ .k-value-text {
78
+ flex: 1;
79
+ overflow: hidden;
80
+ text-overflow: ellipsis;
57
81
  }
58
82
  }
59
83
 
60
- .k-textbox.k-space-left {
61
- flex-direction: row-reverse;
62
- }
63
-
64
84
 
65
85
  // Input prefix and suffix
66
86
  .k-input-prefix,
67
87
  .k-input-suffix {
68
88
  display: flex;
89
+ flex-flow: row nowrap;
69
90
  align-items: center;
70
- flex-shrink: 0;
71
- height: $button-inner-calc-size;
91
+ flex: none;
72
92
 
73
93
  > * {
74
94
  flex-shrink: 0;
75
95
  }
76
-
77
- > .k-icon {
78
- width: $input-adornment-width;
79
- height: $input-adornment-height;
80
- display: inline-flex;
81
- flex-flow: row nowrap;
82
- align-items: center;
83
- justify-content: center;
84
- flex-shrink: 0;
85
- }
86
- > .k-clear-value {
87
- width: $input-adornment-width;
88
- height: $input-adornment-height;
89
- position: relative;
90
-
91
- &::after {
92
- content: "";
93
- opacity: 0;
94
- display: none;
95
- pointer-events: none;
96
- position: absolute;
97
- left: -1px;
98
- right: -1px;
99
- top: -1px;
100
- bottom: -1px;
101
- }
102
-
103
- &.k-state-focused::after,
104
- &:focus::after {
105
- display: block;
106
- }
107
- }
108
96
  }
109
97
 
110
- .k-input-separator {
111
- margin: 0;
112
- width: 0;
113
- height: $icon-size;
114
- border-width: 0 0 0 1px;
115
- border-style: solid;
116
- }
117
98
 
118
99
  // Input with icon styles
119
100
  .k-input-icon,
120
101
  .k-input-validation-icon,
121
102
  .k-input-loading-icon {
122
- width: $input-icon-width;
123
- height: $input-icon-height;
103
+ width: $kendo-input-icon-width;
104
+ height: $kendo-input-icon-height;
105
+ flex: none;
124
106
  display: inline-flex;
125
107
  flex-flow: row nowrap;
126
108
  align-items: center;
127
109
  justify-content: center;
128
- flex-shrink: 0;
129
110
  }
130
111
 
131
112
 
132
113
  // Clear value
133
114
  .k-clear-value {
134
- width: $input-icon-width;
135
- height: $input-icon-height;
136
- flex-shrink: 0;
115
+ width: $kendo-input-icon-width;
116
+ height: $kendo-input-icon-height;
117
+ outline: 0;
118
+ flex: none;
137
119
  display: inline-flex;
138
120
  align-items: center;
139
121
  justify-content: center;
140
- outline: 0;
141
122
  cursor: pointer;
142
123
  opacity: .5;
143
124
  }
144
125
  .k-clear-value:hover,
145
- .k-clear-value.k-state-hover {
126
+ .k-clear-value.k-hover {
146
127
  opacity: 1;
147
128
  }
148
129
 
149
130
 
150
- // Searchbar
151
- .k-searchbar {
152
- flex: 1 1 auto;
153
- display: flex;
154
- flex-flow: row nowrap;
155
- }
131
+ // Input button
132
+ .k-input-button {
133
+ width: if( $use-input-button-width, $kendo-input-button-width, auto );
134
+ border-width: 0;
135
+ flex: none;
136
+ aspect-ratio: auto;
137
+ color: inherit;
138
+ background: none;
139
+ box-shadow: none;
156
140
 
157
- .k-text-disabled {
158
- @include disabled( $disabled-styling );
141
+ > .k-button-icon {
142
+ min-width: auto !important; // sass-lint:disable-line no-important
143
+ min-height: auto !important; // sass-lint:disable-line no-important
144
+ }
145
+ }
146
+ .k-picker .k-input-button {
147
+ color: inherit;
148
+ background: none;
159
149
  }
160
150
 
161
- }
162
151
 
152
+ // Input spinner
153
+ .k-input-spinner {
154
+ width: if( $use-input-spinner-width, $kendo-input-spinner-width, auto );
155
+ flex: none;
156
+ display: flex;
157
+ flex-flow: column nowrap;
158
+
159
+ .k-spinner-increase,
160
+ .k-spinner-decrease {
161
+ border-width: 0;
162
+ flex: 1 1 50%;
163
+ aspect-ratio: auto;
164
+ box-shadow: none;
163
165
 
166
+ > .k-button-icon {
167
+ margin: -1em 0;
168
+ }
169
+ }
170
+ }
164
171
 
165
172
 
166
- @include exports("input/layout/jQuery-label") {
173
+ // Searchbar
174
+ .k-searchbar {
175
+ flex: 1 1 auto;
176
+ display: flex;
177
+ flex-flow: row nowrap;
178
+ }
167
179
 
168
180
  }
169
181
 
@@ -191,10 +203,10 @@
191
203
  }
192
204
 
193
205
 
194
- .k-textbox:-webkit-autofill {
206
+ .k-input:-webkit-autofill {
195
207
  animation-name: autoFillStart;
196
208
  }
197
- .k-textbox:not(:-webkit-autofill) {
209
+ .k-input:not(:-webkit-autofill) {
198
210
  animation-name: autoFillEnd;
199
211
  }
200
212
 
@@ -1,28 +1,86 @@
1
- @include exports("input/theme") {
1
+ @include exports( "input/theme" ) {
2
2
 
3
- .k-input-prefix,
4
- .k-input-suffix {
3
+ .k-input {
4
+ @include fill(
5
+ $kendo-input-text,
6
+ $kendo-input-bg,
7
+ $kendo-input-border
8
+ );
5
9
 
6
- > .k-icon {
7
- color: $input-icon-text;
8
- opacity: $input-icon-opacity;
10
+ // Hover
11
+ &:hover,
12
+ &.k-hover {
13
+ @include fill(
14
+ $kendo-input-hover-text,
15
+ $kendo-input-hover-bg,
16
+ $kendo-input-hover-border
17
+ );
9
18
  }
10
19
 
11
- .k-clear-value {
12
- color: $clear-button-text;
20
+ // Focus
21
+ &:focus,
22
+ &.k-focus {
23
+ @include fill (
24
+ $kendo-input-focus-text,
25
+ $kendo-input-focus-bg,
26
+ $kendo-input-focus-border
27
+ );
28
+ @include box-shadow( $kendo-input-focus-shadow );
13
29
  }
14
30
 
15
- > .k-clear-value {
16
- &.k-state-focused::after,
17
- &:focus::after {
18
- background-color: $input-clear-button-focused-background;
19
- opacity: $input-clear-button-focused-opacity;
31
+ // Invalid
32
+ &:invalid,
33
+ &.k-invalid {
34
+ @include fill( $border: $invalid-border );
35
+
36
+ &:focus,
37
+ &.k-focus {
38
+ @include box-shadow($invalid-shadow);
20
39
  }
21
40
  }
41
+
22
42
  }
23
43
 
24
- .k-input-separator {
25
- border-color: $input-separator-color;
26
- opacity: $input-separator-opacity;
44
+ .k-picker {
45
+ @include fill(
46
+ $kendo-button-text,
47
+ $kendo-button-bg,
48
+ $kendo-button-border,
49
+ $kendo-button-gradient
50
+ );
51
+
52
+ // Hover
53
+ &:hover,
54
+ &.k-hover {
55
+ @include fill(
56
+ $kendo-button-hover-text,
57
+ $kendo-button-hover-bg,
58
+ $kendo-button-hover-border,
59
+ $kendo-button-hover-gradient
60
+ );
61
+ }
62
+
63
+ // Focus
64
+ &:focus,
65
+ &.k-focus {
66
+ @include fill (
67
+ $kendo-button-focus-text,
68
+ $kendo-button-focus-bg,
69
+ $kendo-button-focus-border,
70
+ $kendo-button-focus-gradient
71
+ );
72
+ @include box-shadow( $kendo-button-focus-shadow );
73
+ }
74
+
75
+ // Invalid
76
+ &:invalid,
77
+ &.k-invalid {
78
+ @include fill( $border: $kendo-input-invalid-border );
79
+
80
+ &:focus,
81
+ &.k-focus {
82
+ @include box-shadow( $kendo-input-invalid-shadow );
83
+ }
84
+ }
27
85
  }
28
86
  }