@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,140 +1,270 @@
1
1
  @include exports( "button/theme" ) {
2
2
 
3
- // Default button
4
- .k-button,
5
- .k-button-secondary {
6
- @include fill(
7
- $button-text,
8
- $button-bg,
9
- $button-border,
10
- $button-gradient
11
- );
12
- @include box-shadow( $button-shadow );
13
-
14
- // Hover state
15
- &:hover,
16
- &.k-state-hover {
17
- @include fill(
18
- $button-hovered-text,
19
- $button-hovered-bg,
20
- $button-hovered-border,
21
- $button-hovered-gradient
22
- );
23
- @include box-shadow( $button-hovered-shadow );
24
- }
3
+ // Solid Buttons
4
+ @each $name, $color in $kendo-button-theme-colors {
5
+ .k-button-solid-#{$name} {
6
+ @if ($name == "base") {
7
+ @include fill(
8
+ $kendo-button-text,
9
+ $kendo-button-bg,
10
+ $kendo-button-border,
11
+ $kendo-button-gradient
12
+ );
13
+ @include box-shadow( $kendo-button-shadow );
14
+
15
+ // Hover state
16
+ &:hover,
17
+ &.k-hover {
18
+ @include fill(
19
+ $kendo-button-hover-text,
20
+ $kendo-button-hover-bg,
21
+ $kendo-button-hover-border,
22
+ $kendo-button-hover-gradient
23
+ );
24
+ @include box-shadow( $kendo-button-hover-shadow );
25
+ }
26
+
27
+ // Focus state
28
+ &:focus,
29
+ &.k-focus {
30
+ @include box-shadow( $kendo-button-focus-shadow );
31
+ }
32
+
33
+ // Active state
34
+ &:active,
35
+ &.k-active {
36
+ @include fill(
37
+ $kendo-button-active-text,
38
+ $kendo-button-active-bg,
39
+ $kendo-button-active-border,
40
+ $kendo-button-active-gradient
41
+ );
42
+ @include box-shadow( $kendo-button-active-shadow );
43
+ }
44
+
45
+ // Selected state
46
+ &.k-selected {
47
+ @include fill(
48
+ $kendo-button-selected-text,
49
+ $kendo-button-selected-bg,
50
+ $kendo-button-selected-border,
51
+ $kendo-button-selected-gradient
52
+ );
53
+ @include box-shadow( $kendo-button-selected-shadow );
54
+ }
55
+ } @else {
56
+ color: contrast-wcag( $color );
57
+ background-color: $color;
58
+ border-color: $color;
59
+ background-image: linear-gradient( rgba( black, 0 ), rgba( black, .04 ) );
60
+
61
+ // Hover state
62
+ &:hover,
63
+ &.k-hover {
64
+ background-color: try-shade( $color, .5 );
65
+ border-color: $color;
66
+ }
67
+
68
+ // Focus state
69
+ &:focus,
70
+ &.k-focus {
71
+ box-shadow: 0 0 0 2px rgba( $color, .3 );
72
+ }
73
+
74
+ // Active state
75
+ &:active,
76
+ &.k-active {
77
+ background-color: try-shade( $color, 1.5 );
78
+ border-color: try-shade( $color, 1.5 );
79
+ }
80
+
81
+ // Selected
82
+ &.k-selected {
83
+ background-color: try-shade( $color, 1.5 );
84
+ border-color: try-shade( $color, 1.5 );
85
+ }
86
+ }
25
87
 
26
- // Focused state
27
- &:focus,
28
- &.k-state-focus,
29
- &.k-state-focused {
30
- @include box-shadow( $button-focused-shadow );
88
+ // Disabled state
89
+ &:disabled,
90
+ &.k-disabled {
91
+ @include fill(
92
+ $kendo-button-disabled-text,
93
+ $kendo-button-disabled-bg,
94
+ $kendo-button-disabled-border,
95
+ $kendo-button-disabled-gradient
96
+ );
97
+ @include box-shadow( $kendo-button-disabled-shadow );
98
+ }
31
99
  }
100
+ }
32
101
 
33
- // Active state
34
- &:active,
35
- &.k-state-active {
36
- @include fill(
37
- $button-active-text,
38
- $button-active-bg,
39
- $button-active-border,
40
- $button-active-gradient
41
- );
42
- @include box-shadow( $button-active-shadow );
43
- }
44
102
 
45
- // Selected state
46
- &.k-state-selected {
47
- @include fill(
48
- $button-selected-text,
49
- $button-selected-bg,
50
- $button-selected-border,
51
- $button-selected-gradient
52
- );
53
- @include box-shadow( $button-selected-shadow );
54
- }
103
+ // Outline Buttons
104
+ .k-button-outline {
105
+ @include box-shadow( none );
106
+ border-color: currentColor;
107
+ background: none;
108
+ }
55
109
 
56
- // Disabled state
57
- &:disabled,
58
- &.k-state-disabled {
59
- @include fill(
60
- $button-disabled-text,
61
- $button-disabled-bg,
62
- $button-disabled-border,
63
- $button-disabled-gradient
64
- );
65
- @include box-shadow( $button-disabled-shadow );
66
- }
110
+ @each $name, $color in $kendo-button-theme-colors {
111
+ .k-button-outline-#{$name} {
112
+ @if ($name == "base") {
113
+ color: $kendo-button-text;
114
+
115
+ // Hover state
116
+ &:hover,
117
+ &.k-hover {
118
+ @include fill(
119
+ contrast-wcag( $kendo-button-text ),
120
+ $kendo-button-text,
121
+ $kendo-button-text
122
+ );
123
+ }
124
+
125
+ // Focus state
126
+ &:focus,
127
+ &.k-focus {
128
+ @include box-shadow( $kendo-button-focus-shadow );
129
+ }
130
+
131
+ // Active state
132
+ &:active,
133
+ &.k-active {
134
+ @include fill(
135
+ contrast-wcag( $kendo-button-text ),
136
+ $kendo-button-text,
137
+ $kendo-button-text
138
+ );
139
+ }
140
+
141
+ // Selected state
142
+ &.k-selected {
143
+ @include fill(
144
+ contrast-wcag( $kendo-button-text ),
145
+ $kendo-button-text,
146
+ $kendo-button-text
147
+ );
148
+ }
149
+ } @else {
150
+ color: $color;
151
+
152
+ // Hover state
153
+ &:hover,
154
+ &.k-hover {
155
+ @include fill(
156
+ contrast-wcag( $color ),
157
+ $color,
158
+ $color
159
+ );
160
+ }
161
+
162
+ // Focus state
163
+ &:focus,
164
+ &.k-focus {
165
+ box-shadow: 0 0 0 2px rgba( $color, .3 );
166
+ }
167
+
168
+ // Active state
169
+ &:active,
170
+ &.k-active {
171
+ @include fill(
172
+ contrast-wcag( $color ),
173
+ $color,
174
+ $color
175
+ );
176
+ }
177
+
178
+ // Selected
179
+ &.k-selected {
180
+ @include fill(
181
+ contrast-wcag( $color ),
182
+ $color,
183
+ $color
184
+ );
185
+ }
186
+ }
67
187
 
188
+ // Disabled state
189
+ &:disabled,
190
+ &.k-disabled {
191
+ @include fill(
192
+ $kendo-button-disabled-text,
193
+ $kendo-button-disabled-bg,
194
+ $kendo-button-disabled-border,
195
+ $kendo-button-disabled-gradient
196
+ );
197
+ @include box-shadow( $kendo-button-disabled-shadow );
198
+ }
199
+ }
68
200
  }
69
201
 
70
202
 
71
- // Primary button
72
- .k-button-primary {
73
- @include fill(
74
- $primary-button-text,
75
- $primary-button-bg,
76
- $primary-button-border,
77
- $primary-button-gradient
78
- );
79
- @include box-shadow( $primary-button-shadow );
80
-
81
- // Hovoer state
82
- &:hover,
83
- &.k-state-hover {
84
- @include fill(
85
- $primary-button-hovered-text,
86
- $primary-button-hovered-bg,
87
- $primary-button-hovered-border,
88
- $primary-button-hovered-gradient
89
- );
90
- @include box-shadow( $primary-button-hovered-shadow );
91
- }
203
+ // Flat Buttons
204
+ .k-button-flat {
205
+ @include box-shadow( none );
206
+ border-color: transparent;
207
+ background: none;
92
208
 
93
- // Focused state
94
- &:focus,
95
- &.k-state-focus,
96
- &.k-state-focused {
97
- @include box-shadow( $primary-button-focused-shadow );
209
+ // Focus ring
210
+ &::after {
211
+ box-shadow: inset 0 0 0 2px currentColor;
98
212
  }
213
+ }
214
+ @each $name, $color in $kendo-button-theme-colors {
215
+ .k-button-flat-#{$name} {
216
+ @if ($name == "base") {
217
+ color: inherit;
218
+ } @else {
219
+ color: $color;
220
+ }
99
221
 
100
- // Active state
101
- &:active,
102
- &.k-state-active {
103
- @include fill(
104
- $primary-button-active-text,
105
- $primary-button-active-bg,
106
- $primary-button-active-border,
107
- $primary-button-active-gradient
108
- );
109
- @include box-shadow( $primary-button-active-shadow );
222
+ // Disabled state
223
+ &:disabled,
224
+ &.k-disabled {
225
+ @include fill(
226
+ $kendo-button-disabled-text,
227
+ $kendo-button-disabled-bg,
228
+ $kendo-button-disabled-border,
229
+ $kendo-button-disabled-gradient
230
+ );
231
+ @include box-shadow( $kendo-button-disabled-shadow );
232
+ }
110
233
  }
234
+ }
111
235
 
112
- // Selected state
113
- &.k-state-selected {
114
- @include fill(
115
- $primary-button-selected-text,
116
- $primary-button-selected-bg,
117
- $primary-button-selected-border,
118
- $primary-button-selected-gradient
119
- );
120
- @include box-shadow( $primary-button-selected-shadow );
121
- }
122
236
 
123
- // Disabled state
124
- &:disabled,
125
- &.k-state-disabled {
126
- @include fill(
127
- $button-disabled-text,
128
- $button-disabled-bg,
129
- $button-disabled-border,
130
- $button-disabled-gradient
131
- );
132
- @include box-shadow( $button-disabled-shadow );
133
- }
237
+ // Link Buttons
238
+ .k-button-link {
239
+ @include box-shadow( none );
240
+ border-color: transparent;
241
+ background: none;
134
242
 
243
+ // Focus ring
244
+ &::after {
245
+ box-shadow: inset 0 0 0 2px currentColor;
246
+ }
135
247
  }
136
- .k-button.k-primary {
137
- @extend .k-button-primary;
248
+ @each $name, $color in $kendo-button-theme-colors {
249
+ .k-button-link-#{$name} {
250
+ @if ($name == "base") {
251
+ color: inherit;
252
+ } @else {
253
+ color: $color;
254
+ }
255
+
256
+ // Disabled state
257
+ &:disabled,
258
+ &.k-disabled {
259
+ @include fill(
260
+ $kendo-button-disabled-text,
261
+ $kendo-button-disabled-bg,
262
+ $kendo-button-disabled-border,
263
+ $kendo-button-disabled-gradient
264
+ );
265
+ @include box-shadow( $kendo-button-disabled-shadow );
266
+ }
267
+ }
138
268
  }
139
269
 
140
270
 
@@ -146,12 +276,10 @@
146
276
  .k-button-group {
147
277
 
148
278
  .k-button:focus,
149
- .k-button.k-state-focus,
150
- .k-button.k-state-focused,
279
+ .k-button.k-focus,
151
280
  .k-button-outline:focus,
152
- .k-button-outline.k-state-focus,
153
- .k-button-outline.k-state-focused {
154
- @include box-shadow( $button-group-focus-shadow );
281
+ .k-button-outline.k-focus {
282
+ @include box-shadow( $kendo-button-group-focus-shadow );
155
283
  }
156
284
 
157
285
  }
@@ -159,147 +287,8 @@
159
287
 
160
288
  // Split button
161
289
  .k-split-button:focus,
162
- .k-split-button.k-state-focus,
163
- .k-split-button.k-state-focused {
164
- @include box-shadow( $button-focused-shadow );
165
- }
166
-
167
- }
168
-
169
-
170
-
171
-
172
- @include exports( "outline-button/theme" ) {
173
-
174
- // Outline button
175
- .k-button-outline {
176
- @include box-shadow( none );
177
- border-color: currentColor;
178
- color: $button-text;
179
- background: none;
180
-
181
- // Hover state
182
- &:hover,
183
- &.k-state-hover {
184
- @include fill( contrast-wcag( $button-text ), $button-text, $button-text, none );
185
- }
186
-
187
- // Focused state
188
- &:focus,
189
- &.k-state-focus,
190
- &.k-state-focused {
191
- box-shadow: $button-focused-shadow;
192
- }
193
-
194
- // Active state
195
- &:active,
196
- &.k-state-active {
197
- @include fill( contrast-wcag( $button-text ), $button-text, $button-text, none );
198
- }
199
-
200
- // Selected state
201
- &.k-state-selected {
202
- @include fill( contrast-wcag( $button-text ), $button-text, $button-text, none );
203
- }
204
- }
205
- .k-button-outline.k-primary {
206
- border-color: currentColor;
207
- color: $primary-button-bg;
208
- background: none;
209
- box-shadow: none;
210
-
211
- // Hover state
212
- &:hover,
213
- &.k-state-hover {
214
- @include fill( contrast-wcag( $primary-button-bg ), $primary-button-bg, $primary-button-bg, none );
215
- }
216
-
217
- // Focused state
218
- &:focus,
219
- &.k-state-focus,
220
- &.k-state-focused {
221
- box-shadow: $primary-button-focused-shadow;
222
- }
223
-
224
- // Actove state
225
- &:active,
226
- &.k-state-active {
227
- @include fill( contrast-wcag( $primary-button-bg ), $primary-button-bg, $primary-button-bg, none );
228
- box-shadow: none;
229
- }
230
-
231
- // Selected state
232
- &.k-state-selected {
233
- @include fill( contrast-wcag( $primary-button-bg ), $primary-button-bg, $primary-button-bg, none );
234
- box-shadow: none;
235
- }
236
- }
237
-
238
- }
239
-
240
-
241
-
242
-
243
- @include exports( "flat-button/theme" ) {
244
-
245
- // Flat button
246
- .k-button-flat {
247
-
248
- &,
249
- &:hover,
250
- &.k-state-hover,
251
- &:active,
252
- &.k-state-active,
253
- &:focus,
254
- &.k-state-focus {
255
- color: inherit;
256
- }
257
- }
258
- .k-button-flat.k-primary {
259
-
260
- &,
261
- &:hover,
262
- &.k-state-hover,
263
- &:active,
264
- &.k-state-active,
265
- &:focus,
266
- &.k-state-focus {
267
- color: $primary;
268
- }
269
- }
270
-
271
- }
272
-
273
-
274
-
275
-
276
- @include exports( "clear-button/theme" ) {
277
-
278
- .k-button-clear {
279
- color: $clear-button-text;
280
-
281
- &:hover,
282
- &.k-state-hover,
283
- &:active,
284
- &.k-state-active,
285
- &.k-state-selected,
286
- &:focus,
287
- &.k-state-focus,
288
- &.k-state-focused {
289
- color: $clear-button-hover-text;
290
- }
291
-
292
- &:focus,
293
- &.k-state-focus,
294
- &.k-state-focused,
295
- &.k-state-focused:active {
296
- &::after {
297
- background-color: currentColor;
298
- opacity: $clear-button-focused-opacity;
299
- display: block;
300
- }
301
- }
302
-
290
+ .k-split-button.k-focus {
291
+ @include box-shadow( $kendo-button-focus-shadow );
303
292
  }
304
293
 
305
294
  }