@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
@@ -12,57 +12,27 @@
12
12
  background-repeat: no-repeat;
13
13
  background-size: contain;
14
14
  display: inline-block;
15
+ flex: none;
15
16
  vertical-align: middle;
16
17
  position: relative;
17
18
  cursor: pointer;
18
19
  -webkit-appearance: none;
19
20
  }
20
21
 
21
- @each $name, $size in $kendo-checkbox-sizes {
22
- // Checkbox sizes
23
- .k-checkbox-#{$name} {
24
- width: $size;
25
- height: $size;
26
22
 
27
- + .k-checkbox-label {
28
-
29
- .k-ripple {
30
- top: ($size / 2);
31
- left: ($size / 2);
32
- width: ($size * 5 / 2);
33
- height: ($size * 5 / 2);
34
- }
35
- }
36
- }
37
-
38
-
39
- // Checkbox indicator
40
- .k-checkbox-#{$name}::before {
41
- @if $kendo-checkbox-icon-type == "glyph" {
42
- content: $kendo-checkbox-checked-glyph;
43
- width: ($size - map-get( $spacing, thin ));
44
- height: ($size - map-get( $spacing, thin ));
45
- font-size: ($size - map-get( $spacing, thin ));
46
- font-family: $kendo-checkbox-glyph-font-family;
47
- line-height: 1;
48
- transform: scale(0) translate(-50%, -50%);
49
- overflow: hidden;
50
- position: absolute;
51
- top: 50%;
52
- left: 50%;
53
- }
54
-
55
- @if $kendo-checkbox-icon-type == "marker" {
56
- content: "";
57
- width: ($size - map-get( $spacing, 1 ));
58
- height: ($size - map-get( $spacing, 1 ));
59
- background-color: currentColor;
60
- transform: scale(0) translate(-50%, -50%);
61
- overflow: hidden;
62
- position: absolute;
63
- top: 50%;
64
- left: 50%;
65
- }
23
+ // Checkbox indicator
24
+ .k-checkbox::before {
25
+ @if $kendo-checkbox-indicator-type == "glyph" {
26
+ content: $kendo-checkbox-checked-glyph;
27
+ width: 1em;
28
+ height: 1em;
29
+ font-family: $kendo-checkbox-glyph-font-family;
30
+ line-height: 1;
31
+ transform: translate(-50%, -50%) scale(0);
32
+ overflow: hidden;
33
+ position: absolute;
34
+ top: 50%;
35
+ left: 50%;
66
36
  }
67
37
  }
68
38
 
@@ -70,118 +40,92 @@
70
40
  // Checked state
71
41
  .k-checkbox:checked,
