@progress/kendo-theme-default 5.0.0-next.2 → 5.0.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.
Files changed (314) hide show
  1. package/README.md +5 -8
  2. package/dist/all.css +14813 -15402
  3. package/dist/all.scss +16002 -17364
  4. package/dist/default-dataviz-v4.scss +8 -0
  5. package/dist/default-main-dark.scss +5 -5
  6. package/dist/default-main.scss +5 -5
  7. package/lib/swatches/default-dataviz-v4.json +51 -0
  8. package/lib/swatches/default-main-dark.json +5 -5
  9. package/lib/swatches/default-main.json +5 -5
  10. package/package.json +2 -2
  11. package/scss/_layout.scss +0 -0
  12. package/scss/_variables.scss +6 -29
  13. package/scss/action-buttons/_layout.scss +18 -1
  14. package/scss/action-sheet/_layout.scss +8 -2
  15. package/scss/adaptive/_layout.scss +47 -99
  16. package/scss/adaptive/_theme.scss +0 -9
  17. package/scss/all.scss +1 -150
  18. package/scss/appbar/_layout.scss +29 -5
  19. package/scss/appbar/_variables.scss +3 -3
  20. package/scss/autocomplete/_index.scss +1 -0
  21. package/scss/autocomplete/_layout.scss +1 -54
  22. package/scss/autocomplete/_theme.scss +3 -75
  23. package/scss/autocomplete/_variables.scss +0 -24
  24. package/scss/avatar/_layout.scss +19 -17
  25. package/scss/avatar/_theme.scss +4 -4
  26. package/scss/avatar/_variables.scss +19 -13
  27. package/scss/avatar/index.md +0 -0
  28. package/scss/badge/_layout.scss +6 -0
  29. package/scss/badge/_variables.scss +6 -6
  30. package/scss/bottom-navigation/_layout.scss +9 -6
  31. package/scss/breadcrumb/_layout.scss +6 -18
  32. package/scss/button/_index.scss +3 -1
  33. package/scss/button/_layout.scss +158 -232
  34. package/scss/button/_theme.scss +211 -237
  35. package/scss/button/_variables.scss +196 -127
  36. package/scss/button/index.md +3 -0
  37. package/scss/calendar/_index.scss +1 -0
  38. package/scss/calendar/_layout.scss +2 -14
  39. package/scss/calendar/_theme.scss +10 -27
  40. package/scss/captcha/_index.scss +2 -0
  41. package/scss/captcha/_layout.scss +7 -7
  42. package/scss/captcha/_variables.scss +1 -1
  43. package/scss/card/_layout.scss +18 -81
  44. package/scss/card/_theme.scss +2 -1
  45. package/scss/card/_variables.scss +6 -6
  46. package/scss/chat/_layout.scss +39 -40
  47. package/scss/chat/_theme.scss +1 -32
  48. package/scss/chat/_variables.scss +3 -18
  49. package/scss/checkbox/_index.scss +2 -0
  50. package/scss/checkbox/_layout.scss +103 -158
  51. package/scss/checkbox/_theme.scss +37 -41
  52. package/scss/checkbox/_variables.scss +144 -56
  53. package/scss/checkbox/index.md +0 -0
  54. package/scss/chip/_index.scss +1 -0
  55. package/scss/chip/_layout.scss +127 -133
  56. package/scss/chip/_theme.scss +88 -168
  57. package/scss/chip/_variables.scss +142 -102
  58. package/scss/chip/index.md +0 -0
  59. package/scss/color-preview/_index.scss +11 -0
  60. package/scss/color-preview/_layout.scss +77 -0
  61. package/scss/color-preview/_theme.scss +17 -0
  62. package/scss/color-preview/_variables.scss +14 -0
  63. package/scss/coloreditor/_index.scss +15 -0
  64. package/scss/coloreditor/_layout.scss +75 -0
  65. package/scss/coloreditor/_theme.scss +19 -0
  66. package/scss/coloreditor/_variables.scss +27 -0
  67. package/scss/colorgradient/_index.scss +18 -0
  68. package/scss/colorgradient/_layout.scss +193 -0
  69. package/scss/colorgradient/_theme.scss +82 -0
  70. package/scss/colorgradient/_variables.scss +51 -0
  71. package/scss/colorgradient/images/alpha-slider-bgr.png +0 -0
  72. package/scss/colorgradient/images/alpha-slider-bgr.scss +3 -0
  73. package/scss/colorpalette/_index.scss +12 -0
  74. package/scss/colorpalette/_layout.scss +56 -0
  75. package/scss/colorpalette/_theme.scss +25 -0
  76. package/scss/colorpalette/_variables.scss +10 -0
  77. package/scss/colorpicker/_index.scss +3 -6
  78. package/scss/colorpicker/_layout.scss +7 -466
  79. package/scss/colorpicker/_theme.scss +2 -187
  80. package/scss/colorpicker/_variables.scss +1 -40
  81. package/scss/combobox/_index.scss +1 -0
  82. package/scss/combobox/_layout.scss +3 -84
  83. package/scss/combobox/_theme.scss +3 -124
  84. package/scss/combobox/_variables.scss +1 -33
  85. package/scss/common/_base.scss +2 -2
  86. package/scss/common/_loading.scss +16 -14
  87. package/scss/core/_color-system.scss +8 -8
  88. package/scss/core/functions/_colors.scss +5 -1
  89. package/scss/core/functions/_math.scss +2 -2
  90. package/scss/core/functions/_misc.scss +1 -1
  91. package/scss/core/mixins/_gradients.scss +6 -5
  92. package/scss/core/mixins/_hide-scrollbar.scss +2 -2
  93. package/scss/core/mixins/_index.scss +2 -1
  94. package/scss/core/mixins/_input-ripple.scss +1 -1
  95. package/scss/core/mixins/_module-system.scss +149 -0
  96. package/scss/core/mixins/_typography.scss +1 -1
  97. package/scss/dataviz/_index.scss +1 -0
  98. package/scss/dataviz/_theme.scss +8 -8
  99. package/scss/dataviz/_variables.scss +6 -6
  100. package/scss/dateinput/_index.scss +11 -0
  101. package/scss/dateinput/_layout.scss +6 -0
  102. package/scss/dateinput/_theme.scss +6 -0
  103. package/scss/dateinput/_variables.scss +1 -0
  104. package/scss/datepicker/_index.scss +13 -0
  105. package/scss/datepicker/_layout.scss +6 -0
  106. package/scss/datepicker/_theme.scss +6 -0
  107. package/scss/datepicker/_variables.scss +1 -0
  108. package/scss/{datetime → daterangepicker}/_index.scss +1 -2
  109. package/scss/daterangepicker/_layout.scss +39 -0
  110. package/scss/daterangepicker/_theme.scss +3 -0
  111. package/scss/daterangepicker/_variables.scss +1 -0
  112. package/scss/datetimepicker/_index.scss +17 -0
  113. package/scss/datetimepicker/_layout.scss +56 -0
  114. package/scss/datetimepicker/_theme.scss +6 -0
  115. package/scss/datetimepicker/_variables.scss +2 -0
  116. package/scss/drawer/_index.scss +1 -0
  117. package/scss/drawer/_layout.scss +9 -6
  118. package/scss/drawer/_variables.scss +1 -1
  119. package/scss/dropdowngrid/_layout.scss +11 -6
  120. package/scss/dropdowngrid/_theme.scss +9 -2
  121. package/scss/dropdowngrid/index.md +0 -0
  122. package/scss/dropdownlist/_index.scss +1 -0
  123. package/scss/dropdownlist/_layout.scss +20 -101
  124. package/scss/dropdownlist/_theme.scss +3 -91
  125. package/scss/dropdownlist/_variables.scss +9 -9
  126. package/scss/dropdowntree/_layout.scss +5 -15
  127. package/scss/dropdowntree/_theme.scss +2 -1
  128. package/scss/dropdowntree/_variables.scss +2 -4
  129. package/scss/dropzone/_layout.scss +0 -16
  130. package/scss/editor/_layout.scss +113 -95
  131. package/scss/editor/_theme.scss +9 -0
  132. package/scss/editor/_variables.scss +11 -3
  133. package/scss/expansion-panel/_index.scss +1 -0
  134. package/scss/expansion-panel/_layout.scss +6 -1
  135. package/scss/expansion-panel/_variables.scss +2 -2
  136. package/scss/fab/_layout.scss +30 -56
  137. package/scss/fab/_theme.scss +56 -68
  138. package/scss/fab/_variables.scss +129 -75
  139. package/scss/fab/index.md +0 -0
  140. package/scss/filemanager/_layout.scss +1 -2
  141. package/scss/filemanager/_theme.scss +1 -1
  142. package/scss/filter/_index.scss +1 -1
  143. package/scss/filter/_layout.scss +21 -7
  144. package/scss/filter/_theme.scss +3 -1
  145. package/scss/floating-label/_layout.scss +7 -3
  146. package/scss/floating-label/_theme.scss +0 -2
  147. package/scss/floating-label/_variables.scss +4 -4
  148. package/scss/forms/_index.scss +1 -1
  149. package/scss/forms/_layout.scss +20 -112
  150. package/scss/gantt/_index.scss +1 -1
  151. package/scss/gantt/_layout.scss +10 -8
  152. package/scss/grid/_index.scss +2 -1
  153. package/scss/grid/_layout.scss +161 -199
  154. package/scss/grid/_theme.scss +16 -22
  155. package/scss/grid/_variables.scss +10 -12
  156. package/scss/icons/_layout.scss +8 -2
  157. package/scss/icons/font/WebComponentsIcons.scss +1 -1
  158. package/scss/icons/font/WebComponentsIcons.ttf +0 -0
  159. package/scss/imageeditor/_layout.scss +10 -8
  160. package/scss/imageeditor/_variables.scss +1 -0
  161. package/scss/index.scss +157 -0
  162. package/scss/input/_index.scss +1 -1
  163. package/scss/input/_layout.scss +294 -94
  164. package/scss/input/_theme.scss +111 -16
  165. package/scss/input/_variables.scss +116 -92
  166. package/scss/list/_index.scss +12 -0
  167. package/scss/list/_layout.scss +241 -0
  168. package/scss/list/_theme.scss +91 -0
  169. package/scss/list/_variables.scss +248 -0
  170. package/scss/list/index.md +0 -0
  171. package/scss/listbox/_index.scss +2 -0
  172. package/scss/listbox/_layout.scss +10 -0
  173. package/scss/listbox/_variables.scss +1 -1
  174. package/scss/listview/_layout.scss +2 -9
  175. package/scss/map/_layout.scss +17 -12
  176. package/scss/map/_theme.scss +5 -5
  177. package/scss/map/_variables.scss +1 -1
  178. package/scss/map/images/markers.scss +1 -1
  179. package/scss/maskedtextbox/_layout.scss +3 -47
  180. package/scss/maskedtextbox/_theme.scss +3 -21
  181. package/scss/mediaplayer/_layout.scss +19 -1
  182. package/scss/menu/_index.scss +2 -0
  183. package/scss/menu/_layout.scss +136 -76
  184. package/scss/menu/_theme.scss +33 -25
  185. package/scss/menu/_variables.scss +124 -35
  186. package/scss/multiselect/_index.scss +2 -0
  187. package/scss/multiselect/_layout.scss +3 -200
  188. package/scss/multiselect/_theme.scss +3 -139
  189. package/scss/multiselect/_variables.scss +0 -36
  190. package/scss/notification/_layout.scss +10 -28
  191. package/scss/numerictextbox/_layout.scss +5 -103
  192. package/scss/numerictextbox/_theme.scss +2 -95
  193. package/scss/numerictextbox/_variables.scss +0 -31
  194. package/scss/orgchart/_index.scss +4 -0
  195. package/scss/orgchart/_layout.scss +6 -0
  196. package/scss/orgchart/_variables.scss +3 -3
  197. package/scss/pager/_index.scss +1 -0
  198. package/scss/pager/_layout.scss +13 -14
  199. package/scss/pager/_theme.scss +6 -6
  200. package/scss/pager/_variables.scss +7 -7
  201. package/scss/panelbar/_index.scss +1 -0
  202. package/scss/panelbar/_layout.scss +6 -53
  203. package/scss/panelbar/_theme.scss +9 -2
  204. package/scss/panelbar/_variables.scss +6 -2
  205. package/scss/pdf-viewer/_layout.scss +20 -29
  206. package/scss/pdf-viewer/_variables.scss +2 -5
  207. package/scss/pivotgrid/_index.scss +1 -0
  208. package/scss/pivotgrid/_layout.scss +78 -110
  209. package/scss/pivotgrid/_theme.scss +40 -74
  210. package/scss/pivotgrid/_variables.scss +1 -4
  211. package/scss/popover/_layout.scss +6 -1
  212. package/scss/popup/_index.scss +0 -4
  213. package/scss/popup/_layout.scss +6 -284
  214. package/scss/popup/_theme.scss +2 -159
  215. package/scss/popup/_variables.scss +2 -7
  216. package/scss/progressbar/_layout.scss +6 -0
  217. package/scss/radio/_index.scss +2 -0
  218. package/scss/radio/_layout.scss +116 -143
  219. package/scss/radio/_theme.scss +25 -25
  220. package/scss/radio/_variables.scss +134 -52
  221. package/scss/radio/index.md +0 -0
  222. package/scss/rating/_layout.scss +7 -10
  223. package/scss/scheduler/_index.scss +1 -1
  224. package/scss/scheduler/_layout.scss +36 -14
  225. package/scss/scheduler/_theme.scss +1 -1
  226. package/scss/scrollview/_layout.scss +7 -2
  227. package/scss/scrollview/_theme.scss +1 -1
  228. package/scss/scrollview/_variables.scss +7 -7
  229. package/scss/searchbox/_layout.scss +1 -18
  230. package/scss/searchbox/_theme.scss +1 -46
  231. package/scss/searchbox/_variables.scss +0 -20
  232. package/scss/skeleton/_layout.scss +1 -1
  233. package/scss/skeleton/_theme.scss +0 -2
  234. package/scss/slider/_layout.scss +68 -159
  235. package/scss/slider/_theme.scss +0 -10
  236. package/scss/slider/_variables.scss +10 -10
  237. package/scss/slider/images/slider-h.scss +1 -1
  238. package/scss/slider/images/slider-v.scss +1 -1
  239. package/scss/spreadsheet/_index.scss +2 -1
  240. package/scss/spreadsheet/_layout.scss +39 -64
  241. package/scss/spreadsheet/_theme.scss +19 -19
  242. package/scss/spreadsheet/images/image-default.scss +1 -1
  243. package/scss/stepper/_layout.scss +6 -1
  244. package/scss/stepper/_variables.scss +1 -1
  245. package/scss/styling/_index.scss +1 -1
  246. package/scss/switch/_index.scss +0 -2
  247. package/scss/switch/_layout.scss +99 -83
  248. package/scss/switch/_theme.scss +91 -93
  249. package/scss/switch/_variables.scss +190 -83
  250. package/scss/switch/index.md +0 -0
  251. package/scss/table/_index.scss +19 -0
  252. package/scss/table/_layout.scss +275 -0
  253. package/scss/table/_theme.scss +82 -0
  254. package/scss/table/_variables.scss +141 -0
  255. package/scss/tabstrip/_index.scss +1 -0
  256. package/scss/tabstrip/_layout.scss +37 -5
  257. package/scss/tabstrip/_theme.scss +1 -0
  258. package/scss/tabstrip/_variables.scss +3 -3
  259. package/scss/taskboard/_layout.scss +8 -7
  260. package/scss/taskboard/_theme.scss +1 -1
  261. package/scss/taskboard/_variables.scss +0 -2
  262. package/scss/textarea/_layout.scss +1 -89
  263. package/scss/textarea/_theme.scss +1 -66
  264. package/scss/textarea/_variables.scss +0 -53
  265. package/scss/textbox/_layout.scss +1 -73
  266. package/scss/textbox/_theme.scss +1 -70
  267. package/scss/textbox/_variables.scss +1 -2
  268. package/scss/timeline/_layout.scss +12 -8
  269. package/scss/timeline/_variables.scss +7 -7
  270. package/scss/timepicker/_index.scss +15 -0
  271. package/scss/timepicker/_layout.scss +6 -0
  272. package/scss/timepicker/_theme.scss +6 -0
  273. package/scss/timepicker/_variables.scss +1 -0
  274. package/scss/timeselector/_index.scss +13 -0
  275. package/scss/timeselector/_layout.scss +208 -0
  276. package/scss/timeselector/_theme.scss +70 -0
  277. package/scss/timeselector/_variables.scss +32 -0
  278. package/scss/toolbar/_index.scss +1 -0
  279. package/scss/toolbar/_layout.scss +45 -4
  280. package/scss/toolbar/_theme.scss +41 -7
  281. package/scss/toolbar/_variables.scss +3 -1
  282. package/scss/tooltip/_layout.scss +6 -1
  283. package/scss/treelist/_layout.scss +4 -0
  284. package/scss/treeview/_layout.scss +135 -122
  285. package/scss/treeview/_theme.scss +51 -42
  286. package/scss/treeview/_variables.scss +125 -46
  287. package/scss/typography/_variables.scss +4 -4
  288. package/scss/upload/_layout.scss +12 -87
  289. package/scss/utils/_border.scss +15 -2
  290. package/scss/utils/_display.scss +1 -0
  291. package/scss/utils/_flex.scss +13 -3
  292. package/scss/utils/_grid.scss +2 -0
  293. package/scss/utils/_index.scss +1 -0
  294. package/scss/utils/_position.scss +2 -2
  295. package/scss/utils/_spacing.scss +24 -0
  296. package/scss/utils/_table-layout.scss +1 -0
  297. package/scss/utils/_text.scss +2 -0
  298. package/scss/{common/_decoration.scss → utils/_theme-colors.scss} +16 -19
  299. package/scss/utils/_transform.scss +2 -0
  300. package/scss/virtual-scroller/_index.scss +10 -0
  301. package/scss/virtual-scroller/_layout.scss +35 -0
  302. package/scss/virtual-scroller/_theme.scss +3 -0
  303. package/scss/virtual-scroller/_variables.scss +1 -0
  304. package/scss/window/_layout.scss +6 -7
  305. package/scss/window/_variables.scss +6 -7
  306. package/scss/wizard/_layout.scss +5 -3
  307. package/scss/colorpicker/images/alpha-slider-bgr-reversed.png +0 -0
  308. package/scss/colorpicker/images/alpha-slider-bgr-reversed.scss +0 -3
  309. package/scss/colorpicker/images/alpha-slider-bgr.png +0 -0
  310. package/scss/colorpicker/images/alpha-slider-bgr.scss +0 -3
  311. package/scss/datetime/_layout.scss +0 -528
  312. package/scss/datetime/_theme.scss +0 -297
  313. package/scss/datetime/_variables.scss +0 -53
  314. package/scss/no-flexbox.scss +0 -72
