@progress/kendo-theme-default 5.0.0-next.5 → 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 (250) hide show
  1. package/README.md +5 -8
  2. package/dist/all.css +9947 -12028
  3. package/dist/all.scss +14875 -15317
  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 +2 -19
  13. package/scss/action-buttons/_layout.scss +9 -0
  14. package/scss/action-sheet/_layout.scss +6 -0
  15. package/scss/adaptive/_layout.scss +50 -86
  16. package/scss/adaptive/_theme.scss +0 -9
  17. package/scss/all.scss +1 -154
  18. package/scss/appbar/_layout.scss +28 -3
  19. package/scss/appbar/_variables.scss +1 -1
  20. package/scss/autocomplete/_index.scss +1 -0
  21. package/scss/autocomplete/_layout.scss +1 -53
  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 +18 -8
  27. package/scss/avatar/index.md +0 -0
  28. package/scss/badge/_layout.scss +6 -0
  29. package/scss/bottom-navigation/_layout.scss +6 -0
  30. package/scss/breadcrumb/_layout.scss +6 -13
  31. package/scss/button/_index.scss +2 -0
  32. package/scss/button/_layout.scss +100 -166
  33. package/scss/button/_theme.scss +188 -203
  34. package/scss/button/_variables.scss +57 -28
  35. package/scss/calendar/_index.scss +1 -0
  36. package/scss/calendar/_layout.scss +2 -14
  37. package/scss/calendar/_theme.scss +1 -19
  38. package/scss/captcha/_layout.scss +6 -0
  39. package/scss/card/_layout.scss +10 -53
  40. package/scss/card/_theme.scss +2 -1
  41. package/scss/card/_variables.scss +4 -4
  42. package/scss/chat/_layout.scss +35 -32
  43. package/scss/chat/_theme.scss +0 -31
  44. package/scss/chat/_variables.scss +3 -18
  45. package/scss/checkbox/_index.scss +2 -0
  46. package/scss/checkbox/_layout.scss +112 -163
  47. package/scss/checkbox/_theme.scss +6 -4
  48. package/scss/checkbox/_variables.scss +65 -74
  49. package/scss/checkbox/index.md +0 -0
  50. package/scss/chip/_index.scss +1 -0
  51. package/scss/chip/_layout.scss +127 -127
  52. package/scss/chip/_theme.scss +90 -387
  53. package/scss/chip/_variables.scss +142 -191
  54. package/scss/chip/index.md +0 -0
  55. package/scss/color-preview/_layout.scss +51 -8
  56. package/scss/color-preview/_theme.scss +1 -15
  57. package/scss/color-preview/_variables.scss +1 -0
  58. package/scss/coloreditor/_layout.scss +11 -1
  59. package/scss/coloreditor/_variables.scss +3 -3
  60. package/scss/colorgradient/_layout.scss +13 -4
  61. package/scss/colorpalette/_layout.scss +6 -0
  62. package/scss/colorpicker/_index.scss +1 -2
  63. package/scss/colorpicker/_layout.scss +7 -130
  64. package/scss/colorpicker/_theme.scss +2 -64
  65. package/scss/colorpicker/_variables.scss +1 -22
  66. package/scss/combobox/_index.scss +1 -0
  67. package/scss/combobox/_layout.scss +3 -83
  68. package/scss/combobox/_theme.scss +3 -124
  69. package/scss/combobox/_variables.scss +1 -33
  70. package/scss/common/_base.scss +1 -0
  71. package/scss/common/_loading.scss +15 -13
  72. package/scss/core/_normalize.scss +0 -11
  73. package/scss/core/functions/_colors.scss +4 -1
  74. package/scss/core/mixins/_index.scss +1 -0
  75. package/scss/core/mixins/_module-system.scss +149 -0
  76. package/scss/dataviz/_index.scss +1 -0
  77. package/scss/dataviz/_variables.scss +6 -6
  78. package/scss/dateinput/_index.scss +11 -0
  79. package/scss/dateinput/_layout.scss +6 -0
  80. package/scss/dateinput/_theme.scss +6 -0
  81. package/scss/dateinput/_variables.scss +1 -0
  82. package/scss/datepicker/_index.scss +13 -0
  83. package/scss/datepicker/_layout.scss +6 -0
  84. package/scss/datepicker/_theme.scss +6 -0
  85. package/scss/datepicker/_variables.scss +1 -0
  86. package/scss/{datetime → daterangepicker}/_index.scss +1 -2
  87. package/scss/daterangepicker/_layout.scss +39 -0
  88. package/scss/daterangepicker/_theme.scss +3 -0
  89. package/scss/daterangepicker/_variables.scss +1 -0
  90. package/scss/datetimepicker/_index.scss +17 -0
  91. package/scss/datetimepicker/_layout.scss +56 -0
  92. package/scss/datetimepicker/_theme.scss +6 -0
  93. package/scss/datetimepicker/_variables.scss +2 -0
  94. package/scss/drawer/_index.scss +1 -0
  95. package/scss/drawer/_layout.scss +6 -0
  96. package/scss/drawer/_variables.scss +1 -1
  97. package/scss/dropdowngrid/_layout.scss +9 -4
  98. package/scss/dropdowngrid/_theme.scss +9 -2
  99. package/scss/dropdowngrid/index.md +0 -0
  100. package/scss/dropdownlist/_index.scss +1 -0
  101. package/scss/dropdownlist/_layout.scss +20 -100
  102. package/scss/dropdownlist/_theme.scss +3 -91
  103. package/scss/dropdowntree/_layout.scss +5 -14
  104. package/scss/dropdowntree/_theme.scss +2 -1
  105. package/scss/dropdowntree/_variables.scss +2 -4
  106. package/scss/dropzone/_layout.scss +0 -16
  107. package/scss/editor/_layout.scss +105 -72
  108. package/scss/editor/_theme.scss +9 -0
  109. package/scss/editor/_variables.scss +8 -0
  110. package/scss/expansion-panel/_index.scss +1 -0
  111. package/scss/expansion-panel/_layout.scss +6 -1
  112. package/scss/expansion-panel/_variables.scss +2 -2
  113. package/scss/fab/_layout.scss +30 -58
  114. package/scss/fab/_theme.scss +43 -48
  115. package/scss/fab/_variables.scss +129 -72
  116. package/scss/fab/index.md +0 -0
  117. package/scss/filemanager/_theme.scss +1 -1
  118. package/scss/filter/_index.scss +1 -1
  119. package/scss/filter/_layout.scss +20 -6
  120. package/scss/filter/_theme.scss +3 -1
  121. package/scss/floating-label/_layout.scss +7 -0
  122. package/scss/forms/_index.scss +1 -1
  123. package/scss/forms/_layout.scss +18 -96
  124. package/scss/gantt/_index.scss +1 -1
  125. package/scss/gantt/_layout.scss +6 -4
  126. package/scss/grid/_index.scss +2 -1
  127. package/scss/grid/_layout.scss +144 -162
  128. package/scss/grid/_theme.scss +14 -20
  129. package/scss/grid/_variables.scss +10 -10
  130. package/scss/icons/_layout.scss +6 -1
  131. package/scss/icons/font/WebComponentsIcons.scss +1 -1
  132. package/scss/icons/font/WebComponentsIcons.ttf +0 -0
  133. package/scss/imageeditor/_layout.scss +10 -8
  134. package/scss/imageeditor/_variables.scss +1 -0
  135. package/scss/index.scss +157 -0
  136. package/scss/input/_index.scss +1 -1
  137. package/scss/input/_layout.scss +249 -27
  138. package/scss/input/_theme.scss +82 -2
  139. package/scss/input/_variables.scss +80 -58
  140. package/scss/list/_index.scss +12 -0
  141. package/scss/list/_layout.scss +241 -0
  142. package/scss/list/_theme.scss +91 -0
  143. package/scss/list/_variables.scss +248 -0
  144. package/scss/list/index.md +0 -0
  145. package/scss/listbox/_index.scss +2 -0
  146. package/scss/listbox/_layout.scss +10 -0
  147. package/scss/listbox/_variables.scss +1 -1
  148. package/scss/listview/_layout.scss +2 -9
  149. package/scss/map/_layout.scss +24 -0
  150. package/scss/maskedtextbox/_layout.scss +1 -1
  151. package/scss/maskedtextbox/_theme.scss +1 -1
  152. package/scss/mediaplayer/_layout.scss +19 -1
  153. package/scss/menu/_index.scss +2 -0
  154. package/scss/menu/_layout.scss +134 -74
  155. package/scss/menu/_theme.scss +33 -25
  156. package/scss/menu/_variables.scss +124 -35
  157. package/scss/multiselect/_index.scss +2 -0
  158. package/scss/multiselect/_layout.scss +3 -199
  159. package/scss/multiselect/_theme.scss +3 -139
  160. package/scss/multiselect/_variables.scss +0 -36
  161. package/scss/notification/_layout.scss +6 -22
  162. package/scss/numerictextbox/_layout.scss +6 -2
  163. package/scss/numerictextbox/_theme.scss +1 -1
  164. package/scss/numerictextbox/_variables.scss +1 -1
  165. package/scss/orgchart/_layout.scss +6 -0
  166. package/scss/orgchart/_variables.scss +2 -2
  167. package/scss/pager/_index.scss +1 -0
  168. package/scss/pager/_layout.scss +10 -11
  169. package/scss/pager/_theme.scss +4 -4
  170. package/scss/pager/_variables.scss +6 -6
  171. package/scss/panelbar/_index.scss +1 -0
  172. package/scss/panelbar/_layout.scss +6 -53
  173. package/scss/panelbar/_theme.scss +9 -2
  174. package/scss/panelbar/_variables.scss +6 -2
  175. package/scss/pdf-viewer/_layout.scss +23 -16
  176. package/scss/pdf-viewer/_variables.scss +2 -5
  177. package/scss/pivotgrid/_index.scss +1 -0
  178. package/scss/pivotgrid/_layout.scss +77 -108
  179. package/scss/pivotgrid/_theme.scss +39 -73
  180. package/scss/pivotgrid/_variables.scss +1 -4
  181. package/scss/popover/_layout.scss +6 -1
  182. package/scss/popup/_index.scss +0 -4
  183. package/scss/popup/_layout.scss +6 -248
  184. package/scss/popup/_theme.scss +2 -159
  185. package/scss/popup/_variables.scss +2 -7
  186. package/scss/progressbar/_layout.scss +6 -0
  187. package/scss/radio/_index.scss +2 -0
  188. package/scss/radio/_layout.scss +123 -165
  189. package/scss/radio/_theme.scss +4 -4
  190. package/scss/radio/_variables.scss +70 -91
  191. package/scss/radio/index.md +0 -0
  192. package/scss/rating/_layout.scss +6 -9
  193. package/scss/scheduler/_index.scss +1 -1
  194. package/scss/scheduler/_layout.scss +32 -13
  195. package/scss/scrollview/_layout.scss +6 -1
  196. package/scss/skeleton/_layout.scss +1 -1
  197. package/scss/slider/_layout.scss +67 -137
  198. package/scss/slider/_theme.scss +0 -6
  199. package/scss/spreadsheet/_index.scss +2 -1
  200. package/scss/spreadsheet/_layout.scss +35 -36
  201. package/scss/spreadsheet/_theme.scss +6 -6
  202. package/scss/stepper/_layout.scss +6 -1
  203. package/scss/switch/_layout.scss +64 -53
  204. package/scss/switch/_theme.scss +73 -75
  205. package/scss/switch/_variables.scss +107 -169
  206. package/scss/switch/index.md +0 -0
  207. package/scss/table/_index.scss +19 -0
  208. package/scss/table/_layout.scss +275 -0
  209. package/scss/table/_theme.scss +82 -0
  210. package/scss/table/_variables.scss +141 -0
  211. package/scss/tabstrip/_index.scss +1 -0
  212. package/scss/tabstrip/_layout.scss +37 -5
  213. package/scss/tabstrip/_theme.scss +1 -0
  214. package/scss/tabstrip/_variables.scss +3 -3
  215. package/scss/taskboard/_layout.scss +8 -3
  216. package/scss/taskboard/_variables.scss +0 -2
  217. package/scss/textarea/_layout.scss +3 -1
  218. package/scss/timeline/_layout.scss +8 -4
  219. package/scss/timepicker/_index.scss +15 -0
  220. package/scss/timepicker/_layout.scss +6 -0
  221. package/scss/timepicker/_theme.scss +6 -0
  222. package/scss/timepicker/_variables.scss +1 -0
  223. package/scss/timeselector/_index.scss +13 -0
  224. package/scss/timeselector/_layout.scss +208 -0
  225. package/scss/timeselector/_theme.scss +70 -0
  226. package/scss/timeselector/_variables.scss +32 -0
  227. package/scss/toolbar/_index.scss +1 -0
  228. package/scss/toolbar/_layout.scss +45 -3
  229. package/scss/toolbar/_theme.scss +41 -7
  230. package/scss/toolbar/_variables.scss +2 -0
  231. package/scss/tooltip/_layout.scss +6 -1
  232. package/scss/treelist/_layout.scss +4 -0
  233. package/scss/treeview/_layout.scss +135 -122
  234. package/scss/treeview/_theme.scss +51 -42
  235. package/scss/treeview/_variables.scss +125 -46
  236. package/scss/typography/_variables.scss +3 -3
  237. package/scss/upload/_layout.scss +6 -81
  238. package/scss/utils/_border.scss +1 -2
  239. package/scss/utils/_flex.scss +11 -3
  240. package/scss/virtual-scroller/_index.scss +10 -0
  241. package/scss/virtual-scroller/_layout.scss +35 -0
  242. package/scss/virtual-scroller/_theme.scss +3 -0
  243. package/scss/virtual-scroller/_variables.scss +1 -0
  244. package/scss/window/_layout.scss +13 -2
  245. package/scss/window/_variables.scss +1 -1
  246. package/scss/wizard/_layout.scss +4 -0
  247. package/scss/datetime/_layout.scss +0 -525
  248. package/scss/datetime/_theme.scss +0 -297
  249. package/scss/datetime/_variables.scss +0 -53
  250. package/scss/no-flexbox.scss +0 -71
