@progress/kendo-theme-default 4.42.0 → 5.0.0-alpha.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.
Files changed (114) hide show
  1. package/dist/all.css +1770 -2399
  2. package/dist/all.scss +2180 -3833
  3. package/package.json +4 -4
  4. package/scss/_variables.scss +2 -0
  5. package/scss/action-buttons/_layout.scss +1 -0
  6. package/scss/adaptive/_layout.scss +0 -16
  7. package/scss/autocomplete/_layout.scss +1 -54
  8. package/scss/autocomplete/_theme.scss +2 -74
  9. package/scss/autocomplete/_variables.scss +12 -12
  10. package/scss/breadcrumb/_layout.scss +0 -5
  11. package/scss/button/_layout.scss +108 -116
  12. package/scss/button/_theme.scss +253 -264
  13. package/scss/button/_variables.scss +170 -130
  14. package/scss/button/index.md +3 -0
  15. package/scss/captcha/_layout.scss +0 -5
  16. package/scss/card/_layout.scss +4 -72
  17. package/scss/card/_theme.scss +2 -1
  18. package/scss/card/_variables.scss +1 -1
  19. package/scss/chat/_layout.scss +24 -20
  20. package/scss/chat/_variables.scss +8 -8
  21. package/scss/checkbox/_layout.scss +87 -91
  22. package/scss/checkbox/_theme.scss +34 -40
  23. package/scss/checkbox/_variables.scss +153 -56
  24. package/scss/colorgradient/_layout.scss +0 -4
  25. package/scss/colorpicker/_layout.scss +2 -130
  26. package/scss/colorpicker/_theme.scss +2 -64
  27. package/scss/colorpicker/_variables.scss +9 -9
  28. package/scss/combobox/_layout.scss +2 -83
  29. package/scss/combobox/_theme.scss +2 -123
  30. package/scss/combobox/_variables.scss +23 -23
  31. package/scss/common/_base.scss +1 -2
  32. package/scss/core/_normalize.scss +11 -0
  33. package/scss/core/mixins/_input-ripple.scss +1 -1
  34. package/scss/dataviz/_theme.scss +8 -8
  35. package/scss/dataviz/_variables.scss +6 -6
  36. package/scss/datetime/_layout.scss +25 -79
  37. package/scss/datetime/_variables.scss +27 -27
  38. package/scss/dropdowngrid/_layout.scss +4 -0
  39. package/scss/dropdowngrid/_theme.scss +3 -0
  40. package/scss/dropdownlist/_layout.scss +3 -110
  41. package/scss/dropdownlist/_theme.scss +3 -91
  42. package/scss/dropdownlist/_variables.scss +9 -9
  43. package/scss/dropdowntree/_layout.scss +2 -25
  44. package/scss/dropdowntree/_theme.scss +2 -1
  45. package/scss/editor/_layout.scss +94 -48
  46. package/scss/editor/_theme.scss +9 -0
  47. package/scss/editor/_variables.scss +10 -2
  48. package/scss/fab/_variables.scss +3 -3
  49. package/scss/filter/_layout.scss +0 -4
  50. package/scss/floating-label/_layout.scss +0 -3
  51. package/scss/floating-label/_theme.scss +0 -2
  52. package/scss/floating-label/_variables.scss +4 -4
  53. package/scss/forms/_layout.scss +10 -29
  54. package/scss/gantt/_layout.scss +3 -3
  55. package/scss/grid/_layout.scss +20 -65
  56. package/scss/grid/_theme.scss +2 -2
  57. package/scss/grid/_variables.scss +0 -2
  58. package/scss/input/_layout.scss +104 -105
  59. package/scss/input/_theme.scss +74 -16
  60. package/scss/input/_variables.scss +66 -67
  61. package/scss/map/_layout.scss +0 -21
  62. package/scss/map/_theme.scss +5 -5
  63. package/scss/map/_variables.scss +1 -1
  64. package/scss/maskedtextbox/_layout.scss +2 -46
  65. package/scss/maskedtextbox/_theme.scss +2 -20
  66. package/scss/menu/_layout.scss +0 -1
  67. package/scss/multiselect/_layout.scss +15 -34
  68. package/scss/multiselect/_variables.scss +16 -16
  69. package/scss/no-flexbox.scss +0 -2
  70. package/scss/numerictextbox/_layout.scss +2 -104
  71. package/scss/numerictextbox/_theme.scss +2 -95
  72. package/scss/numerictextbox/_variables.scss +1 -32
  73. package/scss/pager/_layout.scss +7 -12
  74. package/scss/pager/_variables.scss +1 -1
  75. package/scss/pdf-viewer/_layout.scss +0 -16
  76. package/scss/pdf-viewer/_variables.scss +1 -1
  77. package/scss/pivotgrid/_layout.scss +28 -7
  78. package/scss/pivotgrid/_theme.scss +13 -13
  79. package/scss/popup/_layout.scss +0 -34
  80. package/scss/popup/_theme.scss +4 -4
  81. package/scss/popup/_variables.scss +1 -1
  82. package/scss/radio/_layout.scss +78 -63
  83. package/scss/radio/_theme.scss +23 -23
  84. package/scss/radio/_variables.scss +154 -51
  85. package/scss/scheduler/_layout.scss +9 -228
  86. package/scss/scheduler/_theme.scss +5 -86
  87. package/scss/scrollview/_variables.scss +4 -4
  88. package/scss/searchbox/_layout.scss +1 -18
  89. package/scss/searchbox/_theme.scss +1 -46
  90. package/scss/searchbox/_variables.scss +0 -20
  91. package/scss/slider/_layout.scss +0 -19
  92. package/scss/slider/_theme.scss +0 -4
  93. package/scss/slider/_variables.scss +10 -10
  94. package/scss/spreadsheet/_layout.scss +2 -38
  95. package/scss/spreadsheet/_theme.scss +13 -13
  96. package/scss/switch/_index.scss +0 -2
  97. package/scss/switch/_layout.scss +91 -92
  98. package/scss/switch/_theme.scss +91 -93
  99. package/scss/switch/_variables.scss +193 -83
  100. package/scss/taskboard/_layout.scss +0 -4
  101. package/scss/taskboard/_variables.scss +1 -1
  102. package/scss/textarea/_layout.scss +1 -91
  103. package/scss/textarea/_theme.scss +1 -66
  104. package/scss/textarea/_variables.scss +0 -53
  105. package/scss/textbox/_layout.scss +1 -73
  106. package/scss/textbox/_theme.scss +1 -70
  107. package/scss/textbox/_variables.scss +1 -2
  108. package/scss/timeline/_variables.scss +7 -7
  109. package/scss/toolbar/_layout.scss +2 -2
  110. package/scss/toolbar/_variables.scss +1 -1
  111. package/scss/treeview/_variables.scss +1 -1
  112. package/scss/upload/_layout.scss +2 -2
  113. package/scss/utils/_border.scss +5 -0
  114. package/scss/window/_layout.scss +1 -11