@@ -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
  }
@@ -1,84 +1,191 @@
1
1
  // Switch
2
- $switch-size: 60px !default;
3
- $switch-border-radius: 9999px !default;
4
-
5
- $switch-font-family: $font-family !default;
6
- $switch-font-size: $font-size-xs !default;
7
- $switch-line-height: $line-height !default;
8
-
9
- $switch-track-size: null !default;
10
- $switch-container-border-width: null !default;
11
- $switch-container-padding-x: 0px !default;
12
- $switch-container-padding-y: 0px !default;
13
-
14
- $switch-handle-size: 30px !default;
15
- $switch-handle-border-radius: 9999px !default;
16
- $switch-handle-border-width: 1px !default;
17
- $switch-thumb-start-x: 0px !default;
18
- // TODO: Remove width property from jQuery and Blazor, and do not use 100% for thumb X calc
19
- $switch-thumb-end-x: calc( 100% - #{$switch-handle-size} ) !default;
20
-
21
- $switch-label-offset: 8px !default;
22
- $switch-label-width: calc( 100% - (#{$switch-handle-size} + #{$switch-label-offset} + #{$switch-container-padding-x} ) ) !default;
23
- $switch-label-text-transform: uppercase !default;
24
- $switch-label-display: inline !default;
25
-
26
- $switch-container-shadow: inset 0 0 0 1px $base-border !default;
27
- $switch-container-hovered-shadow: inset 0 0 0 1px $hovered-border !default;
28
- $switch-container-focused-shadow: inset 0 0 0 3px rgba( black, .06) !default;
29
-
30
- $switch-on-bg: $primary !default;
31
- $switch-on-text: contrast-wcag( $switch-on-bg ) !default;
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
-
58
- $switch-off-bg: $component-bg !default;
59
- $switch-off-text: $component-text !default;
60
- $switch-off-border: null !default;
61
- $switch-off-gradient: null !default;
62
- $switch-off-shadow: null !default;
63
-
64
- $switch-off-hovered-bg: $switch-off-bg !default;
65
- $switch-off-hovered-text: $switch-off-text !default;
66
- $switch-off-hovered-border: null !default;
67
- $switch-off-hovered-gradient: null !default;
68
-
69
- $switch-off-focused-bg: null !default;
70
- $switch-off-focused-text: null !default;
71
- $switch-off-focused-border: null !default;
72
- $switch-off-focused-gradient: null !default;
73
- $switch-off-focused-shadow: null !default;
74
-
75
- $switch-off-handle-bg: $switch-on-handle-bg !default;
76
- $switch-off-handle-text: $switch-off-text !default;
77
- $switch-off-handle-border: $switch-on-handle-border !default;
78
- $switch-off-handle-gradient: null !default;
79
- $switch-off-handle-shadow: null !default;
80
-
81
- $switch-off-handle-hovered-bg: $switch-on-handle-hovered-bg !default;
82
- $switch-off-handle-hovered-text: $switch-off-text !default;
83
- $switch-off-handle-hovered-border: $switch-on-handle-hovered-border !default;
84
- $switch-off-handle-hovered-gradient: null !default;
2
+
3
+ /// Font family of the switch.
4
+ /// @group switch
5
+ $kendo-switch-font-family: null !default;
6
+
7
+ /// Border width of the switch track.
8
+ /// @group switch
9
+ $kendo-switch-track-border-width: 1px !default;
10
+
11
+ /// Border width of the switch thumb.
12
+ /// @group switch
13
+ $kendo-switch-thumb-border-width: 1px !default;
14
+
15
+ /// Text transform of the switch label.
16
+ /// @group switch
17
+ $kendo-switch-label-text-transform: uppercase !default;
18
+ /// Display of the switch label.
19
+ /// @group switch
20
+ $kendo-switch-label-display: inline !default;
21
+
22
+ /// Map with the different switch sizes.
23
+ /// @group switch
24
+ $kendo-switch-sizes: (
25
+ sm: ( font-size: 10px, track-width: 52px, track-height: 26px, thumb-width: 26px, thumb-height: 26px, thumb-offset: 0px, label-offset: 4px ),
26
+ md: ( font-size: 10px, track-width: 60px, track-height: 30px, thumb-width: 30px, thumb-height: 30px, thumb-offset: 0px, label-offset: 6px ),
27
+ lg: ( font-size: 10px, track-width: 68px, track-height: 34px, thumb-width: 34px, thumb-height: 34px, thumb-offset: 0px, label-offset: 8px )
28
+ ) !default;
29
+
30
+ /// The background of the track when the switch is not checked.
31
+ /// @group switch
32
+ $kendo-switch-off-track-bg: $component-bg !default;
33
+ /// The text color of the track when the switch is not checked.
34
+ /// @group switch
35
+ $kendo-switch-off-track-text: $component-text !default;
36
+ /// The border color of the track when the switch is not checked.
37
+ /// @group switch
38
+ $kendo-switch-off-track-border: try-shade( $kendo-switch-off-track-bg, 8% ) !default;
39
+ /// The background gradient of the track when the switch is not checked.
40
+ /// @group switch
41
+ $kendo-switch-off-track-gradient: null !default;
42
+
43
+ /// The background of the track when the hovered switch is not checked.
44
+ /// @group switch
45
+ $kendo-switch-off-track-hover-bg: null !default;
46
+ /// The text color of the track when the hovered switch is not checked.
47
+ /// @group switch
48
+ $kendo-switch-off-track-hover-text: null !default;
49
+ /// The border color of the track when the hovered switch is not checked.
50
+ /// @group switch
51
+ $kendo-switch-off-track-hover-border: null !default;
52
+ /// The background gradient of the track when the hovered switch is not checked.
53
+ /// @group switch
54
+ $kendo-switch-off-track-hover-gradient: null !default;
55
+
56
+ /// The background of the track when the focused switch is not checked.
57
+ /// @group switch
58
+ $kendo-switch-off-track-focus-bg: null !default;
59
+ /// The text color of the track when the focused switch is not checked.
60
+ /// @group switch
61
+ $kendo-switch-off-track-focus-text: null !default;
62
+ /// The border color of the track when the focused switch is not checked.
63
+ /// @group switch
64
+ $kendo-switch-off-track-focus-border: null !default;
65
+ /// The background gradient of the track when the focused switch is not checked.
66
+ /// @group switch
67
+ $kendo-switch-off-track-focus-gradient: null !default;
68
+ /// The ring around the track when the focused switch is not checked.
69
+ /// @group switch
70
+ $kendo-switch-off-track-focus-ring: 2px solid rgba( if( $dark-theme, $white, $black ) , .08 ) !default;
71
+
72
+ /// The background of the track when the disabled switch is not checked.
73
+ /// @group switch
74
+ $kendo-switch-off-track-disabled-bg: null !default;
75
+ /// The text color of the track when the disabled switch is not checked.
76
+ /// @group switch
77
+ $kendo-switch-off-track-disabled-text: null !default;
78
+ /// The border color of the track when the disabled switch is not checked.
79
+ /// @group switch
80
+ $kendo-switch-off-track-disabled-border: null !default;
81
+ /// The background gradient of the track when the disabled switch is not checked.
82
+ /// @group switch
83
+ $kendo-switch-off-track-disabled-gradient: null !default;
84
+
85
+ /// The background of the thumb when the switch is not checked.
86
+ /// @group switch
87
+ $kendo-switch-off-thumb-bg: $base-bg !default;
88
+ /// The text color of the thumb when the switch is not checked.
89
+ /// @group switch
90
+ $kendo-switch-off-thumb-text: $base-text !default;
91
+ /// The border color of the thumb when the switch is not checked.
92
+ /// @group switch
93
+ $kendo-switch-off-thumb-border: $base-border !default;
94
+ /// The background gradient of the thumb when the switch is not checked.
95
+ /// @group switch
96
+ $kendo-switch-off-thumb-gradient: null !default;
97
+
98
+ /// The background of the thumb when the hovered switch is not checked.
99
+ /// @group switch
100
+ $kendo-switch-off-thumb-hover-bg: null !default;
101
+ /// The text color of the thumb when the hovered switch is not checked.
102
+ /// @group switch
103
+ $kendo-switch-off-thumb-hover-text: null !default;
104
+ /// The border color of the thumb when the hovered switch is not checked.
105
+ /// @group switch
106
+ $kendo-switch-off-thumb-hover-border: null !default;
107
+ /// The background gradient of the thumb when the hovered switch is not checked.
108
+ /// @group switch
109
+ $kendo-switch-off-thumb-hover-gradient: null !default;
110
+
111
+
112
+ /// The background of the track when the switch is checked.
113
+ /// @group switch
114
+ $kendo-switch-on-track-bg: $primary !default;
115
+ /// The text color of the track when the switch is checked.
116
+ /// @group switch
117
+ $kendo-switch-on-track-text: contrast-wcag( $kendo-switch-on-track-bg ) !default;
118
+ /// The border color of the track when the switch is checked.
119
+ /// @group switch
120
+ $kendo-switch-on-track-border: $kendo-switch-on-track-bg !default;
121
+ /// The background gradient of the track when the switch is checked.
122
+ /// @group switch
123
+ $kendo-switch-on-track-gradient: null !default;
124
+
125
+ /// The background of the track when the hovered switch is checked.
126
+ /// @group switch
127
+ $kendo-switch-on-track-hover-bg: null !default;
128
+ /// The text color of the track when the hovered switch is checked.
129
+ /// @group switch
130
+ $kendo-switch-on-track-hover-text: null !default;
131
+ /// The border color of the track when the hovered switch is checked.
132
+ /// @group switch
133
+ $kendo-switch-on-track-hover-border: null !default;
134
+ /// The background gradient of the track when the hovered switch is checked.
135
+ /// @group switch
136
+ $kendo-switch-on-track-hover-gradient: null !default;
137
+
138
+ /// The background of the track when the focused switch is checked.
139
+ /// @group switch
140
+ $kendo-switch-on-track-focus-bg: null !default;
141
+ /// The text color of the track when the focused switch is checked.
142
+ /// @group switch
143
+ $kendo-switch-on-track-focus-text: null !default;
144
+ /// The border color of the track when the focused switch is checked.
145
+ /// @group switch
146
+ $kendo-switch-on-track-focus-border: null !default;
147
+ /// The background gradient of the track when the focused switch is checked.
148
+ /// @group switch
149
+ $kendo-switch-on-track-focus-gradient: null !default;
150
+ /// The ring around the track when the focused switch is checked.
151
+ /// @group switch
152
+ $kendo-switch-on-track-focus-ring: 2px solid rgba( $kendo-switch-on-track-border, .25 ) !default;
153
+
154
+ /// The background of the track when the disabled switch is checked.
155
+ /// @group switch
156
+ $kendo-switch-on-track-disabled-bg: null !default;
157
+ /// The text color of the track when the disabled switch is checked.
158
+ /// @group switch
159
+ $kendo-switch-on-track-disabled-text: null !default;
160
+ /// The border color of the track when the disabled switch is checked.
161
+ /// @group switch
162
+ $kendo-switch-on-track-disabled-border: null !default;
163
+ /// The background gradient of the track when the disabled switch is checked.
164
+ /// @group switch
165
+ $kendo-switch-on-track-disabled-gradient: null !default;
166
+
167
+ /// The background of the thumb when the switch is checked.
168
+ /// @group switch
169
+ $kendo-switch-on-thumb-bg: $base-bg !default;
170
+ /// The text color of the thumb when the switch is checked.
171
+ /// @group switch
172
+ $kendo-switch-on-thumb-text: $base-text !default;
173
+ /// The border color of the thumb when the switch is checked.
174
+ /// @group switch
175
+ $kendo-switch-on-thumb-border: $base-border !default;
176
+ /// The background gradient of the thumb when the switch is checked.
177
+ /// @group switch
178
+ $kendo-switch-on-thumb-gradient: null !default;
179
+
180
+ /// The background of the thumb when the hovered switch is checked.
181
+ /// @group switch
182
+ $kendo-switch-on-thumb-hover-bg: null !default;
183
+ /// The text color of the thumb when the hovered switch is checked.
184
+ /// @group switch
185
+ $kendo-switch-on-thumb-hover-text: null !default;
186
+ /// The border color of the thumb when the hovered switch is checked.
187
+ /// @group switch
188
+ $kendo-switch-on-thumb-hover-border: null !default;
189
+ /// The background gradient of the thumb when the hovered switch is checked.
190
+ /// @group switch
191
+ $kendo-switch-on-thumb-hover-gradient: null !default;
File without changes
@@ -0,0 +1,19 @@
1
+ @import "../core/_index.scss";
2
+
3
+
4
+ // Dependencies
5
+ @import "../common/_index.scss";
6
+ @import "../input/_index.scss";
7
+ @import "../floating-label/_index.scss";
8
+ @import "../combobox/_index.scss";
9
+ @import "../popup/_index.scss";
10
+ @import "../toolbar/_variables.scss";
11
+ @import "../menu/_variables.scss";
12
+ @import "../grid/_variables.scss";
13
+
14
+
15
+ // Component
16
+ @import "_variables.scss";
17
+ @import "_layout.scss";
18
+ @import "_theme.scss";
19
+