@@ -2,14 +2,11 @@
2
2
 
3
3
  /// Font family of the switch.
4
4
  /// @group switch
5
- $kendo-switch-font-family: $font-family !default;
6
- /// Line height of the switch.
7
- /// @group switch
8
- $kendo-switch-line-height: $line-height !default;
5
+ $kendo-switch-font-family: null !default;
9
6
 
10
7
  /// Border width of the switch track.
11
8
  /// @group switch
12
- $kendo-switch-track-border-width: null !default;
9
+ $kendo-switch-track-border-width: 1px !default;
13
10
 
14
11
  /// Border width of the switch thumb.
15
12
  /// @group switch
@@ -25,229 +22,170 @@ $kendo-switch-label-display: inline !default;
25
22
  /// Map with the different switch sizes.
26
23
  /// @group switch
27
24
  $kendo-switch-sizes: (
28
- sm: 40px,
29
- md: 60px,
30
- lg: 80px
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 )
31
28
  ) !default;
32
29
 
33
- /// Map with the font sizes for the different switch sizes.
30
+ /// The background of the track when the switch is not checked.
34
31
  /// @group switch
35
- $kendo-switch-font-sizes: (
36
- sm: 8px,
37
- md: $font-size-xs,
38
- lg: $font-size-sm
39
- ) !default;
40
-
41
- /// Map with the horizontal padding of the switch track for the different switch sizes.
32
+ $kendo-switch-off-track-bg: $component-bg !default;
33
+ /// The text color of the track when the switch is not checked.
42
34
  /// @group switch
