@progress/kendo-theme-classic 4.43.1-dev.5 → 4.44.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.
- package/dist/all.css +2225 -1287
- package/dist/all.scss +1827 -1434
- package/modules/@progress/kendo-theme-default/package.json +2 -2
- package/modules/@progress/kendo-theme-default/scss/action-buttons/_layout.scss +7 -0
- package/modules/@progress/kendo-theme-default/scss/action-sheet/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/appbar/_layout.scss +6 -1
- package/modules/@progress/kendo-theme-default/scss/autocomplete/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/avatar/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/badge/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/bottom-navigation/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/breadcrumb/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/button/_layout.scss +80 -92
- package/modules/@progress/kendo-theme-default/scss/button/_theme.scss +177 -112
- package/modules/@progress/kendo-theme-default/scss/button/_variables.scss +80 -14
- package/modules/@progress/kendo-theme-default/scss/captcha/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/card/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/chat/_layout.scss +9 -2
- package/modules/@progress/kendo-theme-default/scss/chip/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/color-preview/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/coloreditor/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/colorgradient/_layout.scss +6 -4
- package/modules/@progress/kendo-theme-default/scss/colorpalette/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/colorpicker/_layout.scss +6 -3
- package/modules/@progress/kendo-theme-default/scss/combobox/_layout.scss +6 -1
- package/modules/@progress/kendo-theme-default/scss/common/_loading.scss +15 -13
- package/modules/@progress/kendo-theme-default/scss/dateinput/_layout.scss +7 -1
- package/modules/@progress/kendo-theme-default/scss/datepicker/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/daterangepicker/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/datetimepicker/_layout.scss +6 -2
- package/modules/@progress/kendo-theme-default/scss/drawer/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/dropdownlist/_layout.scss +6 -1
- package/modules/@progress/kendo-theme-default/scss/expansion-panel/_layout.scss +6 -1
- package/modules/@progress/kendo-theme-default/scss/fab/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/filter/_layout.scss +8 -0
- package/modules/@progress/kendo-theme-default/scss/floating-label/_layout.scss +7 -0
- package/modules/@progress/kendo-theme-default/scss/grid/_layout.scss +4 -3
- package/modules/@progress/kendo-theme-default/scss/grid/_theme.scss +2 -8
- package/modules/@progress/kendo-theme-default/scss/imageeditor/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/list/_layout.scss +10 -28
- package/modules/@progress/kendo-theme-default/scss/list/_theme.scss +4 -4
- package/modules/@progress/kendo-theme-default/scss/listbox/_layout.scss +9 -0
- package/modules/@progress/kendo-theme-default/scss/map/_layout.scss +7 -0
- package/modules/@progress/kendo-theme-default/scss/maskedtextbox/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/mediaplayer/_layout.scss +14 -1
- package/modules/@progress/kendo-theme-default/scss/multiselect/_layout.scss +8 -2
- package/modules/@progress/kendo-theme-default/scss/notification/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/numerictextbox/_layout.scss +6 -2
- package/modules/@progress/kendo-theme-default/scss/orgchart/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/pager/_layout.scss +6 -2
- package/modules/@progress/kendo-theme-default/scss/panelbar/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/pivotgrid/_layout.scss +55 -83
- package/modules/@progress/kendo-theme-default/scss/pivotgrid/_theme.scss +39 -73
- package/modules/@progress/kendo-theme-default/scss/popover/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/progressbar/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/rating/_layout.scss +6 -1
- package/modules/@progress/kendo-theme-default/scss/scheduler/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/searchbox/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/slider/_layout.scss +71 -144
- package/modules/@progress/kendo-theme-default/scss/slider/_theme.scss +0 -6
- package/modules/@progress/kendo-theme-default/scss/spreadsheet/_layout.scss +1 -0
- package/modules/@progress/kendo-theme-default/scss/stepper/_layout.scss +6 -1
- package/modules/@progress/kendo-theme-default/scss/switch/_layout.scss +14 -9
- package/modules/@progress/kendo-theme-default/scss/switch/_variables.scss +127 -33
- package/modules/@progress/kendo-theme-default/scss/tabstrip/_layout.scss +26 -4
- package/modules/@progress/kendo-theme-default/scss/taskboard/_layout.scss +6 -2
- package/modules/@progress/kendo-theme-default/scss/textarea/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/textbox/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/timeline/_layout.scss +8 -4
- package/modules/@progress/kendo-theme-default/scss/timepicker/_layout.scss +6 -1
- package/modules/@progress/kendo-theme-default/scss/timeselector/_layout.scss +1 -0
- package/modules/@progress/kendo-theme-default/scss/toolbar/_index.scss +1 -0
- package/modules/@progress/kendo-theme-default/scss/toolbar/_layout.scss +1 -0
- package/modules/@progress/kendo-theme-default/scss/tooltip/_layout.scss +6 -1
- package/modules/@progress/kendo-theme-default/scss/treelist/_layout.scss +4 -0
- package/modules/@progress/kendo-theme-default/scss/treeview/_layout.scss +17 -18
- package/modules/@progress/kendo-theme-default/scss/upload/_layout.scss +6 -1
- package/modules/@progress/kendo-theme-default/scss/window/_layout.scss +2 -2
- package/modules/@progress/kendo-theme-default/scss/wizard/_layout.scss +4 -0
- package/package.json +3 -3
- package/scss/button/_variables.scss +84 -18
- package/scss/checkbox/_variables.scss +1 -1
- package/scss/switch/_variables.scss +142 -48
- package/scss/toolbar/_index.scss +1 -0
- package/scss/treeview/_variables.scss +1 -1
|
@@ -10,40 +10,15 @@
|
|
|
10
10
|
line-height: $slider-line-height;
|
|
11
11
|
background: none;
|
|
12
12
|
display: inline-flex;
|
|
13
|
-
align-items:
|
|
13
|
+
align-items: center;
|
|
14
14
|
position: relative;
|
|
15
15
|
-webkit-touch-callout: none;
|
|
16
16
|
-webkit-tap-highlight-color: $rgba-transparent;
|
|
17
17
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
min-width: 0;
|
|
23
|
-
outline: 0;
|
|
24
|
-
padding: 0;
|
|
25
|
-
position: absolute;
|
|
26
|
-
width: $slider-button-size;
|
|
27
|
-
box-sizing: content-box;
|
|
28
|
-
|
|
29
|
-
.k-icon,
|
|
30
|
-
.k-button-icon {
|
|
31
|
-
vertical-align: baseline;
|
|
32
|
-
line-height: $slider-button-size;
|
|
33
|
-
height: 100%;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.k-button-increase {
|
|
38
|
-
position: absolute;
|
|
39
|
-
right: 0;
|
|
40
|
-
top: 0;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.k-button-decrease {
|
|
44
|
-
position: absolute;
|
|
45
|
-
left: 0;
|
|
46
|
-
top: 0;
|
|
18
|
+
*,
|
|
19
|
+
*::before,
|
|
20
|
+
*::after {
|
|
21
|
+
box-sizing: border-box;
|
|
47
22
|
}
|
|
48
23
|
|
|
49
24
|
.k-label {
|
|
@@ -85,30 +60,32 @@
|
|
|
85
60
|
left: auto;
|
|
86
61
|
right: 0;
|
|
87
62
|
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
88
65
|
|
|
89
|
-
.k-button-increase {
|
|
90
|
-
left: 0;
|
|
91
|
-
right: auto;
|
|
92
|
-
}
|
|
93
66
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
67
|
+
// Slider wrap
|
|
68
|
+
.k-slider-wrap {
|
|
69
|
+
width: 100%;
|
|
70
|
+
height: 100%;
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-flow: inherit;
|
|
73
|
+
align-items: inherit;
|
|
74
|
+
gap: inherit;
|
|
75
|
+
position: relative;
|
|
99
76
|
}
|
|
100
77
|
|
|
101
78
|
|
|
102
79
|
// New rendering
|
|
103
80
|
.k-slider {
|
|
81
|
+
width: min-content;
|
|
82
|
+
height: min-content;
|
|
104
83
|
gap: calc( #{$slider-draghandle-size} / 2 );
|
|
105
84
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
flex-shrink: 0;
|
|
109
|
-
align-self: center;
|
|
85
|
+
.k-button {
|
|
86
|
+
flex: none;
|
|
110
87
|
}
|
|
111
|
-
|
|
88
|
+
.k-slider-track-wrap {
|
|
112
89
|
flex: 1 1 auto;
|
|
113
90
|
display: flex;
|
|
114
91
|
flex-flow: inherit;
|
|
@@ -116,6 +93,9 @@
|
|
|
116
93
|
touch-action: none;
|
|
117
94
|
|
|
118
95
|
.k-slider-items {
|
|
96
|
+
margin: 0;
|
|
97
|
+
padding: 0;
|
|
98
|
+
list-style: none;
|
|
119
99
|
// For some reason, Safari does not understand `flex-basis: 100%`
|
|
120
100
|
// See telerik/kendo-themes#2197
|
|
121
101
|
// flex-basis: 100%;
|
|
@@ -123,8 +103,7 @@
|
|
|
123
103
|
display: flex;
|
|
124
104
|
flex-flow: inherit;
|
|
125
105
|
justify-content: space-between;
|
|
126
|
-
|
|
127
|
-
&::after { display: none; }
|
|
106
|
+
user-select: none;
|
|
128
107
|
}
|
|
129
108
|
.k-tick {
|
|
130
109
|
flex: 0 0 1px;
|
|
@@ -136,7 +115,8 @@
|
|
|
136
115
|
}
|
|
137
116
|
|
|
138
117
|
&-horizontal {
|
|
139
|
-
|
|
118
|
+
.k-slider-track-wrap {
|
|
119
|
+
height: 26px;
|
|
140
120
|
|
|
141
121
|
.k-slider-track {
|
|
142
122
|
width: 100%;
|
|
@@ -188,7 +168,8 @@
|
|
|
188
168
|
}
|
|
189
169
|
|
|
190
170
|
&-vertical {
|
|
191
|
-
|
|
171
|
+
.k-slider-track-wrap {
|
|
172
|
+
width: 26px;
|
|
192
173
|
|
|
193
174
|
.k-slider-track {
|
|
194
175
|
height: 100%;
|
|
@@ -221,14 +202,8 @@
|
|
|
221
202
|
// Slider vertical
|
|
222
203
|
.k-slider-vertical {
|
|
223
204
|
height: $slider-size;
|
|
224
|
-
width: $slider-alt-size;
|
|
225
205
|
flex-flow: column-reverse nowrap;
|
|
226
206
|
|
|
227
|
-
.k-button-decrease {
|
|
228
|
-
bottom: 0;
|
|
229
|
-
top: auto;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
207
|
.k-tick {
|
|
233
208
|
text-align: right;
|
|
234
209
|
margin-left: 2px;
|
|
@@ -240,32 +215,32 @@
|
|
|
240
215
|
|
|
241
216
|
// ticks
|
|
242
217
|
|
|
243
|
-
.k-tick { background-position: -
|
|
244
|
-
.k-slider-topleft .k-tick { background-position: -
|
|
245
|
-
.k-slider-bottomright .k-tick { background-position: -
|
|
218
|
+
.k-tick { background-position: -94px center; }
|
|
219
|
+
.k-slider-topleft .k-tick { background-position: -124px center; }
|
|
220
|
+
.k-slider-bottomright .k-tick { background-position: -154px center; }
|
|
246
221
|
|
|
247
222
|
.k-tick-large {
|
|
248
223
|
display: flex;
|
|
249
224
|
align-items: center;
|
|
250
|
-
background-position: -
|
|
225
|
+
background-position: -4px center;
|
|
251
226
|
}
|
|
252
227
|
|
|
253
|
-
.k-slider-topleft .k-tick-large { background-position: -
|
|
254
|
-
.k-slider-bottomright .k-tick-large { background-position: -
|
|
228
|
+
.k-slider-topleft .k-tick-large { background-position: -34px center; }
|
|
229
|
+
.k-slider-bottomright .k-tick-large { background-position: -64px center; }
|
|
255
230
|
|
|
256
|
-
.k-first { background-position: -
|
|
257
|
-
.k-tick-large.k-first { background-position: -
|
|
258
|
-
.k-slider-topleft .k-first { background-position: -
|
|
259
|
-
.k-slider-topleft .k-tick-large.k-first { background-position: -
|
|
260
|
-
.k-slider-bottomright .k-first { background-position: -
|
|
261
|
-
.k-slider-bottomright .k-tick-large.k-first { background-position: -
|
|
231
|
+
.k-first { background-position: -94px 100%; }
|
|
232
|
+
.k-tick-large.k-first { background-position: -4px 100%; }
|
|
233
|
+
.k-slider-topleft .k-first { background-position: -124px 100%; }
|
|
234
|
+
.k-slider-topleft .k-tick-large.k-first { background-position: -34px 100%; }
|
|
235
|
+
.k-slider-bottomright .k-first { background-position: -154px 100%; }
|
|
236
|
+
.k-slider-bottomright .k-tick-large.k-first { background-position: -64px 100%; }
|
|
262
237
|
|
|
263
|
-
.k-last { background-position: -
|
|
264
|
-
.k-tick-large.k-last { background-position: -
|
|
265
|
-
.k-slider-topleft .k-last { background-position: -
|
|
266
|
-
.k-slider-topleft .k-tick-large.k-last { background-position: -
|
|
267
|
-
.k-slider-bottomright .k-last { background-position: -
|
|
268
|
-
.k-slider-bottomright .k-tick-large.k-last { background-position: -
|
|
238
|
+
.k-last { background-position: -94px 0; }
|
|
239
|
+
.k-tick-large.k-last { background-position: -4px 0; }
|
|
240
|
+
.k-slider-topleft .k-last { background-position: -124px 0; }
|
|
241
|
+
.k-slider-topleft .k-tick-large.k-last { background-position: -34px 0; }
|
|
242
|
+
.k-slider-bottomright .k-last { background-position: -154px 0; }
|
|
243
|
+
.k-slider-bottomright .k-tick-large.k-last { background-position: -64px 0; }
|
|
269
244
|
|
|
270
245
|
// labels
|
|
271
246
|
|
|
@@ -303,17 +278,9 @@
|
|
|
303
278
|
|
|
304
279
|
// Slider horizontal
|
|
305
280
|
.k-slider-horizontal {
|
|
306
|
-
height: $slider-alt-size;
|
|
307
281
|
width: $slider-size;
|
|
308
282
|
flex-flow: row nowrap;
|
|
309
283
|
|
|
310
|
-
// ticks
|
|
311
|
-
.k-tick {
|
|
312
|
-
float: left;
|
|
313
|
-
height: 100%;
|
|
314
|
-
text-align: center;
|
|
315
|
-
}
|
|
316
|
-
|
|
317
284
|
.k-tick { background-position: center -92px; }
|
|
318
285
|
.k-slider-topleft .k-tick { background-position: center -122px; }
|
|
319
286
|
.k-slider-bottomright .k-tick { background-position: center -152px; }
|
|
@@ -359,9 +326,6 @@
|
|
|
359
326
|
right: 0;
|
|
360
327
|
left: auto;
|
|
361
328
|
}
|
|
362
|
-
.k-slider-buttons .k-slider-track {
|
|
363
|
-
right: $slider-button-spacing;
|
|
364
|
-
}
|
|
365
329
|
|
|
366
330
|
.k-button .k-i-arrow-e,
|
|
367
331
|
.k-button .k-i-arrow-w {
|
|
@@ -370,11 +334,6 @@
|
|
|
370
334
|
}
|
|
371
335
|
}
|
|
372
336
|
|
|
373
|
-
.k-slider-wrap {
|
|
374
|
-
height: 100%;
|
|
375
|
-
width: 100%;
|
|
376
|
-
}
|
|
377
|
-
|
|
378
337
|
.k-slider-track,
|
|
379
338
|
.k-slider-selection {
|
|
380
339
|
margin: 0;
|
|
@@ -396,16 +355,6 @@
|
|
|
396
355
|
}
|
|
397
356
|
}
|
|
398
357
|
|
|
399
|
-
.k-slider-buttons .k-slider-track {
|
|
400
|
-
.k-slider-horizontal & {
|
|
401
|
-
left: $slider-button-spacing;
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
.k-slider-vertical & {
|
|
405
|
-
bottom: $slider-button-spacing;
|
|
406
|
-
}
|
|
407
|
-
}
|
|
408
|
-
|
|
409
358
|
|
|
410
359
|
.k-draghandle {
|
|
411
360
|
background-color: transparent;
|
|
@@ -416,30 +365,9 @@
|
|
|
416
365
|
position: absolute;
|
|
417
366
|
text-align: center;
|
|
418
367
|
text-decoration: none;
|
|
419
|
-
box-sizing: content-box;
|
|
420
368
|
width: $slider-draghandle-size;
|
|
421
369
|
height: $slider-draghandle-size;
|
|
422
370
|
|
|
423
|
-
.k-slider-horizontal & {
|
|
424
|
-
top: 50%;
|
|
425
|
-
transform: translateY(-50%);
|
|
426
|
-
|
|
427
|
-
&:active,
|
|
428
|
-
&.k-pressed {
|
|
429
|
-
transform: translateY(-50%) scale($slider-draghandle-active-scale);
|
|
430
|
-
}
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
.k-slider-vertical & {
|
|
434
|
-
left: 50%;
|
|
435
|
-
transform: translateX(-50%);
|
|
436
|
-
|
|
437
|
-
&:active,
|
|
438
|
-
&.k-pressed {
|
|
439
|
-
transform: translateX(-50%) scale($slider-draghandle-active-scale);
|
|
440
|
-
}
|
|
441
|
-
}
|
|
442
|
-
|
|
443
371
|
.k-slider-transitions.k-slider-horizontal & {
|
|
444
372
|
transition: left $slider-transition-speed $slider-transition-function, background-color $slider-transition-speed $slider-transition-function, transform $slider-draghandle-transition-speed $slider-draghandle-transition-function;
|
|
445
373
|
}
|
|
@@ -468,34 +396,18 @@
|
|
|
468
396
|
}
|
|
469
397
|
|
|
470
398
|
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
.k-slider-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
.k-slider-horizontal & {
|
|
479
|
-
height: 100%;
|
|
480
|
-
padding: 2px 0;
|
|
481
|
-
box-sizing: border-box;
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
.k-slider-vertical & {
|
|
485
|
-
padding-top: 1px;
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
.k-slider-vertical .k-slider-buttons & {
|
|
489
|
-
margin: 0;
|
|
490
|
-
padding-top: $slider-button-spacing;
|
|
399
|
+
// Slider readonly
|
|
400
|
+
.k-slider.k-readonly {
|
|
401
|
+
.k-button,
|
|
402
|
+
.k-slider-track,
|
|
403
|
+
.k-tick,
|
|
404
|
+
.k-draghandle {
|
|
405
|
+
pointer-events: none;
|
|
491
406
|
}
|
|
492
407
|
}
|
|
493
|
-
.k-slider-items::after {
|
|
494
|
-
content: "";
|
|
495
|
-
display: block;
|
|
496
|
-
clear: both;
|
|
497
|
-
}
|
|
498
408
|
|
|
409
|
+
|
|
410
|
+
// Slider tooltip
|
|
499
411
|
.k-slider-tooltip {
|
|
500
412
|
.k-callout-n,
|
|
501
413
|
.k-callout-s {
|
|
@@ -507,4 +419,19 @@
|
|
|
507
419
|
margin-top: -$tooltip-callout-size / 2;
|
|
508
420
|
}
|
|
509
421
|
}
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
// Angular specific
|
|
425
|
+
.k-slider kendo-resize-sensor {
|
|
426
|
+
position: absolute;
|
|
427
|
+
}
|
|
428
|
+
.k-slider-horizontal .k-slider-wrap:not(.k-slider-buttons) {
|
|
429
|
+
padding-left: calc( #{$slider-draghandle-size} / 2 );
|
|
430
|
+
padding-right: calc( #{$slider-draghandle-size} / 2 );
|
|
431
|
+
}
|
|
432
|
+
.k-slider-vertical .k-slider-wrap:not(.k-slider-buttons) {
|
|
433
|
+
padding-top: calc( #{$slider-draghandle-size} / 2 );
|
|
434
|
+
padding-bottom: calc( #{$slider-draghandle-size} / 2 );
|
|
435
|
+
}
|
|
436
|
+
|
|
510
437
|
}
|
|
@@ -19,6 +19,12 @@
|
|
|
19
19
|
color: inherit;
|
|
20
20
|
background: none;
|
|
21
21
|
|
|
22
|
+
*,
|
|
23
|
+
*::before,
|
|
24
|
+
*::after {
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
}
|
|
27
|
+
|
|
22
28
|
|
|
23
29
|
// Step list
|
|
24
30
|
.k-step-list {
|
|
@@ -68,7 +74,6 @@
|
|
|
68
74
|
transition-property: color, background-color, border-color;
|
|
69
75
|
transition-duration: .4s;
|
|
70
76
|
transition-timing-function: ease-in-out;
|
|
71
|
-
box-sizing: content-box;
|
|
72
77
|
|
|
73
78
|
&::after {
|
|
74
79
|
@include border-radius( 100% );
|
|
@@ -9,14 +9,20 @@
|
|
|
9
9
|
display: inline-flex;
|
|
10
10
|
align-items: center;
|
|
11
11
|
vertical-align: middle;
|
|
12
|
-
font-family: $font-family;
|
|
13
|
-
font-size: $font-size
|
|
14
|
-
line-height:
|
|
12
|
+
font-family: $switch-font-family;
|
|
13
|
+
font-size: $switch-font-size;
|
|
14
|
+
line-height: 1;
|
|
15
15
|
user-select: none;
|
|
16
16
|
text-align: left;
|
|
17
17
|
-webkit-touch-callout: none;
|
|
18
18
|
-webkit-tap-highlight-color: $rgba-transparent;
|
|
19
19
|
|
|
20
|
+
*,
|
|
21
|
+
*::before,
|
|
22
|
+
*::after {
|
|
23
|
+
box-sizing: border-box;
|
|
24
|
+
}
|
|
25
|
+
|
|
20
26
|
[type="checkbox"] {
|
|
21
27
|
display: none;
|
|
22
28
|
}
|
|
@@ -26,11 +32,9 @@
|
|
|
26
32
|
}
|
|
27
33
|
}
|
|
28
34
|
|
|
29
|
-
.k-switch,
|
|
30
|
-
.k-switch-container,
|
|
31
|
-
.k-switch-handle {
|
|
32
|
-
box-sizing: border-box;
|
|
33
|
-
}
|
|
35
|
+
// .k-switch,
|
|
36
|
+
// .k-switch-container,
|
|
37
|
+
// .k-switch-handle {}
|
|
34
38
|
|
|
35
39
|
|
|
36
40
|
// Switch track
|
|
@@ -90,7 +94,8 @@
|
|
|
90
94
|
|
|
91
95
|
// RTL
|
|
92
96
|
.k-rtl .k-switch,
|
|
93
|
-
|
|
97
|
+
[dir="rtl"] .k-switch,
|
|
98
|
+
.k-switch[dir="rtl"] {
|
|
94
99
|
&.k-switch-on .k-switch-handle {
|
|
95
100
|
left: $switch-thumb-start-x;
|
|
96
101
|
}
|
|
@@ -2,17 +2,22 @@
|
|
|
2
2
|
$switch-size: 60px !default;
|
|
3
3
|
$switch-border-radius: 9999px !default;
|
|
4
4
|
|
|
5
|
+
/// Font family of the switch.
|
|
6
|
+
/// @group switch
|
|
5
7
|
$switch-font-family: $font-family !default;
|
|
6
8
|
$switch-font-size: $font-size-xs !default;
|
|
7
|
-
$switch-line-height: $line-height !default;
|
|
8
9
|
|
|
9
10
|
$switch-track-size: null !default;
|
|
11
|
+
/// Border width of the switch track.
|
|
12
|
+
/// @group switch
|
|
10
13
|
$switch-container-border-width: null !default;
|
|
11
14
|
$switch-container-padding-x: 0px !default;
|
|
12
15
|
$switch-container-padding-y: 0px !default;
|
|
13
16
|
|
|
14
17
|
$switch-handle-size: 30px !default;
|
|
15
18
|
$switch-handle-border-radius: 9999px !default;
|
|
19
|
+
/// Border width of the switch thumb.
|
|
20
|
+
/// @group switch
|
|
16
21
|
$switch-handle-border-width: 1px !default;
|
|
17
22
|
$switch-thumb-start-x: 0px !default;
|
|
18
23
|
// TODO: Remove width property from jQuery and Blazor, and do not use 100% for thumb X calc
|
|
@@ -20,65 +25,154 @@ $switch-thumb-end-x: calc( 100% - #{$switch-handle-size} ) !default;
|
|
|
20
25
|
|
|
21
26
|
$switch-label-offset: 8px !default;
|
|
22
27
|
$switch-label-width: calc( 100% - (#{$switch-handle-size} + #{$switch-label-offset} + #{$switch-container-padding-x} ) ) !default;
|
|
28
|
+
/// Text transform of the switch label.
|
|
29
|
+
/// @group switch
|
|
23
30
|
$switch-label-text-transform: uppercase !default;
|
|
31
|
+
/// Display of the switch label.
|
|
32
|
+
/// @group switch
|
|
24
33
|
$switch-label-display: inline !default;
|
|
25
34
|
|
|
26
35
|
$switch-container-shadow: inset 0 0 0 1px $base-border !default;
|
|
27
36
|
$switch-container-hovered-shadow: inset 0 0 0 1px $hovered-border !default;
|
|
28
37
|
$switch-container-focused-shadow: inset 0 0 0 3px rgba( black, .06) !default;
|
|
29
38
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
$switch-on-border: null !default;
|
|
33
|
-
$switch-on-gradient: null !default;
|
|
34
|
-
$switch-on-shadow: null !default;
|
|
35
|
-
|
|
36
|
-
$switch-on-hovered-bg: shade( $switch-on-bg ) !default;
|
|
37
|
-
$switch-on-hovered-text: $switch-on-text !default;
|
|
38
|
-
$switch-on-hovered-border: null !default;
|
|
39
|
-
$switch-on-hovered-gradient: null !default;
|
|
40
|
-
|
|
41
|
-
$switch-on-focused-bg: null !default;
|
|
42
|
-
$switch-on-focused-text: null !default;
|
|
43
|
-
$switch-on-focused-border: null !default;
|
|
44
|
-
$switch-on-focused-gradient: null !default;
|
|
45
|
-
$switch-on-focused-shadow: null !default;
|
|
46
|
-
|
|
47
|
-
$switch-on-handle-bg: darken( white, 5 ) !default;
|
|
48
|
-
$switch-on-handle-text: $switch-on-text !default;
|
|
49
|
-
$switch-on-handle-border: $base-border !default;
|
|
50
|
-
$switch-on-handle-gradient: null !default;
|
|
51
|
-
$switch-on-handle-shadow: null !default;
|
|
52
|
-
|
|
53
|
-
$switch-on-handle-hovered-bg: darken( white, 7 ) !default;
|
|
54
|
-
$switch-on-handle-hovered-text: $switch-on-text !default;
|
|
55
|
-
$switch-on-handle-hovered-border: $hovered-border !default;
|
|
56
|
-
$switch-on-handle-hovered-gradient: null !default;
|
|
57
|
-
|
|
39
|
+
/// The background of the track when the switch is not checked.
|
|
40
|
+
/// @group switch
|
|
58
41
|
$switch-off-bg: $component-bg !default;
|
|
42
|
+
/// The text color of the track when the switch is not checked.
|
|
43
|
+
/// @group switch
|
|
59
44
|
$switch-off-text: $component-text !default;
|
|
45
|
+
/// The border color of the track when the switch is not checked.
|
|
46
|
+
/// @group switch
|
|
60
47
|
$switch-off-border: null !default;
|
|
48
|
+
/// The background gradient of the track when the switch is not checked.
|
|
49
|
+
/// @group switch
|
|
61
50
|
$switch-off-gradient: null !default;
|
|
62
51
|
$switch-off-shadow: null !default;
|
|
63
52
|
|
|
53
|
+
/// The background of the track when the hovered switch is not checked.
|
|
54
|
+
/// @group switch
|
|
64
55
|
$switch-off-hovered-bg: $switch-off-bg !default;
|
|
56
|
+
/// The text color of the track when the hovered switch is not checked.
|
|
57
|
+
/// @group switch
|
|
65
58
|
$switch-off-hovered-text: $switch-off-text !default;
|
|
59
|
+
/// The border color of the track when the hovered switch is not checked.
|
|
60
|
+
/// @group switch
|
|
66
61
|
$switch-off-hovered-border: null !default;
|
|
62
|
+
/// The background gradient of the track when the hovered switch is not checked.
|
|
63
|
+
/// @group switch
|
|
67
64
|
$switch-off-hovered-gradient: null !default;
|
|
68
65
|
|
|
66
|
+
/// The background of the track when the focused switch is not checked.
|
|
67
|
+
/// @group switch
|
|
69
68
|
$switch-off-focused-bg: null !default;
|
|
69
|
+
/// The text color of the track when the focused switch is not checked.
|
|
70
|
+
/// @group switch
|
|
70
71
|
$switch-off-focused-text: null !default;
|
|
72
|
+
/// The border color of the track when the focused switch is not checked.
|
|
73
|
+
/// @group switch
|
|
71
74
|
$switch-off-focused-border: null !default;
|
|
75
|
+
/// The background gradient of the track when the focused switch is not checked.
|
|
76
|
+
/// @group switch
|
|
72
77
|
$switch-off-focused-gradient: null !default;
|
|
78
|
+
/// The ring around the track when the focused switch is not checked.
|
|
79
|
+
/// @group switch
|
|
73
80
|
$switch-off-focused-shadow: null !default;
|
|
74
81
|
|
|
75
|
-
|
|
82
|
+
/// The background of the thumb when the switch is not checked.
|
|
83
|
+
/// @group switch
|
|
84
|
+
$switch-off-handle-bg: darken( white, 5 ) !default;
|
|
85
|
+
/// The text color of the thumb when the switch is not checked.
|
|
86
|
+
/// @group switch
|
|
76
87
|
$switch-off-handle-text: $switch-off-text !default;
|
|
77
|
-
|
|
88
|
+
/// The border color of the thumb when the switch is not checked.
|
|
89
|
+
/// @group switch
|
|
90
|
+
$switch-off-handle-border: $base-border !default;
|
|
91
|
+
/// The background gradient of the thumb when the switch is not checked.
|
|
92
|
+
/// @group switch
|
|
78
93
|
$switch-off-handle-gradient: null !default;
|
|
79
94
|
$switch-off-handle-shadow: null !default;
|
|
80
95
|
|
|
81
|
-
|
|
96
|
+
/// The background of the thumb when the hovered switch is not checked.
|
|
97
|
+
/// @group switch
|
|
98
|
+
$switch-off-handle-hovered-bg: darken( white, 7 ) !default;
|
|
99
|
+
/// The text color of the thumb when the hovered switch is not checked.
|
|
100
|
+
/// @group switch
|
|
82
101
|
$switch-off-handle-hovered-text: $switch-off-text !default;
|
|
83
|
-
|
|
102
|
+
/// The border color of the thumb when the hovered switch is not checked.
|
|
103
|
+
/// @group switch
|
|
104
|
+
$switch-off-handle-hovered-border: $hovered-border !default;
|
|
105
|
+
/// The background gradient of the thumb when the hovered switch is not checked.
|
|
106
|
+
/// @group switch
|
|
84
107
|
$switch-off-handle-hovered-gradient: null !default;
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
/// The background of the track when the switch is checked.
|
|
111
|
+
/// @group switch
|
|
112
|
+
$switch-on-bg: $primary !default;
|
|
113
|
+
/// The text color of the track when the switch is checked.
|
|
114
|
+
/// @group switch
|
|
115
|
+
$switch-on-text: contrast-wcag( $switch-on-bg ) !default;
|
|
116
|
+
/// The border color of the track when the switch is checked.
|
|
117
|
+
/// @group switch
|
|
118
|
+
$switch-on-border: null !default;
|
|
119
|
+
/// The background gradient of the track when the switch is checked.
|
|
120
|
+
/// @group switch
|
|
121
|
+
$switch-on-gradient: null !default;
|
|
122
|
+
$switch-on-shadow: null !default;
|
|
123
|
+
|
|
124
|
+
/// The background of the track wen the hovered switch is checked.
|
|
125
|
+
/// @group switch
|
|
126
|
+
$switch-on-hovered-bg: shade( $switch-on-bg ) !default;
|
|
127
|
+
/// The text color of the track wen the hovered switch is checked.
|
|
128
|
+
/// @group switch
|
|
129
|
+
$switch-on-hovered-text: $switch-on-text !default;
|
|
130
|
+
/// The border color of the track wen the hovered switch is checked.
|
|
131
|
+
/// @group switch
|
|
132
|
+
$switch-on-hovered-border: null !default;
|
|
133
|
+
/// The background gradient of the track wen the hovered switch is checked.
|
|
134
|
+
/// @group switch
|
|
135
|
+
$switch-on-hovered-gradient: null !default;
|
|
136
|
+
|
|
137
|
+
/// The background of the track wen the focused switch is checked.
|
|
138
|
+
/// @group switch
|
|
139
|
+
$switch-on-focused-bg: null !default;
|
|
140
|
+
/// The text color of the track wen the focused switch is checked.
|
|
141
|
+
/// @group switch
|
|
142
|
+
$switch-on-focused-text: null !default;
|
|
143
|
+
/// The border color of the track wen the focused switch is checked.
|
|
144
|
+
/// @group switch
|
|
145
|
+
$switch-on-focused-border: null !default;
|
|
146
|
+
/// The background gradient of the track wen the focused switch is checked.
|
|
147
|
+
/// @group switch
|
|
148
|
+
$switch-on-focused-gradient: null !default;
|
|
149
|
+
/// The ring around the track wen the focused switch is checked.
|
|
150
|
+
/// @group switch
|
|
151
|
+
$switch-on-focused-shadow: null !default;
|
|
152
|
+
|
|
153
|
+
/// The background of the thumb when the switch is checked.
|
|
154
|
+
/// @group switch
|
|
155
|
+
$switch-on-handle-bg: $switch-off-handle-bg !default;
|
|
156
|
+
/// The text color of the thumb when the switch is checked.
|
|
157
|
+
/// @group switch
|
|
158
|
+
$switch-on-handle-text: $switch-on-text !default;
|
|
159
|
+
/// The border color of the thumb when the switch is checked.
|
|
160
|
+
/// @group switch
|
|
161
|
+
$switch-on-handle-border: $switch-off-handle-border !default;
|
|
162
|
+
/// The background gradient of the thumb when the switch is checked.
|
|
163
|
+
/// @group switch
|
|
164
|
+
$switch-on-handle-gradient: null !default;
|
|
165
|
+
$switch-on-handle-shadow: null !default;
|
|
166
|
+
|
|
167
|
+
/// The background of the thumb when the hovered switch is checked.
|
|
168
|
+
/// @group switch
|
|
169
|
+
$switch-on-handle-hovered-bg: $switch-off-handle-hovered-bg !default;
|
|
170
|
+
/// The text color of the thumb when the hovered switch is checked.
|
|
171
|
+
/// @group switch
|
|
172
|
+
$switch-on-handle-hovered-text: $switch-on-text !default;
|
|
173
|
+
/// The border color of the thumb when the hovered switch is checked.
|
|
174
|
+
/// @group switch
|
|
175
|
+
$switch-on-handle-hovered-border: $switch-off-handle-hovered-border !default;
|
|
176
|
+
/// The background gradient of the thumb when the hovered switch is checked.
|
|
177
|
+
/// @group switch
|
|
178
|
+
$switch-on-handle-hovered-gradient: null !default;
|