@@ -3,8 +3,6 @@
3
3
 
4
4
  // Dependencies
5
5
  @import "../common/_index.scss";
6
- @import "../button/_variables.scss";
7
- @import "../input/_variables.scss";
8
6
 
9
7
 
10
8
  // Component
@@ -1,138 +1,137 @@
1
1
  @include exports("switch/layout") {
2
2
 
3
3
  .k-switch {
4
- @include border-radius( $switch-border-radius );
5
- cursor: pointer;
6
- width: $switch-size;
7
- box-sizing: border-box;
4
+ font-family: $kendo-switch-font-family;
5
+ line-height: $kendo-switch-line-height;
8
6
  outline: 0;
9
7
  display: inline-flex;
10
8
  align-items: center;
11
9
  vertical-align: middle;
12
- font-family: $font-family;
13
- font-size: $font-size-xs;
14
- line-height: $line-height;
10
+ position: relative;
11
+ cursor: pointer;
15
12
  user-select: none;
16
- text-align: left;
17
13
  -webkit-touch-callout: none;
18
14
  -webkit-tap-highlight-color: $rgba-transparent;
19
-
20
- [type="checkbox"] {
21
- display: none;
22
- }
23
-
24
- &[aria-readonly="true"] {
25
- pointer-events: none;
26
- }
27
15
  }
28
16
 
29
- .k-switch,
30
- .k-switch-container,
31
- .k-switch-handle {
32
- box-sizing: border-box;
17
+
18
+ // Readonly
19
+ .k-switch.k-readonly {
20
+ pointer-events: none;
33
21
  }
34
22
 
35
23
 
36
24
  // Switch track
37
- .k-switch-container {
38
- @include border-radius( $switch-border-radius );
39
- padding: $switch-container-padding-y $switch-container-padding-x;
40
- width: $switch-size;
41
- height: $switch-track-size;
42
- border-width: $switch-container-border-width;
43
- border-style: if( $switch-container-border-width == null, null, solid );
25
+ .k-switch-track {
26
+ border-width: $kendo-switch-track-border-width;
27
+ border-style: if( $kendo-switch-track-border-width == null, null, solid );
28
+ outline: 0;
29
+ display: flex;
30
+ flex-flow: row nowrap;
44
31
  flex: 1 0 auto;
45
32
  position: relative;
46
- outline: 0;
47
- transition: background-color 200ms ease-out 0s;
33
+ transition: background-color 200ms ease-in-out;
48
34
  }
49
35
 
50
36
 
51
37
  // Switch thumb
52
- .k-switch-handle {
53
- @include border-radius( $switch-handle-border-radius );
54
- width: $switch-handle-size;
55
- height: $switch-handle-size;
56
- border-width: $switch-handle-border-width;
57
- border-style: if( $switch-handle-border-width == null, null, solid );
58
- display: inline-block;
59
- vertical-align: middle;
60
- position: relative;
61
- left: 0;
62
- transition: left 200ms ease-out 0s;
63
-
64
- @if $switch-track-size {
65
- position: absolute;
66
- top: 50%;
67
- transform: translateY( -50% );
68
- }
69
-
38
+ .k-switch-thumb-wrap {
39
+ width: 0;
40
+ height: 0;
41
+ overflow: visible;
42
+ position: absolute;
43
+ transition: left 200ms ease-in-out;
44
+ top: 50%;
45
+ }
46
+ .k-switch-thumb {
47
+ border-width: $kendo-switch-thumb-border-width;
48
+ border-style: if( $kendo-switch-thumb-border-width == null, null, solid );
49
+ display: block;
50
+ position: absolute;
51
+ transform: translate( -50%, -50% );
70
52
  }
71
- .k-switch-on .k-switch-handle { left: $switch-thumb-end-x; }
72
- .k-switch-off .k-switch-handle { left: $switch-thumb-start-x; }
73
53
 
74
54
 
75
55
  // Switch label
76
56
  .k-switch-label-on,
77
57
  .k-switch-label-off {
78
- display: $switch-label-display;
79
- max-width: $switch-label-width;
80
- text-transform: $switch-label-text-transform;
81
- line-height: $switch-handle-size;
58
+ text-transform: $kendo-switch-label-text-transform;
59
+ display: $kendo-switch-label-display;
82
60
  position: absolute;
83
61
  top: 50%;
84
- transform: translateY(-50%);
62
+ transform: translateY( -50% );
85
63
  overflow: hidden;
86
64
  }
87
- .k-switch-label-on { left: $switch-label-offset; }
88
- .k-switch-label-off { right: $switch-label-offset; }
89
-
90
65
 
91
- // RTL
92
- .k-rtl .k-switch,
93
- .k-switch[dir = "rtl"] {
94
- &.k-switch-on .k-switch-handle {
95
- left: $switch-thumb-start-x;
96
- }
97
66
 
98
- &.k-switch-off .k-switch-handle {
99
- left: $switch-thumb-end-x;
67
+ // Switch sizes
68
+ @each $size, $size-props in $kendo-switch-sizes {
69
+
70
+ $_font-size: map-get( $size-props, font-size );
71
+ $_track-width: map-get( $size-props, track-width );
72
+ $_track-height: map-get( $size-props, track-height );
73
+ $_thumb-width: map-get( $size-props, thumb-width );
74
+ $_thumb-height: map-get( $size-props, thumb-height );
75
+ $_thumb-offset: map-get( $size-props, thumb-offset );
76
+ $_label-offset: map-get( $size-props, label-offset );
77
+
78
+ .k-switch-#{$size} {
79
+ width: $_track-width;
80
+ height: $_track-height;
81
+ font-size: $_font-size;
82
+
83
+ .k-switch-track {
84
+ width: $_track-width;
85
+ height: $_track-height;
86
+ }
87
+
88
+ .k-switch-label-on { left: $_label-offset; }
89
+ .k-switch-label-off { right: $_label-offset; }
90
+
91
+ .k-switch-thumb {
92
+ width: $_thumb-width;
93
+ height: $_thumb-height;
94
+ }
95
+
96
+ &.k-switch-on .k-switch-thumb-wrap {
97
+ left: calc( 100% - #{$_thumb-width / 2} - #{$_thumb-offset} );
98
+ }
99
+ &.k-switch-off .k-switch-thumb-wrap {
100
+ left: calc( #{$_thumb-width / 2} + #{$_thumb-offset} );
101
+ }
100
102
  }
101
103
 
102
- .k-switch-label-on {
103
- left: initial;
104
- right: $switch-label-offset;
105
- }
106
- .k-switch-label-off {
107
- left: $switch-label-offset;
108
- right: initial;
104
+ .k-switch-#{$size}[dir="rtl"],
105
+ [dir="rtl"] .k-switch-#{$size} {
106
+
107
+ .k-switch-label-on {
108
+ left: auto;
109
+ right: $_label-offset;
110
+ }
111
+ .k-switch-label-off {
112
+ right: auto;
113
+ left: $_label-offset;
114
+ }
115
+
116
+ &.k-switch-on .k-switch-thumb-wrap {
117
+ left: calc( #{$_thumb-width / 2} + #{$_thumb-offset} );
118
+ }
119
+ &.k-switch-off .k-switch-thumb-wrap {
120
+ left: calc( 100% - #{$_thumb-width / 2} - #{$_thumb-offset} );
121
+ }
109
122
  }
110
123
  }
111
124
 
112
- }
113
-
114
-
115
125
 
126
+ // RTL
127
+ .k-switch[dir="rtl"],
128
+ [dir="rtl"] .k-switch {
116
129
 
117
- @include exports( "switch/layout/legacy" ) {
118
-
119
- .k-ie9 {
120
-
121
- // Switch
122
- .k-switch {
123
- display: inline-block;
124
- }
125
-
126
- // Switch track
127
- .k-switch-container {
128
- display: block;
129
- }
130
-
131
- // Switch thumb
132
- .k-switch-handle {
133
- display: block;
130
+ .k-switch-thumb {
131
+ transform: translate( 50%, -50% );
134
132
  }
135
133
 
136
134
  }
137
135
 
138
136
  }
137
+
@@ -1,158 +1,156 @@
1
1
  @include exports("switch/theme") {
2
2
 
3
3
  // Switch
4
- .k-switch {
4
+ .k-switch {}
5
5
 
6
- &:hover,
7
- &.k-state-hover {
8
6
 
9
- .k-switch-container {
10
- @include box-shadow( $switch-container-hovered-shadow );
11
- }
12
- }
13
-
14
- &:focus,
15
- &.k-state-focused {
16
-
17
- .k-switch-container {
18
- outline: none;
19
- @include box-shadow( $switch-container-focused-shadow );
20
- }
21
- }
22
- }
23
-
24
-
25
- // Switch track
26
- .k-switch-container {
27
- @include box-shadow( $switch-container-shadow );
28
- }
29
-
30
-
31
- // Switch ON
32
- .k-switch-on {
7
+ // Switch OFF
8
+ .k-switch-off {
33
9
 
34
10
  // Normal state
35
- .k-switch-container {
11
+ .k-switch-track {
36
12
  @include fill(
37
- $switch-on-text,
38
- $switch-on-bg,
39
- $switch-on-border,
40
- $switch-on-gradient
13
+ $kendo-switch-off-track-text,
14
+ $kendo-switch-off-track-bg,
15
+ $kendo-switch-off-track-border,
16
+ $kendo-switch-off-track-gradient
41
17
  );
42
18
  }
43
- .k-switch-handle {
19
+ .k-switch-thumb {
44
20
  @include fill(
45
- $switch-on-handle-text,
46
- $switch-on-handle-bg,
47
- $switch-on-handle-border,
48
- $switch-on-handle-gradient
21
+ $kendo-switch-off-thumb-text,
22
+ $kendo-switch-off-thumb-bg,
23
+ $kendo-switch-off-thumb-border,
24
+ $kendo-switch-off-thumb-gradient
49
25
  );
50
- @include box-shadow( $switch-on-handle-shadow );
51
26
  }
52
27
 
53
- // Hover state
28
+ // Hover
54
29
  &:hover,
55
- &.k-state-hover {
56
- .k-switch-container {
30
+ &.k-hover {
31
+ .k-switch-track {
57
32
  @include fill(
58
- $switch-on-hovered-text,
59
- $switch-on-hovered-bg,
60
- $switch-on-hovered-border,
61
- $switch-on-hovered-gradient
33
+ $kendo-switch-off-track-hover-text,
34
+ $kendo-switch-off-track-hover-bg,
35
+ $kendo-switch-off-track-hover-border,
36
+ $kendo-switch-off-track-hover-gradient
62
37
  );
63
38
  }
64
39
 
65
- .k-switch-handle {
40
+ .k-switch-thumb {
66
41
  @include fill(
67
- $switch-on-handle-hovered-text,
68
- $switch-on-handle-hovered-bg,
69
- $switch-on-handle-hovered-border,
70
- $switch-on-handle-hovered-gradient
42
+ $kendo-switch-off-thumb-hover-text,
43
+ $kendo-switch-off-thumb-hover-bg,
44
+ $kendo-switch-off-thumb-hover-border,
45
+ $kendo-switch-off-thumb-hover-gradient
71
46
  );
72
47
  }
73
48
  }
74
49
 
75
- // Focus state
50
+ // Focus
76
51
  &:focus,
77
- &.k-state-focused {
78
- @include box-shadow( $switch-on-focused-shadow );
52
+ &.k-focus {
53
+ .k-switch-track {
54
+ @include fill(
55
+ $kendo-switch-off-track-focus-text,
56
+ $kendo-switch-off-track-focus-bg,
57
+ $kendo-switch-off-track-focus-border,
58
+ $kendo-switch-off-track-focus-gradient
59
+ );
60
+ outline: $kendo-switch-off-track-focus-ring;
61
+ }
62
+ }
79
63
 
80
- .k-switch-container {
64
+ // Disabled
65
+ &:disabled,
66
+ &.k-disabled {
67
+ .k-switch-track {
81
68
  @include fill(
82
- $switch-on-focused-text,
83
- $switch-on-focused-bg,
84
- $switch-on-focused-border,
85
- $switch-on-focused-gradient
69
+ $kendo-switch-off-track-disabled-text,
70
+ $kendo-switch-off-track-disabled-bg,
71
+ $kendo-switch-off-track-disabled-border,
72
+ $kendo-switch-off-track-disabled-gradient
86
73
  );
87
74
  }
88
75
  }
89
76
 
90
- .k-switch-label-off {
77
+ .k-switch-label-on {
91
78
  color: transparent;
92
79
  }
93
80
  }
94
81
 
95
82
 
96
- // Switch OFF
97
- .k-switch-off {
83
+ // Switch ON
84
+ .k-switch-on {
98
85
 
99
86
  // Normal state
100
- .k-switch-container {
87
+ .k-switch-track {
101
88
  @include fill(
102
- $switch-off-text,
103
- $switch-off-bg,
104
- $switch-off-border,
105
- $switch-off-gradient
89
+ $kendo-switch-on-track-text,
90
+ $kendo-switch-on-track-bg,
91
+ $kendo-switch-on-track-border,
92
+ $kendo-switch-on-track-gradient
106
93
  );
107
94
  }
108
- .k-switch-handle {
95
+ .k-switch-thumb {
109
96
  @include fill(
110
- $switch-off-handle-text,
111
- $switch-off-handle-bg,
112
- $switch-off-handle-border,
113
- $switch-off-handle-gradient
97
+ $kendo-switch-on-thumb-text,
98
+ $kendo-switch-on-thumb-bg,
99
+ $kendo-switch-on-thumb-border,
100
+ $kendo-switch-on-thumb-gradient
114
101
  );
115
- @include box-shadow( $switch-off-handle-shadow );
116
102
  }
117
103
 
118
- // Hover state
104
+ // Hover
119
105
  &:hover,
120
- &.k-state-hover {
121
- .k-switch-container {
106
+ &.k-hover {
107
+ .k-switch-track {
122
108
  @include fill(
123
- $switch-off-hovered-text,
124
- $switch-off-hovered-bg,
125
- $switch-off-hovered-border,
126
- $switch-off-hovered-gradient
109
+ $kendo-switch-on-track-hover-text,
110
+ $kendo-switch-on-track-hover-bg,
111
+ $kendo-switch-on-track-hover-border,
112
+ $kendo-switch-on-track-hover-gradient
127
113
  );
128
114
  }
129
115
 
130
- .k-switch-handle {
116
+ .k-switch-thumb {
131
117
  @include fill(
132
- $switch-off-handle-hovered-text,
133
- $switch-off-handle-hovered-bg,
134
- $switch-off-handle-hovered-border,
135
- $switch-off-handle-hovered-gradient
118
+ $kendo-switch-on-thumb-hover-text,
119
+ $kendo-switch-on-thumb-hover-bg,
120
+ $kendo-switch-on-thumb-hover-border,
121
+ $kendo-switch-on-thumb-hover-gradient
136
122
  );
137
123
  }
138
124
  }
139
125
 
140
- // Focus state
126
+ // Focus
141
127
  &:focus,
142
- &.k-state-focused {
143
- @include box-shadow( $switch-off-focused-shadow );
128
+ &.k-focus {
129
+ .k-switch-track {
130
+ @include fill(
131
+ $kendo-switch-on-track-focus-text,
132
+ $kendo-switch-on-track-focus-bg,
133
+ $kendo-switch-on-track-focus-border,
134
+ $kendo-switch-on-track-focus-gradient
135
+ );
136
+ outline: $kendo-switch-on-track-focus-ring;
137
+ }
138
+ }
144
139
 
145
- .k-switch-container {
140
+ // Disabled
141
+ &:disabled,
142
+ &.k-disabled {
143
+ .k-switch-track {
146
144
  @include fill(
147
- $switch-off-focused-text,
148
- $switch-off-focused-bg,
149
- $switch-off-focused-border,
150
- $switch-off-focused-gradient
145
+ $kendo-switch-on-track-disabled-text,
146
+ $kendo-switch-on-track-disabled-bg,
147
+ $kendo-switch-on-track-disabled-border,
148
+ $kendo-switch-on-track-disabled-gradient
151
149
  );
152
150
  }
153
151
  }
154
152
 
155
- .k-switch-label-on {
153
+ .k-switch-label-off {
156
154
  color: transparent;
157
155
  }
158
156
  }