43
- $kendo-switch-track-padding-x-sizes: (
44
- sm: 0px,
45
- md: 0px,
46
- lg: 0px
47
- ) !default;
48
-
49
- /// Map with the vertical padding of the switch track for the different switch sizes.
35
+ $kendo-switch-off-track-text: $component-text !default;
36
+ /// The border color of the track when the switch is not checked.
50
37
  /// @group switch
51
- $kendo-switch-track-padding-y-sizes: (
52
- sm: 0px,
53
- md: 0px,
54
- lg: 0px
55
- ) !default;
56
-
57
- /// Map with the height difference of the switch track for the different switch sizes.
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.
58
40
  /// @group switch
59
- $kendo-switch-track-diff-sizes: (
60
- sm: 0px,
61
- md: 0px,
62
- lg: 0px
63
- ) !default;
64
-
65
- /// Map with the different switch thumb sizes.
66
- /// @group switch
67
- $kendo-switch-thumb-sizes: (
68
- sm: 20px,
69
- md: 30px,
70
- lg: 40px
71
- ) !default;
72
-
73
- /// Map with the offset of the switch thumb for the different switch sizes.
74
- /// @group switch
75
- $kendo-switch-thumb-offset-sizes: (
76
- sm: 0px,
77
- md: 0px,
78
- lg: 0px
79
- ) !default;
80
-
81
- /// Map with the offset of the switch label for the different switch sizes.
82
- /// @group switch
83
- $kendo-switch-label-offset-sizes: (
84
- sm: 6px,
85
- md: 8px,
86
- lg: 10px
87
- ) !default;
41
+ $kendo-switch-off-track-gradient: null !default;
88
42
 