72
42
  .k-checkbox.k-checked {
73
- @if $kendo-checkbox-icon-type == "image" {
43
+ @if $kendo-checkbox-indicator-type == "image" {
74
44
  background-image: $kendo-checkbox-checked-image;
75
45
  }
76
46
 
77
- @if $kendo-checkbox-icon-type == "glyph" {
47
+ @if $kendo-checkbox-indicator-type == "glyph" {
78
48
  &::before {
79
- transform: scale(1) translate(-50%, -50%);
80
- }
81
- }
82
-
83
- @if $kendo-checkbox-icon-type == "marker" {
84
- &::before {
85
- transform: scale(1) translate(-50%, -50%);
49
+ transform: translate(-50%, -50%) scale(1);
86
50
  }
87
51
  }
88
52
  }
89
53
 
54
+
90
55
  // Indeterminate state
91
56
  .k-checkbox:indeterminate,
92
57
  .k-checkbox.k-indeterminate {
93
- @if $kendo-checkbox-icon-type == "image" {
58
+ @if $kendo-checkbox-indicator-type == "image" {
94
59
  background-image: $kendo-checkbox-indeterminate-image;
95
60
  }
96
61
 
97
- @if $kendo-checkbox-icon-type == "glyph" {
62
+ @if $kendo-checkbox-indicator-type == "glyph" {
98
63
  &::before {
99
64
  content: $kendo-checkbox-indeterminate-glyph;
100
65
  transform: scale(1) translate(-50%, -50%);
101
66
  }
102
67
  }
103
-
104
- @if $kendo-checkbox-icon-type == "marker" {
105
- &::before {
106
- width: $kendo-checkbox-maker-indeterminate-width;
107
- height: $kendo-checkbox-marker-indeterminate-height;
108
- transform: scale(1) translate(-50%, -50%);
109
- }
110
- }
111
68
  }
112
69
 
113
70
 
114
71
  // Disabled state
115
72
  .k-checkbox:disabled,
116
- .k-checkbox.k-disabled,
117
- .k-checkbox:disabled + .k-checkbox-label,
118
- .k-checkbox.k-disabled + .k-checkbox-label {
73
+ .k-checkbox.k-disabled {
119
74
  @include disabled( $disabled-styling );
120
75
  }
121
76
 
77
+
78
+ // Checkbox wrap
79
+ .k-checkbox-wrap {
80
+ flex: none;
81
+ display: inline-flex;
82
+ flex-flow: row nowrap;
83
+ gap: 0;
84
+ align-items: center;
85
+ align-self: flex-start;
86
+ vertical-align: middle;
87
+ position: relative;
88
+
89
+ &::before {
90
+ content: "\200b";
91
+ width: 0px;
92
+ overflow: hidden;
93
+ flex: none;
94
+ display: inline-block;
95
+ vertical-align: top;
96
+ }
97
+ }
98
+
99
+
122
100
  // Checkbox label
123
101
  .k-checkbox-label {
124
102
  margin: 0;
125
103
  padding: 0;
126
- line-height: $kendo-checkbox-line-height;
127
104
  display: inline-flex;
128
105
  align-items: flex-start;
106
+ gap: $kendo-checkbox-label-margin-x;
129
107
  vertical-align: middle;
130
108
  position: relative;
131
109
  cursor: pointer;
132
110
 
133
- .k-label {
134
- cursor: pointer;
135
- }
136
-
137
111
  .k-ripple {
138
- right: auto;
139
- bottom: auto;
140
- transform: translate(-50%, -50%);
141
- border-radius: 50%;
142
-
143
112
  // Hide ripple temporarily
144
113
  visibility: hidden !important; // sass-lint:disable-line no-important
145
114
  }
146
-
147
- .k-ripple-blob {
148
- // sass-lint:disable-block no-important
149
- // use !important until ripple can apply these styles from the script
150
- top: 50% !important;
151
- left: 50% !important;
152
- width: 200% !important;
153
- height: 200% !important;
154
- }
155
- }
156
- .k-checkbox + .k-checkbox-label {
157
- display: inline;
158
115
  }
116
+ .k-checkbox + .k-label,
117
+ .k-checkbox-wrap + .k-label,
159
118
  .k-checkbox + .k-checkbox-label,
160
- .k-checkbox-label + .k-checkbox {
161
- margin-left: $kendo-checkbox-label-margin-x;
162
- }
163
- .k-checkbox-label > .k-checkbox {
164
- margin-right: $kendo-checkbox-label-margin-x;
165
- flex-shrink: 0;
166
- }
167
- kendo-label.k-checkbox-label > .k-checkbox:last-child {
168
- margin-right: 0;
169
- }
170
- kendo-label.k-checkbox-label > .k-label:first-child {
171
- margin-right: $kendo-checkbox-label-margin-x;
172
- }
173
- kendo-label.k-checkbox-label > .k-label {
119
+ .k-checkbox-wrap + .k-checkbox-label {
174
120
  display: inline;
121
+ margin-inline-start: $kendo-checkbox-label-margin-x;
175
122
  }
176
123
 
177
124
 
178
125
  // Empty label
179
126
  .k-checkbox-label:empty {
180
- display: none;
127
+ display: none !important; // sass-lint:disable-line no-important
181
128
  }
182
-
183
-
184
- // Label with no text
185
129
  .k-checkbox-label.k-no-text {
186
130
  min-width: 1px;
187
131
  }
@@ -189,78 +133,83 @@
189
133
 
190
134
  // Checkbox list
191
135
  .k-checkbox-list {
192
- margin: $kendo-checkbox-list-margin;
193
- padding: $kendo-checkbox-list-padding;
136
+ margin: 0;
137
+ padding: 0;
138
+ display: flex;
139
+ flex-flow: column nowrap;
140
+ gap: 0;
194
141
  list-style: none;
142
+ }
143
+ .k-checkbox-item,
144
+ .k-checkbox-list-item {
145
+ padding: $kendo-checkbox-list-item-padding-y $kendo-checkbox-list-item-padding-x;
146
+ display: flex;
147
+ flex-flow: row nowrap;
148
+ align-items: center;
149
+ align-content: center;
150
+ gap: map-get( $spacing, 1 );
195
151
 
196
- .k-checkbox-item {
197
- padding: $kendo-checkbox-list-item-padding-y $kendo-checkbox-list-item-padding-x;
152
+ .k-checkbox-label {
153
+ margin: 0;
198
154
  }
199
155
  }
156
+ .k-checkbox-list-horizontal,
157
+ .k-checkbox-list.k-list-horizontal {
158
+ display: flex;
159
+ flex-flow: row wrap;
160
+ gap: $kendo-checkbox-list-spacing;
161
+ }
200
162
 
201
- .k-list-horizontal {
202
- .k-checkbox-item {
203
- display: inline-block;
204
- margin: 0 $kendo-checkbox-list-horizontal-item-margin-x 0 0;
205
163
 
206
- &:last-child {
207
- margin-right: 0;
164
+ // Ripple
165
+ .k-ripple-container {
166
+ .k-checkbox::after {
167
+ content: "";
168
+ display: block;
169
+ position: absolute;
170
+ left: 50%;
171
+ top: 50%;
172
+ border-radius: 100%;
173
+ z-index: -1;
174
+ transition: opacity 100ms linear, transform 150ms cubic-bezier(.4, 0, .2, 1);
175
+ transform: translate(-50%, -50%) scale(0);
176
+ transform-origin: center center;
177
+ }
178
+
179
+ .k-checkbox:focus,
180
+ .k-checkbox.k-focus {
181
+ box-shadow: none !important; // sass-lint:disable-line no-important
182
+
183
+ &::after {
184
+ transform: translate(-50%, -50%) scale(1);
208
185
  }
209
186
  }
187
+
188
+ .k-checkbox:disabled::after,
189
+ .k-checkbox.k-disabled::after {
190
+ display: none;
191
+ }
210
192
  }
211
193
 
212
194
 
213
- // RTL
214
- [dir="rtl"] {
215
- .k-checkbox + .k-checkbox-label,
216
- .k-checkbox-label + .k-checkbox {
217
- margin-left: 0;
218
- margin-right: $kendo-checkbox-label-margin-x;
219
- }
220
- .k-checkbox-label > .k-checkbox {
221
- margin-right: 0;
222
- margin-left: $kendo-checkbox-label-margin-x;
223
- }
224
- kendo-label.k-checkbox-label > .k-checkbox:last-child {
225
- margin-left: 0;
226
- }
227
- kendo-label.k-checkbox-label > .k-label:first-child {
228
- margin-right: 0;
229
- margin-left: $kendo-checkbox-label-margin-x;
230
- }
195
+ // Checkbox size
196
+ @each $size, $size-props in $kendo-checkbox-sizes {
197
+ $_size: map-get( $size-props, size );
198
+ $_glyph-size: map-get( $size-props, glyph-size );
199
+ $_ripple-size: map-get( $size-props, ripple-size );
231
200
 
232
- .k-list-horizontal {
233
- .k-checkbox-item {
234
- margin-right: 0;
235
- margin-left: $kendo-checkbox-list-horizontal-item-margin-x;
201
+ .k-checkbox-#{$size} {
202
+ width: $_size;
203
+ height: $_size;
236
204
 
237
- &:last-child {
238
- margin-left: 0;
239
- }
205
+ &::before {
206
+ font-size: $_glyph-size;
240
207
  }
241
208
  }
242
- }
243
-
244
- .k-ripple-container {
245
- @each $name, $size in $kendo-checkbox-sizes {
246
- .k-checkbox-#{$name}::after {
247
- content: "";
248
- display: block;
249
- position: absolute;
250
- left: 0;
251
- top: 0;
252
- width: map-get( $kendo-checkbox-ripple-size, $name );
253
- height: map-get( $kendo-checkbox-ripple-size, $name );
254
- margin-left: map-get( $kendo-checkbox-ripple-margin, $name );
255
- margin-top: map-get( $kendo-checkbox-ripple-margin, $name );
256
- border-radius: 100%;
257
- z-index: 1;
258
- transform: scale(0);
259
- }
260
-
261
- .k-checkbox:disabled::after,
262
- .k-checkbox.k-disabled::after {
263
- display: none;
209
+ .k-ripple-container {
210
+ .k-checkbox-#{size}::after {
211
+ width: $_ripple-size;
212
+ height: $_ripple-size;
264
213
  }
265
214
  }
266
215
  }
@@ -1,4 +1,4 @@
1
- @include exports("checkbox/theme") {
1
+ @include exports( "checkbox/theme" ) {
2
2
 
3
3
  // Checkbox
4
4
  .k-checkbox {
@@ -78,20 +78,22 @@
78
78
 
79
79
 
80
80
  // Invalid
81
- .k-checkbox:invalid,
82
81
  .k-checkbox.k-invalid {
83
82
  @include fill( $border: $kendo-checkbox-invalid-border );
84
83
  }
85
- .k-checkbox:invalid + .k-checkbox-label,
86
84
  .k-checkbox.k-invalid + .k-checkbox-label {
87
85
  @include fill( $color: $kendo-checkbox-invalid-text );
88
86
  }
89
87
 
90
88
 
91
89
  // Ripple
90
+ .k-checkbox-wrap .k-ripple-blob {
91
+ color: $kendo-checkbox-ripple-bg;
92
+ opacity: $kendo-checkbox-ripple-opacity;
93
+ }
92
94
  .k-ripple-container {
93
95
  .k-checkbox::after {
94
- background: $kendo-checkbox-checked-bg;
96
+ background: $kendo-checkbox-ripple-bg;
95
97
  opacity: $kendo-checkbox-ripple-opacity;
96
98
  }
97
99
  }
@@ -1,126 +1,134 @@
1
1
  // Checkbox
2
2
 
3
- /// The sizes of checkbox.
3
+ /// Border width of checkbox.
4
4
  /// @group checkbox
5
+ $kendo-checkbox-border-width: 1px !default;
6
+
7
+ // Checkbox sizes
5
8
  $kendo-checkbox-sizes: (
6
- sm: map-get( $spacing, 3 ),
7
- md: map-get( $spacing, 4 ),
8
- lg: map-get( $spacing, 6 )
9
+ sm: (
10
+ size: map-get( $spacing, 3 ),
11
+ glyph-size: ( map-get( $spacing, 3 ) - map-get( $spacing, thin ) ),
12
+ ripple-size: map-get( $spacing, 3 ) * 3
13
+ ),
14
+ md: (
15
+ size: map-get( $spacing, 4 ),
16
+ glyph-size: ( map-get( $spacing, 4 ) - map-get( $spacing, thin ) ),
17
+ ripple-size: map-get( $spacing, 4 ) * 3
18
+ ),
19
+ lg: (
20
+ size: map-get( $spacing, 5 ),
21
+ glyph-size: ( map-get( $spacing, 5 ) - map-get( $spacing, thin ) ),
22
+ ripple-size: map-get( $spacing, 5 ) * 3
23
+ )
9
24
  ) !default;
10
25
 
11
- /// The border width of checkbox.
12
- /// @group checkbox
13
- $kendo-checkbox-border-width: 1px !default;
14
- /// The line height of checkbox.
15
- /// @group checkbox
16
- $kendo-checkbox-line-height: calc( #{map-get( $kendo-checkbox-sizes, "md" )} + #{$kendo-checkbox-border-width} ) !default;
17
-
18
- /// The background of checkbox.
26
+ /// Background color of checkbox.
19
27
  /// @group checkbox
20
- $kendo-checkbox-bg: $white !default;
21
- /// The text of checkbox.
28
+ $kendo-checkbox-bg: $component-bg !default;
29
+ /// Color of checkbox.
22
30
  /// @group checkbox
23
- $kendo-checkbox-text: transparent !default;
24
- /// The border of checkbox.
31
+ $kendo-checkbox-text: null !default;
32
+ /// Border color of checkbox.
25
33
  /// @group checkbox
26
- $kendo-checkbox-border: $base-border !default;
34
+ $kendo-checkbox-border: $component-border !default;
27
35
 
28
- /// The background of hovered checkbox.
36
+ /// Background color of hovered checkbox.
29
37
  /// @group checkbox
30
38
  $kendo-checkbox-hover-bg: null !default;
31
- /// The text of hovered checkbox.
39
+ /// Color of hovered checkbox.
32
40
  /// @group checkbox
33
41
  $kendo-checkbox-hover-text: null !default;
34
- /// The border of hovered checkbox.
42
+ /// Border color of hovered checkbox.
35
43
  /// @group checkbox
36
44
  $kendo-checkbox-hover-border: null !default;
37
45
 
38
- /// The background of checked checkbox.
46
+ /// Background color of checked checkbox.
39
47
  /// @group checkbox
40
48
  $kendo-checkbox-checked-bg: $primary !default;
41
- /// The text of checked checkbox.
49
+ /// Color of checked checkbox.
42
50
  /// @group checkbox
43
51
  $kendo-checkbox-checked-text: contrast-wcag( $kendo-checkbox-checked-bg ) !default;
44
- /// The border of checked checkbox.
52
+ /// Border color of checked checkbox.
45
53
  /// @group checkbox
46
54
  $kendo-checkbox-checked-border: $kendo-checkbox-checked-bg !default;
47
55
 
48
- /// The background of indeterminate checkbox.
56
+ /// Background color of indeterminate checkbox.
49
57
  /// @group checkbox
50
58
  $kendo-checkbox-indeterminate-bg: $kendo-checkbox-bg !default;
51
- /// The text of indeterminate checkbox.
59
+ /// Color of indeterminate checkbox.
52
60
  /// @group checkbox
53
61
  $kendo-checkbox-indeterminate-text: $kendo-checkbox-checked-bg !default;
54
- /// The border of indeterminate checkbox.
62
+ /// Border color of indeterminate checkbox.
55
63
  /// @group checkbox
56
64
  $kendo-checkbox-indeterminate-border: $kendo-checkbox-border !default;
57
65
 
58
- /// The border of focused checkbox.
66
+ /// Border color of focused checkbox.
59
67
  /// @group checkbox
60
68
  $kendo-checkbox-focus-border: null !default;
61
- /// The shadow of focused checkbox.
69
+ /// Box shadow of focused checkbox.
62
70
  /// @group checkbox
63
71
  $kendo-checkbox-focus-shadow: 0 0 0 2px rgba(0, 0, 0, .06) !default;
64
- /// The border of focused and checked checkbox.
72
+ /// Border color of focused and checked checkbox.
65
73
  /// @group checkbox
66
74
  $kendo-checkbox-focus-checked-border: null !default;
67
- /// The shadow of focused and checked checkbox.
75
+ /// Box shadow of focused and checked checkbox.
68
76
  /// @group checkbox
69
77
  $kendo-checkbox-focus-checked-shadow: 0 0 0 2px rgba( $primary, .3 ) !default;
70
78
 
71
- /// The background of disabled checkbox.
79
+ /// Background color of disabled checkbox.
72
80
  /// @group checkbox
73
81
  $kendo-checkbox-disabled-bg: null !default;
74
- /// The text of disabled checkbox.
82
+ /// Color of disabled checkbox.
75
83
  /// @group checkbox
76
84
  $kendo-checkbox-disabled-text: null !default;
77
- /// The border of disabled checkbox.
85
+ /// Border color of disabled checkbox.
78
86
  /// @group checkbox
79
87
  $kendo-checkbox-disabled-border: null !default;
80
88
 
81
- /// The background of disabled and checked checkbox.
89
+ /// Background color of disabled and checked checkbox.
82
90
  /// @group checkbox
83
91
  $kendo-checkbox-disabled-checked-bg: null !default;
84
- /// The text of disabled and checked checkbox.
92
+ /// Color of disabled and checked checkbox.
85
93
  /// @group checkbox
86
94
  $kendo-checkbox-disabled-checked-text: null !default;
87
- /// The border of disabled and checked checkbox.
95
+ /// Border color of disabled and checked checkbox.
88
96
  /// @group checkbox
89
97
  $kendo-checkbox-disabled-checked-border: null !default;
90
98
 
91
- /// The background of invalid checkbox.
99
+ /// Background color of invalid checkbox.
92
100
  /// @group checkbox
93
101
  $kendo-checkbox-invalid-bg: null !default;
94
- /// The text of invalid checkbox.
102
+ /// Color of invalid checkbox.
95
103
  /// @group checkbox
96
104
  $kendo-checkbox-invalid-text: $invalid-text !default;
97
- /// The border of invalid checkbox.
105
+ /// Border color of invalid checkbox.
98
106
  /// @group checkbox
99
107
  $kendo-checkbox-invalid-border: $invalid-border !default;
100
108
 
101
109
 
102
110
  // Checkbox indicator
103
111
 
104
- /// The icon type of checked checkbox.
112
+ /// Type of checkbox indicator.
105
113
  /// @group checkbox
106
- $kendo-checkbox-icon-type: glyph !default;
114
+ $kendo-checkbox-indicator-type: image !default;
107
115
 
108
- /// The glyph font family of checkbox.
116
+ /// Glyph font family of checkbox indicator.
109
117
  /// @group checkbox
110
118
  $kendo-checkbox-glyph-font-family: "WebComponentsIcons", monospace !default;
111
- /// The glyph of checked checkbox.
119
+ /// Glyph of checkbox indicator.
112
120
  /// @group checkbox
113
121
  $kendo-checkbox-checked-glyph: "\e118" !default;
114
- /// The glyph of indeterminate checkbox.
122
+ /// Glyph of indeterminate checkbox indicator.
115
123
  /// @group checkbox
116
124
  $kendo-checkbox-indeterminate-glyph: "\e121" !default;
117
125
 
118
- /// The image of checked checkbox.
126
+ /// Image of checked checkbox indicator.
119
127
  /// @group checkbox
120
- $kendo-checkbox-checked-image: null !default;
121
- /// The image of indeterminate checkbox.
128
+ $kendo-checkbox-checked-image: escape-svg( url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='#{$kendo-checkbox-checked-text}' stroke-linecap='square' stroke-linejoin='square' stroke-width='2' d='M3,8 l3,3 l7-7'/></svg>") ) !default;
129
+ /// Image image of checked checkbox indicator.
122
130
  /// @group checkbox
123
- $kendo-checkbox-indeterminate-image: null !default;
131
+ $kendo-checkbox-indeterminate-image: escape-svg( url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='#{$kendo-checkbox-indeterminate-text}' stroke-linecap='square' stroke-linejoin='square' stroke-width='2' d='M4,8 h8'/></svg>") ) !default;
124
132
 
125
133
 
126
134
  // Checkbox label
@@ -132,39 +140,22 @@ $kendo-checkbox-label-margin-x: map-get( $spacing, 1 ) !default;
132
140
 
133
141
  // Checkbox list
134
142
 
135
- /// The list margin checkbox.
143
+ /// Spacing between items of horizontal checkbox list.
136
144
  /// @group checkbox
137
- $kendo-checkbox-list-margin: 0px !default;
138
- /// The list padding checkbox.
139
- /// @group checkbox
140
- $kendo-checkbox-list-padding: 0px !default;
141
- /// The horizontal list item padding of checkbox.
145
+ $kendo-checkbox-list-spacing: map-get( $spacing, 4 ) !default;
146
+ /// Horizontal padding of checkbox list items.
142
147
  /// @group checkbox
143
148
  $kendo-checkbox-list-item-padding-x: 0px !default;
144
- /// The vertical list item padding of checkbox.
145
- /// @group checkbox
146
- $kendo-checkbox-list-item-padding-y: $list-item-padding-y !default;
147
- /// The horizontal margin of list item of checkbox.
149
+ /// Vertical padding of checkbox list items.
148
150
  /// @group checkbox
149
- $kendo-checkbox-list-horizontal-item-margin-x: 32px !default;
151
+ $kendo-checkbox-list-item-padding-y: $kendo-list-item-padding-y-md !default;
150
152
 
151
153
 
152
154
  // Checkbox ripple
153
155
 
154
- /// The ripple size of checkbox.
156
+ /// Background color of checkbox ripple.
155
157
  /// @group checkbox
156
- $kendo-checkbox-ripple-size: (
157
- sm: (map-get( $kendo-checkbox-sizes, "sm" ) * 3),
158
- md: (map-get( $kendo-checkbox-sizes, "md" ) * 3),
159
- lg: (map-get( $kendo-checkbox-sizes, "lg" ) * 3)
160
- ) !default;
161
- /// The ripple margin of checkbox.
162
- /// @group checkbox
163
- $kendo-checkbox-ripple-margin: (
164
- sm: calc(-1 * (#{map-get( $kendo-checkbox-sizes, "sm" )} + 2 * #{$kendo-checkbox-border-width})),
165
- md: calc(-1 * (#{map-get( $kendo-checkbox-sizes, "md" )} + 2 * #{$kendo-checkbox-border-width})),
166
- lg: calc(-1 * (#{map-get( $kendo-checkbox-sizes, "lg" )} + 2 * #{$kendo-checkbox-border-width}))
167
- ) !default;
168
- /// The ripple opacity of checkbox.
158
+ $kendo-checkbox-ripple-bg: $kendo-checkbox-checked-bg !default;
159
+ /// Opacity of checkbox ripple.
169
160
  /// @group checkbox
170
- $kendo-checkbox-ripple-opacity: .3 !default;
161
+ $kendo-checkbox-ripple-opacity: .25 !default;
File without changes
@@ -3,6 +3,7 @@
3
3
 
4
4
  // Dependencies
5
5
  @import "../icons/_index.scss";
6
+ @import "../button/_variables.scss";
6
7
 
7
8
 
8
9
  // Component