89
- /// Map with the width of the switch label for the different switch sizes.
43
+ /// The background of the track when the hovered switch is not checked.
90
44
  /// @group switch
91
- $kendo-switch-label-width-sizes: (
92
- sm: calc( 100% - (#{map-get( $kendo-switch-thumb-sizes, "sm" )} + #{map-get( $kendo-switch-label-offset-sizes, "sm" )} + #{map-get( $kendo-switch-track-padding-x-sizes, "sm" )} ) ),
93
- md: calc( 100% - (#{map-get( $kendo-switch-thumb-sizes, "md" )} + #{map-get( $kendo-switch-label-offset-sizes, "md" )} + #{map-get( $kendo-switch-track-padding-x-sizes, "md" )} ) ),
94
- lg: calc( 100% - (#{map-get( $kendo-switch-thumb-sizes, "lg" )} + #{map-get( $kendo-switch-label-offset-sizes, "lg" )} + #{map-get( $kendo-switch-track-padding-x-sizes, "lg" )} ) )
95
- ) !default;
96
-
97
- /// The shadow of the switch track.
45
+ $kendo-switch-off-track-hover-bg: null !default;
46
+ /// The text color of the track when the hovered switch is not checked.
98
47
  /// @group switch
99
- $kendo-switch-track-shadow: inset 0 0 0 1px $base-border !default;
100
- /// The shadow of the switch track when the switch is hovered.
48
+ $kendo-switch-off-track-hover-text: null !default;
49
+ /// The border color of the track when the hovered switch is not checked.
101
50
  /// @group switch
102
- $kendo-switch-track-hover-shadow: inset 0 0 0 1px $hovered-border !default;
103
- /// The shadow of the switch track when the switch is focused.
51
+ $kendo-switch-off-track-hover-border: null !default;
52
+ /// The background gradient of the track when the hovered switch is not checked.
104
53
  /// @group switch
105
- $kendo-switch-track-focus-shadow: inset 0 0 0 3px rgba( black, .06) !default;
54
+ $kendo-switch-off-track-hover-gradient: null !default;
106
55
 
107
- /// The background of the switch when checked.
56
+ /// The background of the track when the focused switch is not checked.
108
57
  /// @group switch
109
- $kendo-switch-on-bg: $primary !default;
110
- /// The text color of the switch when checked.
58
+ $kendo-switch-off-track-focus-bg: null !default;
59
+ /// The text color of the track when the focused switch is not checked.
111
60
  /// @group switch
112
- $kendo-switch-on-text: contrast-wcag( $kendo-switch-on-bg ) !default;
113
- /// The border color of the switch when checked.
61
+ $kendo-switch-off-track-focus-text: null !default;
62
+ /// The border color of the track when the focused switch is not checked.
114
63
  /// @group switch
115
- $kendo-switch-on-border: null !default;
116
- /// The background gradient of the switch when checked.
64
+ $kendo-switch-off-track-focus-border: null !default;
65
+ /// The background gradient of the track when the focused switch is not checked.
117
66
  /// @group switch
118
- $kendo-switch-on-gradient: null !default;
119
- /// The shadow of the switch when checked.
67
+ $kendo-switch-off-track-focus-gradient: null !default;
68
+ /// The ring around the track when the focused switch is not checked.
120
69
  /// @group switch
121
- $kendo-switch-on-shadow: null !default;
70
+ $kendo-switch-off-track-focus-ring: 2px solid rgba( if( $dark-theme, $white, $black ) , .08 ) !default;
122
71
 
123
- /// The background of the hovered switch when checked.
72
+ /// The background of the track when the disabled switch is not checked.
124
73
  /// @group switch
125
- $kendo-switch-on-hover-bg: shade( $kendo-switch-on-bg ) !default;
126
- /// The text color of the hovered switch when checked.
74
+ $kendo-switch-off-track-disabled-bg: null !default;
75
+ /// The text color of the track when the disabled switch is not checked.
127
76
  /// @group switch
128
- $kendo-switch-on-hover-text: $kendo-switch-on-text !default;
129
- /// The border color of the hovered switch when checked.
77
+ $kendo-switch-off-track-disabled-text: null !default;
78
+ /// The border color of the track when the disabled switch is not checked.
130
79
  /// @group switch
131
- $kendo-switch-on-hover-border: null !default;
132
- /// The background gradient of the hovered switch when checked.
80
+ $kendo-switch-off-track-disabled-border: null !default;
81
+ /// The background gradient of the track when the disabled switch is not checked.
133
82
  /// @group switch
134
- $kendo-switch-on-hover-gradient: null !default;
83
+ $kendo-switch-off-track-disabled-gradient: null !default;
135
84
 
136
- /// The background of the focused switch when checked.
137
- /// @group switch
138
- $kendo-switch-on-focus-bg: null !default;
139
- /// The text color of the focused switch when checked.
85
+ /// The background of the thumb when the switch is not checked.
140
86
  /// @group switch
141
- $kendo-switch-on-focus-text: null !default;
142
- /// The border color of the focused switch when checked.
87
+ $kendo-switch-off-thumb-bg: $base-bg !default;
88
+ /// The text color of the thumb when the switch is not checked.
143
89
  /// @group switch
144
- $kendo-switch-on-focus-border: null !default;
145
- /// The background gradient of the focused switch when checked.
90
+ $kendo-switch-off-thumb-text: $base-text !default;
91
+ /// The border color of the thumb when the switch is not checked.
146
92
  /// @group switch
147
- $kendo-switch-on-focus-gradient: null !default;
148
- /// The shadow of the focused switch when checked.
93
+ $kendo-switch-off-thumb-border: $base-border !default;
94
+ /// The background gradient of the thumb when the switch is not checked.
149
95
  /// @group switch
150
- $kendo-switch-on-focus-shadow: null !default;
96
+ $kendo-switch-off-thumb-gradient: null !default;
151
97
 
152
- /// The background of the thumb when the switch is checked.
153
- /// @group switch
154
- $kendo-switch-on-thumb-bg: darken( white, 5 ) !default;
155
- /// The text color of the thumb when the switch is checked.
98
+ /// The background of the thumb when the hovered switch is not checked.
156
99
  /// @group switch
157
- $kendo-switch-on-thumb-text: $kendo-switch-on-text !default;
158
- /// The border color of the thumb when the switch is checked.
100
+ $kendo-switch-off-thumb-hover-bg: null !default;
101
+ /// The text color of the thumb when the hovered switch is not checked.
159
102
  /// @group switch
160
- $kendo-switch-on-thumb-border: $base-border !default;
161
- /// The background gradient of the thumb when the switch is checked.
103
+ $kendo-switch-off-thumb-hover-text: null !default;
104
+ /// The border color of the thumb when the hovered switch is not checked.
162
105
  /// @group switch
163
- $kendo-switch-on-thumb-gradient: null !default;
164
- /// The shadow of the thumb when the switch is checked.
106
+ $kendo-switch-off-thumb-hover-border: null !default;
107
+ /// The background gradient of the thumb when the hovered switch is not checked.
165
108
  /// @group switch
166
- $kendo-switch-on-thumb-shadow: null !default;
109
+ $kendo-switch-off-thumb-hover-gradient: null !default;
167
110
 
168
- /// The background of the thumb when the hovered switch is checked.
111
+
112
+ /// The background of the track when the switch is checked.
169
113
  /// @group switch
170
- $kendo-switch-on-thumb-hover-bg: darken( white, 7 ) !default;
171
- /// The text color of the thumb when the hovered switch is checked.
114
+ $kendo-switch-on-track-bg: $primary !default;
115
+ /// The text color of the track when the switch is checked.
172
116
  /// @group switch
173
- $kendo-switch-on-thumb-hover-text: $kendo-switch-on-text !default;
174
- /// The border color of the thumb when the hovered switch is checked.
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.
175
119
  /// @group switch
176
- $kendo-switch-on-thumb-hover-border: $hovered-border !default;
177
- /// The background gradient of the thumb when the hovered switch is checked.
120
+ $kendo-switch-on-track-border: $kendo-switch-on-track-bg !default;
121
+ /// The background gradient of the track when the switch is checked.
178
122
  /// @group switch
179
- $kendo-switch-on-thumb-hover-gradient: null !default;
123
+ $kendo-switch-on-track-gradient: null !default;
180
124
 
181
- /// The background of the switch when not checked.
125
+ /// The background of the track when the hovered switch is checked.
182
126
  /// @group switch
183
- $kendo-switch-off-bg: $component-bg !default;
184
- /// The text color of the switch when not checked.
127
+ $kendo-switch-on-track-hover-bg: null !default;
128
+ /// The text color of the track when the hovered switch is checked.
185
129
  /// @group switch
186
- $kendo-switch-off-text: $component-text !default;
187
- /// The border color of the switch when not checked.
130
+ $kendo-switch-on-track-hover-text: null !default;
131
+ /// The border color of the track when the hovered switch is checked.
188
132
  /// @group switch
189
- $kendo-switch-off-border: null !default;
190
- /// The background gradient of the switch when not checked.
133
+ $kendo-switch-on-track-hover-border: null !default;
134
+ /// The background gradient of the track when the hovered switch is checked.
191
135
  /// @group switch
192
- $kendo-switch-off-gradient: null !default;
193
- /// The shadow of the switch when not checked.
194
- /// @group switch
195
- $kendo-switch-off-shadow: null !default;
136
+ $kendo-switch-on-track-hover-gradient: null !default;
196
137
 
197
- /// The background of the hovered switch when not checked.
138
+ /// The background of the track when the focused switch is checked.
198
139
  /// @group switch
199
- $kendo-switch-off-hover-bg: $kendo-switch-off-bg !default;
200
- /// The text color of the hovered switch when not checked.
140
+ $kendo-switch-on-track-focus-bg: null !default;
141
+ /// The text color of the track when the focused switch is checked.
201
142
  /// @group switch
202
- $kendo-switch-off-hover-text: $kendo-switch-off-text !default;
203
- /// The border color of the hovered switch when not checked.
143
+ $kendo-switch-on-track-focus-text: null !default;
144
+ /// The border color of the track when the focused switch is checked.
204
145
  /// @group switch
205
- $kendo-switch-off-hover-border: null !default;
206
- /// The background gradient of the hovered switch when not checked.
146
+ $kendo-switch-on-track-focus-border: null !default;
147
+ /// The background gradient of the track when the focused switch is checked.
207
148
  /// @group switch
208
- $kendo-switch-off-hover-gradient: null !default;
209
-
210
- /// The background of the focused switch when not checked.
149
+ $kendo-switch-on-track-focus-gradient: null !default;
150
+ /// The ring around the track when the focused switch is checked.
211
151
  /// @group switch
212
- $kendo-switch-off-focus-bg: null !default;
213
- /// The text color of the focused switch when not checked.
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.
214
155
  /// @group switch
215
- $kendo-switch-off-focus-text: null !default;
216
- /// The border color of the focused switch when not checked.
156
+ $kendo-switch-on-track-disabled-bg: null !default;
157
+ /// The text color of the track when the disabled switch is checked.
217
158
  /// @group switch
218
- $kendo-switch-off-focus-border: null !default;
219
- /// The background gradient of the focused switch when not checked.
159
+ $kendo-switch-on-track-disabled-text: null !default;
160
+ /// The border color of the track when the disabled switch is checked.
220
161
  /// @group switch
221
- $kendo-switch-off-focus-gradient: null !default;
222
- /// The shadow of the focused switch when not checked.
162
+ $kendo-switch-on-track-disabled-border: null !default;
163
+ /// The background gradient of the track when the disabled switch is checked.
223
164
  /// @group switch
224
- $kendo-switch-off-focus-shadow: null !default;
165
+ $kendo-switch-on-track-disabled-gradient: null !default;
225
166
 
226
- /// The background of the thumb when the switch is not checked.
227
- /// @group switch
228
- $kendo-switch-off-thumb-bg: $kendo-switch-on-thumb-bg !default;
229
- /// The text color of the thumb when the switch is not checked.
167
+ /// The background of the thumb when the switch is checked.
230
168
  /// @group switch
231
- $kendo-switch-off-thumb-text: $kendo-switch-off-text !default;
232
- /// The border color of the thumb when the switch is not checked.
169
+ $kendo-switch-on-thumb-bg: $base-bg !default;
170
+ /// The text color of the thumb when the switch is checked.
233
171
  /// @group switch
234
- $kendo-switch-off-thumb-border: $kendo-switch-on-thumb-border !default;
235
- /// The background gradient of the thumb when the switch is not checked.
172
+ $kendo-switch-on-thumb-text: $base-text !default;
173
+ /// The border color of the thumb when the switch is checked.
236
174
  /// @group switch
237
- $kendo-switch-off-thumb-gradient: null !default;
238
- /// The shadow of the thumb when the switch is not checked.
175
+ $kendo-switch-on-thumb-border: $base-border !default;
176
+ /// The background gradient of the thumb when the switch is checked.
239
177
  /// @group switch
240
- $kendo-switch-off-thumb-shadow: null !default;
178
+ $kendo-switch-on-thumb-gradient: null !default;
241
179
 
242
- /// The background of the thumb when the hovered switch is not checked.
180
+ /// The background of the thumb when the hovered switch is checked.
243
181
  /// @group switch
244
- $kendo-switch-off-thumb-hover-bg: $kendo-switch-on-thumb-hover-bg !default;
245
- /// The text color of the thumb when the hovered switch is not checked.
182
+ $kendo-switch-on-thumb-hover-bg: null !default;
183
+ /// The text color of the thumb when the hovered switch is checked.
246
184
  /// @group switch
247
- $kendo-switch-off-thumb-hover-text: $kendo-switch-off-text !default;
248
- /// The border color of the thumb when the hovered switch is not checked.
185
+ $kendo-switch-on-thumb-hover-text: null !default;
186
+ /// The border color of the thumb when the hovered switch is checked.
249
187
  /// @group switch
250
- $kendo-switch-off-thumb-hover-border: $kendo-switch-on-thumb-hover-border !default;
251
- /// The background gradient of the thumb when the hovered switch is not checked.
188
+ $kendo-switch-on-thumb-hover-border: null !default;
189
+ /// The background gradient of the thumb when the hovered switch is checked.
252
190
  /// @group switch
253
- $kendo-switch-off-thumb-hover-gradient: null !default;
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
+
@@ -0,0 +1,275 @@
1
+ @include exports( "table/layout" ) {
2
+
3
+ // Table
4
+ .k-table {
5
+ width: 100%;
6
+ max-width: none;
7
+ border-width: $kendo-table-border-width;
8
+ border-style: solid;
9
+ font-size: $kendo-table-font-size;
10
+ line-height: $kendo-table-line-height;
11
+ text-align: left;
12
+ border-collapse: collapse;
13
+ border-spacing: 0;
14
+ empty-cells: show;
15
+ outline: none;
16
+ }
17
+
18
+
19
+ // Data table
20
+ .k-data-table {
21
+ border-width: $kendo-table-border-width;
22
+ border-style: solid;
23
+
24
+ .k-table {
25
+ table-layout: fixed;
26
+ }
27
+ }
28
+
29
+
30
+ // Table native parts
31
+ .k-table-thead,
32
+ .k-table-tbody,
33
+ .k-table-tfoot,
34
+ .k-table-row,
35
+ .k-table-alt-row {
36
+ border-color: inherit;
37
+ text-align: inherit;
38
+ }
39
+ .k-table-th,
40
+ .k-table-td {
41
+ padding: $kendo-table-cell-padding-y $kendo-table-cell-padding-x;
42
+ border-width: 0 0 $grid-cell-horizontal-border-width $kendo-table-cell-vertical-border-width;
43
+ border-style: solid;
44
+ border-color: inherit;
45
+ box-sizing: border-box;
46
+ font-weight: normal;
47
+ text-align: inherit;
48
+ white-space: nowrap;
49
+ text-overflow: ellipsis;
50
+ display: table-cell;
51
+ overflow: hidden;
52
+ position: relative;
53
+
54
+ &:first-child {
55
+ border-left-width: 0;
56
+ }
57
+ }
58
+ .k-table-th {
59
+ border-bottom-width: 1px;
60
+ }
61
+
62
+
63
+ // Table header
64
+ .k-table-header {
65
+ padding-inline-end: var(--kendo-scrollbar-width);
66
+ border-width: 0 0 1px 0;
67
+ border-style: solid;
68
+ box-sizing: border-box;
69
+
70
+ .k-table {
71
+ border-width: 0;
72
+ }
73
+ }
74
+ .k-table-header-wrap {
75
+ margin-right: -1px;
76
+ width: 100%;
77
+ border-width: 0 $kendo-table-cell-vertical-border-width 0 0;
78
+ border-style: solid;
79
+ border-color: inherit;
80
+ overflow: hidden;
81
+ }
82
+ .k-table-header,
83
+ .k-table-header-wrap {
84
+ > .k-table {
85
+ margin-bottom: -1px;
86
+ }
87
+ }
88
+ .k-table-group-sticky-header {
89
+ flex: none;
90
+
91
+ .k-table-th {
92
+ display: flex;
93
+ flex-flow: row nowrap;
94
+ align-items: center;
95
+ align-content: center;
96
+ }
97
+ }
98
+
99
+
100
+ // Table list
101
+ .k-table-list {
102
+ margin: 0;
103
+ padding: 0;
104
+ width: 100%;
105
+ max-width: none;
106
+ border-width: 0;
107
+ display: table;
108
+ border-collapse: collapse;
109
+ border-spacing: 0;
110
+ table-layout: fixed;
111
+ empty-cells: show;
112
+ list-style: none;
113
+ outline: none;
114
+
115
+ .k-table-row,
116
+ .k-table-group-row {
117
+ width: 100%;
118
+ box-sizing: border-box;
119
+ display: table-row;
120
+ position: relative;
121
+ }
122
+ .k-table-row.k-first {
123
+ border-top: 1px solid currentColor;
124
+ }
125
+
126
+ .k-table-th,
127
+ .k-table-td {
128
+ vertical-align: middle;
129
+ }
130
+
131
+ .k-table-group-row {
132
+
133
+ &::before {
134
+ content: "\200b";
135
+ padding: $kendo-table-cell-padding-y 0;
136
+ width: 0;
137
+ display: block;
138
+ overflow: hidden;
139
+ }
140
+
141
+ .k-table-th {
142
+ width: 100%;
143
+ border-color: inherit;
144
+ color: inherit;
145
+ background-color: inherit;
146
+ position: absolute;
147
+ top: 0;
148
+ }
149
+ }
150
+
151
+ .k-table-spacer-td {
152
+ padding: 0 !important; // sass-lint:disable-line no-important
153
+ width: 0 !important; // sass-lint:disable-line no-important
154
+ border-left-width: 0 !important; // sass-lint:disable-line no-important
155
+ border-right-width: 0 !important; // sass-lint:disable-line no-important
156
+ }
157
+ .k-table-group-td {
158
+ padding: 0 !important; // sass-lint:disable-line no-important
159
+ width: 0 !important; // sass-lint:disable-line no-important
160
+ border-left-width: 0 !important; // sass-lint:disable-line no-important
161
+ border-right-width: 0 !important; // sass-lint:disable-line no-important
162
+ overflow: visible; // sass-lint:disable-line no-important
163
+
164
+ > span {
165
+ font-size: .75em;
166
+ position: absolute;
167
+ top: 0;
168
+ right: 0;
169
+ }
170
+ }
171
+ }
172
+
173
+
174
+ // Virtualization
175
+ .k-virtual-table .k-table-row,
176
+ .k-virtual-table .k-table-group-row {
177
+ position: absolute;
178
+ width: 100%;
179
+ }
180
+
181
+
182
+ // Table scroller
183
+ .k-table-scroller {
184
+ position: relative;
185
+ overflow: auto;
186
+
187
+ > .k-table {
188
+ border-width: 0;
189
+ }
190
+ }
191
+
192
+
193
+ // Table footer
194
+ .k-table-footer {
195
+ padding-inline-end: var(--kendo-scrollbar-width);
196
+ border-width: 1px 0 0 0;
197
+ border-style: solid;
198
+ box-sizing: border-box;
199
+
200
+ .k-table {
201
+ border-width: 0;
202
+ }
203
+ }
204
+ .k-table-footer-wrap {
205
+ margin-right: -1px;
206
+ width: 100%;
207
+ border-width: 0 $kendo-table-cell-vertical-border-width 0 0;
208
+ border-style: solid;
209
+ border-color: inherit;
210
+ overflow: hidden;
211
+ }
212
+
213
+
214
+ // Sizes
215
+ @each $size, $size-props in $kendo-table-sizes {
216
+ $_font-size: map-get( $size-props, font-size);
217
+ $_line-height: map-get( $size-props, line-height);
218
+ $_cell-padding-x: map-get( $size-props, cell-padding-x);
219
+ $_cell-padding-y: map-get( $size-props, cell-padding-y);
220
+
221
+ .k-table-#{$size} {
222
+ font-size: $_font-size;
223
+ line-height: $_line-height;
224
+ }
225
+
226
+ .k-table-#{$size} .k-table-th,
227
+ .k-table-#{$size} .k-table-td {
228
+ padding: $_cell-padding-y $_cell-padding-x;
229
+ }
230
+
231
+ .k-table-#{$size} .k-table-list .k-table-group-td > span {
232
+ padding: 0 ( $_cell-padding-x / 2 );
233
+ }
234
+
235
+ .k-table-#{$size} .k-table-list .k-table-group-row::before {
236
+ padding: $_cell-padding-y 0;
237
+ }
238
+ }
239
+
240
+
241
+ // RTL
242
+ .k-rtl,
243
+ [dir="rtl"] {
244
+ &.k-table,
245
+ .k-table {
246
+ text-align: right;
247
+
248
+ .k-table-th,
249
+ .k-table-td {
250
+ border-left-width: 0;
251
+ border-right-width: $kendo-table-cell-vertical-border-width;
252
+
253
+ &:first-child {
254
+ border-right-width: 0;
255
+ }
256
+ }
257
+
258
+ .k-table-header-wrap,
259
+ .k-table-footer-wrap {
260
+ margin-right: 0;
261
+ margin-left: -1px;
262
+ border-left-width: $kendo-table-cell-vertical-border-width;
263
+ border-right-width: 0;
264
+ }
265
+ }
266
+
267
+ .k-table-list {
268
+ .k-table-group-td > span {
269
+ left: 0;
270
+ right: auto;
271
+ }
272
+ }
273
+ }
274
+
275
+ }