@progress/kendo-theme-default 4.42.1-dev.4 → 5.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/dist/all.css +1651 -2882
  2. package/dist/all.scss +2211 -4033
  3. package/package.json +4 -4
  4. package/scss/_variables.scss +2 -0
  5. package/scss/adaptive/_layout.scss +0 -16
  6. package/scss/autocomplete/_layout.scss +1 -34
  7. package/scss/autocomplete/_theme.scss +2 -74
  8. package/scss/autocomplete/_variables.scss +12 -12
  9. package/scss/breadcrumb/_layout.scss +0 -5
  10. package/scss/button/_layout.scss +106 -114
  11. package/scss/button/_theme.scss +253 -264
  12. package/scss/button/_variables.scss +170 -130
  13. package/scss/button/index.md +3 -0
  14. package/scss/calendar/_layout.scss +0 -12
  15. package/scss/calendar/_theme.scss +0 -17
  16. package/scss/captcha/_layout.scss +0 -5
  17. package/scss/card/_layout.scss +0 -4
  18. package/scss/card/_variables.scss +1 -1
  19. package/scss/chat/_variables.scss +5 -5
  20. package/scss/checkbox/_layout.scss +87 -91
  21. package/scss/checkbox/_theme.scss +33 -39
  22. package/scss/checkbox/_variables.scss +153 -56
  23. package/scss/colorgradient/_layout.scss +0 -4
  24. package/scss/colorpicker/_layout.scss +2 -130
  25. package/scss/colorpicker/_theme.scss +2 -64
  26. package/scss/colorpicker/_variables.scss +9 -9
  27. package/scss/combobox/_layout.scss +2 -61
  28. package/scss/combobox/_theme.scss +2 -123
  29. package/scss/combobox/_variables.scss +23 -23
  30. package/scss/common/_base.scss +1 -2
  31. package/scss/core/_normalize.scss +11 -0
  32. package/scss/core/mixins/_input-ripple.scss +1 -1
  33. package/scss/dataviz/_theme.scss +8 -8
  34. package/scss/dataviz/_variables.scss +6 -6
  35. package/scss/dateinput/_index.scss +15 -0
  36. package/scss/dateinput/_layout.scss +6 -0
  37. package/scss/dateinput/_theme.scss +6 -0
  38. package/scss/dateinput/_variables.scss +1 -0
  39. package/scss/datepicker/_index.scss +15 -0
  40. package/scss/datepicker/_layout.scss +6 -0
  41. package/scss/datepicker/_theme.scss +6 -0
  42. package/scss/datepicker/_variables.scss +1 -0
  43. package/scss/daterangepicker/_index.scss +15 -0
  44. package/scss/daterangepicker/_layout.scss +3 -0
  45. package/scss/daterangepicker/_theme.scss +3 -0
  46. package/scss/daterangepicker/_variables.scss +1 -0
  47. package/scss/datetime/_layout.scss +2 -263
  48. package/scss/datetime/_theme.scss +0 -227
  49. package/scss/datetime/_variables.scss +27 -27
  50. package/scss/datetimepicker/_index.scss +15 -0
  51. package/scss/datetimepicker/_layout.scss +6 -0
  52. package/scss/datetimepicker/_theme.scss +6 -0
  53. package/scss/datetimepicker/_variables.scss +1 -0
  54. package/scss/dropdowngrid/_layout.scss +4 -0
  55. package/scss/dropdowngrid/_theme.scss +3 -0
  56. package/scss/dropdownlist/_layout.scss +3 -98
  57. package/scss/dropdownlist/_theme.scss +3 -91
  58. package/scss/dropdownlist/_variables.scss +9 -9
  59. package/scss/dropdowntree/_layout.scss +2 -25
  60. package/scss/dropdowntree/_theme.scss +2 -1
  61. package/scss/editor/_layout.scss +10 -48
  62. package/scss/editor/_variables.scss +2 -2
  63. package/scss/fab/_variables.scss +3 -3
  64. package/scss/filter/_layout.scss +0 -4
  65. package/scss/floating-label/_layout.scss +0 -3
  66. package/scss/floating-label/_theme.scss +0 -2
  67. package/scss/floating-label/_variables.scss +4 -4
  68. package/scss/forms/_layout.scss +8 -33
  69. package/scss/gantt/_layout.scss +3 -3
  70. package/scss/grid/_layout.scss +20 -65
  71. package/scss/grid/_theme.scss +2 -2
  72. package/scss/grid/_variables.scss +0 -2
  73. package/scss/index.scss +5 -0
  74. package/scss/input/_layout.scss +101 -89
  75. package/scss/input/_theme.scss +74 -16
  76. package/scss/input/_variables.scss +66 -67
  77. package/scss/map/_layout.scss +0 -21
  78. package/scss/map/_theme.scss +5 -5
  79. package/scss/map/_variables.scss +1 -1
  80. package/scss/maskedtextbox/_layout.scss +2 -46
  81. package/scss/maskedtextbox/_theme.scss +2 -20
  82. package/scss/multiselect/_layout.scss +15 -15
  83. package/scss/multiselect/_variables.scss +16 -16
  84. package/scss/numerictextbox/_layout.scss +2 -93
  85. package/scss/numerictextbox/_theme.scss +2 -95
  86. package/scss/numerictextbox/_variables.scss +1 -32
  87. package/scss/pager/_layout.scss +7 -12
  88. package/scss/pager/_variables.scss +1 -1
  89. package/scss/pdf-viewer/_layout.scss +0 -16
  90. package/scss/pdf-viewer/_variables.scss +1 -1
  91. package/scss/pivotgrid/_layout.scss +7 -7
  92. package/scss/pivotgrid/_theme.scss +13 -13
  93. package/scss/popup/_layout.scss +0 -30
  94. package/scss/popup/_theme.scss +4 -4
  95. package/scss/popup/_variables.scss +1 -1
  96. package/scss/radio/_layout.scss +78 -63
  97. package/scss/radio/_theme.scss +23 -23
  98. package/scss/radio/_variables.scss +154 -51
  99. package/scss/scheduler/_layout.scss +9 -228
  100. package/scss/scheduler/_theme.scss +5 -86
  101. package/scss/scrollview/_variables.scss +4 -4
  102. package/scss/searchbox/_layout.scss +1 -19
  103. package/scss/searchbox/_theme.scss +1 -46
  104. package/scss/searchbox/_variables.scss +0 -20
  105. package/scss/slider/_layout.scss +0 -19
  106. package/scss/slider/_theme.scss +0 -4
  107. package/scss/slider/_variables.scss +10 -10
  108. package/scss/spreadsheet/_layout.scss +4 -36
  109. package/scss/spreadsheet/_theme.scss +13 -13
  110. package/scss/switch/_index.scss +0 -2
  111. package/scss/switch/_layout.scss +95 -70
  112. package/scss/switch/_theme.scss +91 -93
  113. package/scss/switch/_variables.scss +193 -83
  114. package/scss/taskboard/_layout.scss +0 -4
  115. package/scss/taskboard/_variables.scss +1 -1
  116. package/scss/textarea/_layout.scss +1 -91
  117. package/scss/textarea/_theme.scss +1 -66
  118. package/scss/textarea/_variables.scss +0 -53
  119. package/scss/textbox/_layout.scss +1 -73
  120. package/scss/textbox/_theme.scss +1 -70
  121. package/scss/textbox/_variables.scss +1 -2
  122. package/scss/timeline/_variables.scss +7 -7
  123. package/scss/timepicker/_index.scss +15 -0
  124. package/scss/timepicker/_layout.scss +6 -0
  125. package/scss/timepicker/_theme.scss +6 -0
  126. package/scss/timepicker/_variables.scss +1 -0
  127. package/scss/toolbar/_layout.scss +2 -2
  128. package/scss/toolbar/_variables.scss +1 -1
  129. package/scss/treeview/_variables.scss +1 -1
  130. package/scss/window/_layout.scss +0 -11
@@ -2,16 +2,12 @@
2
2
 
3
3
  // Checkbox
4
4
  .k-checkbox {
5
- @include border-radius( $checkbox-radius );
6
5
  margin: 0;
7
6
  padding: 0;
8
- width: $checkbox-size;
9
- height: $checkbox-size;
10
7
  line-height: initial;
11
- border-width: $checkbox-border-width;
8
+ border-width: $kendo-checkbox-border-width;
12
9
  border-style: solid;
13
10
  outline: 0;
14
- box-sizing: border-box;
15
11
  background-position: center;
16
12
  background-repeat: no-repeat;
17
13
  background-size: contain;
@@ -22,32 +18,51 @@
22
18
  -webkit-appearance: none;
23
19
  }
24
20
 
25
- // Checkbox indicator
26
- .k-checkbox::before {
27
- @if $checkbox-icon-type == "glyph" {
28
- content: $checkbox-checked-glyph;
29
- width: $checkbox-glyph-size;
30
- height: $checkbox-glyph-size;
31
- font-size: $checkbox-glyph-size;
32
- font-family: $checkbox-glyph-font-family;
33
- line-height: 1;
34
- transform: scale(0) translate(-50%, -50%);
35
- overflow: hidden;
36
- position: absolute;
37
- top: 50%;
38
- left: 50%;
21
+ @each $name, $size in $kendo-checkbox-sizes {
22
+ // Checkbox sizes
23
+ .k-checkbox-#{$name} {
24
+ width: $size;
25
+ height: $size;
26
+
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
+ }
39
36
  }
40
37
 
41
- @if $checkbox-icon-type == "marker" {
42
- content: "";
43
- width: $checkbox-marker-checked-width;
44
- height: $checkbox-marker-checked-height;
45
- background-color: currentColor;
46
- transform: scale(0) translate(-50%, -50%);
47
- overflow: hidden;
48
- position: absolute;
49
- top: 50%;
50
- left: 50%;
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
+ }
51
66
  }
52
67
  }
53
68
 
@@ -55,43 +70,41 @@
55
70
  // Checked state
56
71
  .k-checkbox:checked,
57
72
  .k-checkbox.k-checked {
58
- @if $checkbox-icon-type == "image" {
59
- background-image: $checkbox-checked-image;
73
+ @if $kendo-checkbox-icon-type == "image" {
74
+ background-image: $kendo-checkbox-checked-image;
60
75
  }
61
76
 
62
- @if $checkbox-icon-type == "glyph" {
77
+ @if $kendo-checkbox-icon-type == "glyph" {
63
78
  &::before {
64
79
  transform: scale(1) translate(-50%, -50%);
65
80
  }
66
81
  }
67
82
 
68
- @if $checkbox-icon-type == "marker" {
83
+ @if $kendo-checkbox-icon-type == "marker" {
69
84
  &::before {
70
85
  transform: scale(1) translate(-50%, -50%);
71
86
  }
72
87
  }
73
88
  }
74
89
 
75
-
76
90
  // Indeterminate state
77
91
  .k-checkbox:indeterminate,
78
- .k-checkbox.k-indeterminate,
79
- .k-checkbox.k-state-indeterminate {
80
- @if $checkbox-icon-type == "image" {
81
- background-image: $checkbox-indeterminate-image;
92
+ .k-checkbox.k-indeterminate {
93
+ @if $kendo-checkbox-icon-type == "image" {
94
+ background-image: $kendo-checkbox-indeterminate-image;
82
95
  }
83
96
 
84
- @if $checkbox-icon-type == "glyph" {
97
+ @if $kendo-checkbox-icon-type == "glyph" {
85
98
  &::before {
86
- content: $checkbox-indeterminate-glyph;
99
+ content: $kendo-checkbox-indeterminate-glyph;
87
100
  transform: scale(1) translate(-50%, -50%);
88
101
  }
89
102
  }
90
103
 
91
- @if $checkbox-icon-type == "marker" {
104
+ @if $kendo-checkbox-icon-type == "marker" {
92
105
  &::before {
93
- width: $checkbox-maker-indeterminate-width;
94
- height: $checkbox-marker-indeterminate-height;
106
+ width: $kendo-checkbox-maker-indeterminate-width;
107
+ height: $kendo-checkbox-marker-indeterminate-height;
95
108
  transform: scale(1) translate(-50%, -50%);
96
109
  }
97
110
  }
@@ -110,7 +123,7 @@
110
123
  .k-checkbox-label {
111
124
  margin: 0;
112
125
  padding: 0;
113
- line-height: $checkbox-line-height;
126
+ line-height: $kendo-checkbox-line-height;
114
127
  display: inline-flex;
115
128
  align-items: flex-start;
116
129
  vertical-align: middle;
@@ -122,12 +135,8 @@
122
135
  }
123
136
 
124
137
  .k-ripple {
125
- top: $checkbox-size / 2;
126
- left: $checkbox-size / 2;
127
138
  right: auto;
128
139
  bottom: auto;
129
- width: $checkbox-size * 5 / 2;
130
- height: $checkbox-size * 5 / 2;
131
140
  transform: translate(-50%, -50%);
132
141
  border-radius: 50%;
133
142
 
@@ -149,17 +158,17 @@
149
158
  }
150
159
  .k-checkbox + .k-checkbox-label,
151
160
  .k-checkbox-label + .k-checkbox {
152
- margin-left: $checkbox-label-margin-x;
161
+ margin-left: $kendo-checkbox-label-margin-x;
153
162
  }
154
163
  .k-checkbox-label > .k-checkbox {
155
- margin-right: $checkbox-label-margin-x;
164
+ margin-right: $kendo-checkbox-label-margin-x;
156
165
  flex-shrink: 0;
157
166
  }
158
167
  kendo-label.k-checkbox-label > .k-checkbox:last-child {
159
168
  margin-right: 0;
160
169
  }
161
170
  kendo-label.k-checkbox-label > .k-label:first-child {
162
- margin-right: $checkbox-label-margin-x;
171
+ margin-right: $kendo-checkbox-label-margin-x;
163
172
  }
164
173
  kendo-label.k-checkbox-label > .k-label {
165
174
  display: inline;
@@ -180,19 +189,19 @@
180
189
 
181
190
  // Checkbox list
182
191
  .k-checkbox-list {
183
- margin: $checkbox-list-margin;
184
- padding: $checkbox-list-padding;
192
+ margin: $kendo-checkbox-list-margin;
193
+ padding: $kendo-checkbox-list-padding;
185
194
  list-style: none;
186
195
 
187
196
  .k-checkbox-item {
188
- padding: $checkbox-list-item-padding-y $checkbox-list-item-padding-x;
197
+ padding: $kendo-checkbox-list-item-padding-y $kendo-checkbox-list-item-padding-x;
189
198
  }
190
199
  }
191
200
 
192
201
  .k-list-horizontal {
193
202
  .k-checkbox-item {
194
203
  display: inline-block;
195
- margin: 0 $checkbox-list-horizontal-item-margin-x 0 0;
204
+ margin: 0 $kendo-checkbox-list-horizontal-item-margin-x 0 0;
196
205
 
197
206
  &:last-child {
198
207
  margin-right: 0;
@@ -202,29 +211,28 @@
202
211
 
203
212
 
204
213
  // RTL
205
- .k-rtl,
206
214
  [dir="rtl"] {
207
215
  .k-checkbox + .k-checkbox-label,
208
216
  .k-checkbox-label + .k-checkbox {
209
217
  margin-left: 0;
210
- margin-right: $checkbox-label-margin-x;
218
+ margin-right: $kendo-checkbox-label-margin-x;
211
219
  }
212
220
  .k-checkbox-label > .k-checkbox {
213
221
  margin-right: 0;
214
- margin-left: $checkbox-label-margin-x;
222
+ margin-left: $kendo-checkbox-label-margin-x;
215
223
  }
216
224
  kendo-label.k-checkbox-label > .k-checkbox:last-child {
217
225
  margin-left: 0;
218
226
  }
219
227
  kendo-label.k-checkbox-label > .k-label:first-child {
220
228
  margin-right: 0;
221
- margin-left: $checkbox-label-margin-x;
229
+ margin-left: $kendo-checkbox-label-margin-x;
222
230
  }
223
231
 
224
232
  .k-list-horizontal {
225
233
  .k-checkbox-item {
226
234
  margin-right: 0;
227
- margin-left: $checkbox-list-horizontal-item-margin-x;
235
+ margin-left: $kendo-checkbox-list-horizontal-item-margin-x;
228
236
 
229
237
  &:last-child {
230
238
  margin-left: 0;
@@ -234,39 +242,27 @@
234
242
  }
235
243
 
236
244
  .k-ripple-container {
237
- .k-checkbox::after {
238
- content: "";
239
- display: block;
240
- position: absolute;
241
- left: 0;
242
- top: 0;
243
- width: $checkbox-ripple-size;
244
- height: $checkbox-ripple-size;
245
- margin-left: $checkbox-ripple-margin;
246
- margin-top: $checkbox-ripple-margin;
247
- border-radius: 100%;
248
- z-index: 1;
249
- transform: scale(0);
250
- }
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
+ }
251
260
 
252
- .k-checkbox:disabled::after,
253
- .k-checkbox.k-disabled::after {
254
- display: none;
261
+ .k-checkbox:disabled::after,
262
+ .k-checkbox.k-disabled::after {
263
+ display: none;
264
+ }
255
265
  }
256
266
  }
257
267
 
258
268
  }
259
-
260
-
261
-
262
-
263
- @include exports( "checkbox/layout/edge" ) {
264
-
265
- .k-checkbox::-ms-check {
266
- border-width: 1px;
267
- border-color: inherit;
268
- color: inherit;
269
- background-color: inherit;
270
- }
271
-
272
- }
@@ -3,40 +3,39 @@
3
3
  // Checkbox
4
4
  .k-checkbox {
5
5
  @include fill(
6
- $checkbox-text,
7
- $checkbox-bg,
8
- $checkbox-border
6
+ $kendo-checkbox-text,
7
+ $kendo-checkbox-bg,
8
+ $kendo-checkbox-border
9
9
  );
10
10
  }
11
11
 
12
12
 
13
13
  // Hover state
14
14
  .k-checkbox:hover,
15
- .k-checkbox.k-state-hover {
15
+ .k-checkbox.k-hover {
16
16
  @include fill(
17
- $checkbox-hovered-text,
18
- $checkbox-hovered-bg,
19
- $checkbox-hovered-border
17
+ $kendo-checkbox-hover-text,
18
+ $kendo-checkbox-hover-bg,
19
+ $kendo-checkbox-hover-border
20
20
  );
21
21
  }
22
22
 
23
23
 
24
24
  // Focus state
25
25
  .k-checkbox:focus,
26
- .k-checkbox.k-state-focus {
27
- @include fill( $border: $checkbox-focused-border );
28
- @include box-shadow( $checkbox-focused-shadow );
26
+ .k-checkbox.k-focus {
27
+ @include fill( $border: $kendo-checkbox-focus-border );
28
+ @include box-shadow( $kendo-checkbox-focus-shadow );
29
29
  }
30
30
 
31
31
 
32
32
  // Indeterminate
33
33
  .k-checkbox:indeterminate,
34
- .k-checkbox.k-state-indeterminate,
35
34
  .k-checkbox.k-indeterminate {
36
35
  @include fill(
37
- $checkbox-indeterminate-text,
38
- $checkbox-indeterminate-bg,
39
- $checkbox-indeterminate-border
36
+ $kendo-checkbox-indeterminate-text,
37
+ $kendo-checkbox-indeterminate-bg,
38
+ $kendo-checkbox-indeterminate-border
40
39
  );
41
40
  }
42
41
 
@@ -45,15 +44,15 @@
45
44
  .k-checkbox:checked,
46
45
  .k-checkbox.k-checked {
47
46
  @include fill(
48
- $checkbox-checked-text,
49
- $checkbox-checked-bg,
50
- $checkbox-checked-border
47
+ $kendo-checkbox-checked-text,
48
+ $kendo-checkbox-checked-bg,
49
+ $kendo-checkbox-checked-border
51
50
  );
52
51
  }
53
52
  .k-checkbox:checked:focus,
54
- .k-checkbox.k-checked.k-state-focus {
55
- @include fill( $border: $checkbox-focused-checked-border );
56
- @include box-shadow( $checkbox-focused-checked-shadow );
53
+ .k-checkbox.k-checked.k-focus {
54
+ @include fill( $border: $kendo-checkbox-focus-checked-border );
55
+ @include box-shadow( $kendo-checkbox-focus-checked-shadow );
57
56
  }
58
57
 
59
58
 
@@ -61,44 +60,39 @@
61
60
  .k-checkbox:disabled,
62
61
  .k-checkbox.k-disabled {
63
62
  @include fill(
64
- $checkbox-disabled-text,
65
- $checkbox-disabled-bg,
66
- $checkbox-disabled-border
63
+ $kendo-checkbox-disabled-text,
64
+ $kendo-checkbox-disabled-bg,
65
+ $kendo-checkbox-disabled-border
67
66
  );
68
67
  }
69
68
  .k-checkbox:checked:disabled,
70
69
  .k-checkbox:indeterminate:disabled,
71
- .k-checkbox.k-state-indeterminate:disabled,
72
70
  .k-checkbox.k-checked.k-disabled,
73
71
  .k-checkbox.k-indeterminate.k-disabled {
74
72
  @include fill(
75
- $checkbox-disabled-checked-text,
76
- $checkbox-disabled-checked-bg,
77
- $checkbox-disabled-checked-border
73
+ $kendo-checkbox-disabled-checked-text,
74
+ $kendo-checkbox-disabled-checked-bg,
75
+ $kendo-checkbox-disabled-checked-border
78
76
  );
79
77
  }
80
78
 
81
79
 
82
80
  // Invalid
83
- .k-checkbox.k-invalid,
84
- .k-checkbox.k-state-invalid,
85
- .k-checkbox.ng-invalid.ng-touched,
86
- .k-checkbox.ng-invalid.ng-dirty {
87
- @include fill( $border: $checkbox-invalid-border );
81
+ .k-checkbox:invalid,
82
+ .k-checkbox.k-invalid {
83
+ @include fill( $border: $kendo-checkbox-invalid-border );
88
84
  }
89
- .k-checkbox.k-invalid + .k-checkbox-label,
90
- .k-checkbox.k-state-invalid + .k-checkbox-label,
91
- .k-checkbox.ng-invalid.ng-touched + .k-checkbox-label,
92
- .k-checkbox.ng-invalid.ng-dirty + .k-checkbox-label {
93
- @include fill( $color: $checkbox-invalid-text );
85
+ .k-checkbox:invalid + .k-checkbox-label,
86
+ .k-checkbox.k-invalid + .k-checkbox-label {
87
+ @include fill( $color: $kendo-checkbox-invalid-text );
94
88
  }
95
89
 
96
90
 
97
91
  // Ripple
98
92
  .k-ripple-container {
99
93
  .k-checkbox::after {
100
- background: $checkbox-checked-bg;
101
- opacity: $checkbox-ripple-opacity;
94
+ background: $kendo-checkbox-checked-bg;
95
+ opacity: $kendo-checkbox-ripple-opacity;
102
96
  }
103
97
  }
104
98
 
@@ -1,73 +1,170 @@
1
1
  // Checkbox
2
- $checkbox-size: map-get( $spacing, 4 ) !default;
3
- $checkbox-radius: map-get( $spacing, thin ) !default;
4
- $checkbox-border-width: 1px !default;
5
- $checkbox-line-height: calc( #{$checkbox-size} + #{$checkbox-border-width} ) !default;
6
2
 
7
- $checkbox-bg: $white !default;
8
- $checkbox-text: transparent !default;
9
- $checkbox-border: $base-border !default;
10
-
11
- $checkbox-hovered-bg: null !default;
12
- $checkbox-hovered-text: null !default;
13
- $checkbox-hovered-border: null !default;
14
-
15
- $checkbox-checked-bg: $primary !default;
16
- $checkbox-checked-text: contrast-wcag( $checkbox-checked-bg ) !default;
17
- $checkbox-checked-border: $checkbox-checked-bg !default;
18
-
19
- $checkbox-indeterminate-bg: $checkbox-bg !default;
20
- $checkbox-indeterminate-text: $checkbox-checked-bg !default;
21
- $checkbox-indeterminate-border: $checkbox-border !default;
22
-
23
- $checkbox-focused-border: null !default;
24
- $checkbox-focused-shadow: 0 0 0 2px rgba(0, 0, 0, .06) !default;
25
- $checkbox-focused-checked-border: null !default;
26
- $checkbox-focused-checked-shadow: 0 0 0 2px rgba( $primary, .3 ) !default;
27
-
28
- $checkbox-disabled-bg: null !default;
29
- $checkbox-disabled-text: null !default;
30
- $checkbox-disabled-border: null !default;
31
-
32
- $checkbox-disabled-checked-bg: null !default;
33
- $checkbox-disabled-checked-text: null !default;
34
- $checkbox-disabled-checked-border: null !default;
35
-
36
- $checkbox-invalid-bg: null !default;
37
- $checkbox-invalid-text: $invalid-text !default;
38
- $checkbox-invalid-border: $invalid-border !default;
3
+ /// The sizes of checkbox.
4
+ /// @group checkbox
5
+ $kendo-checkbox-sizes: (
6
+ sm: map-get( $spacing, 3 ),
7
+ md: map-get( $spacing, 4 ),
8
+ lg: map-get( $spacing, 6 )
9
+ ) !default;
10
+
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.
19
+ /// @group checkbox
20
+ $kendo-checkbox-bg: $white !default;
21
+ /// The text of checkbox.
22
+ /// @group checkbox
23
+ $kendo-checkbox-text: transparent !default;
24
+ /// The border of checkbox.
25
+ /// @group checkbox
26
+ $kendo-checkbox-border: $base-border !default;
27
+
28
+ /// The background of hovered checkbox.
29
+ /// @group checkbox
30
+ $kendo-checkbox-hover-bg: null !default;
31
+ /// The text of hovered checkbox.
32
+ /// @group checkbox
33
+ $kendo-checkbox-hover-text: null !default;
34
+ /// The border of hovered checkbox.
35
+ /// @group checkbox
36
+ $kendo-checkbox-hover-border: null !default;
37
+
38
+ /// The background of checked checkbox.
39
+ /// @group checkbox
40
+ $kendo-checkbox-checked-bg: $primary !default;
41
+ /// The text of checked checkbox.
42
+ /// @group checkbox
43
+ $kendo-checkbox-checked-text: contrast-wcag( $kendo-checkbox-checked-bg ) !default;
44
+ /// The border of checked checkbox.
45
+ /// @group checkbox
46
+ $kendo-checkbox-checked-border: $kendo-checkbox-checked-bg !default;
47
+
48
+ /// The background of indeterminate checkbox.
49
+ /// @group checkbox
50
+ $kendo-checkbox-indeterminate-bg: $kendo-checkbox-bg !default;
51
+ /// The text of indeterminate checkbox.
52
+ /// @group checkbox
53
+ $kendo-checkbox-indeterminate-text: $kendo-checkbox-checked-bg !default;
54
+ /// The border of indeterminate checkbox.
55
+ /// @group checkbox
56
+ $kendo-checkbox-indeterminate-border: $kendo-checkbox-border !default;
57
+
58
+ /// The border of focused checkbox.
59
+ /// @group checkbox
60
+ $kendo-checkbox-focus-border: null !default;
61
+ /// The shadow of focused checkbox.
62
+ /// @group checkbox
63
+ $kendo-checkbox-focus-shadow: 0 0 0 2px rgba(0, 0, 0, .06) !default;
64
+ /// The border of focused and checked checkbox.
65
+ /// @group checkbox
66
+ $kendo-checkbox-focus-checked-border: null !default;
67
+ /// The shadow of focused and checked checkbox.
68
+ /// @group checkbox
69
+ $kendo-checkbox-focus-checked-shadow: 0 0 0 2px rgba( $primary, .3 ) !default;
70
+
71
+ /// The background of disabled checkbox.
72
+ /// @group checkbox
73
+ $kendo-checkbox-disabled-bg: null !default;
74
+ /// The text of disabled checkbox.
75
+ /// @group checkbox
76
+ $kendo-checkbox-disabled-text: null !default;
77
+ /// The border of disabled checkbox.
78
+ /// @group checkbox
79
+ $kendo-checkbox-disabled-border: null !default;
80
+
81
+ /// The background of disabled and checked checkbox.
82
+ /// @group checkbox
83
+ $kendo-checkbox-disabled-checked-bg: null !default;
84
+ /// The text of disabled and checked checkbox.
85
+ /// @group checkbox
86
+ $kendo-checkbox-disabled-checked-text: null !default;
87
+ /// The border of disabled and checked checkbox.
88
+ /// @group checkbox
89
+ $kendo-checkbox-disabled-checked-border: null !default;
90
+
91
+ /// The background of invalid checkbox.
92
+ /// @group checkbox
93
+ $kendo-checkbox-invalid-bg: null !default;
94
+ /// The text of invalid checkbox.
95
+ /// @group checkbox
96
+ $kendo-checkbox-invalid-text: $invalid-text !default;
97
+ /// The border of invalid checkbox.
98
+ /// @group checkbox
99
+ $kendo-checkbox-invalid-border: $invalid-border !default;
39
100
 
40
101
 
41
102
  // Checkbox indicator
42
- $checkbox-icon-type: glyph !default;
43
103
 
44
- $checkbox-glyph-font-family: "WebComponentsIcons", monospace !default;
45
- $checkbox-glyph-size: 12px !default;
46
- $checkbox-checked-glyph: "\e118" !default;
47
- $checkbox-indeterminate-glyph: "\e121" !default;
104
+ /// The icon type of checked checkbox.
105
+ /// @group checkbox
106
+ $kendo-checkbox-icon-type: glyph !default;
48
107
 
49
- $checkbox-checked-image: null !default;
50
- $checkbox-indeterminate-image: null !default;
108
+ /// The glyph font family of checkbox.
109
+ /// @group checkbox
110
+ $kendo-checkbox-glyph-font-family: "WebComponentsIcons", monospace !default;
111
+ /// The glyph of checked checkbox.
112
+ /// @group checkbox
113
+ $kendo-checkbox-checked-glyph: "\e118" !default;
114
+ /// The glyph of indeterminate checkbox.
115
+ /// @group checkbox
116
+ $kendo-checkbox-indeterminate-glyph: "\e121" !default;
51
117
 
52
- $checkbox-marker-checked-width: ( $checkbox-size / 2 ) !default;
53
- $checkbox-marker-checked-height: ( $checkbox-size / 2 ) !default;
54
- $checkbox-marker-indeterminate-width: ( $checkbox-size / 2 ) !default;
55
- $checkbox-marker-indeterminate-height: ( $checkbox-size / 2 ) !default;
118
+ /// The image of checked checkbox.
119
+ /// @group checkbox
120
+ $kendo-checkbox-checked-image: null !default;
121
+ /// The image of indeterminate checkbox.
122
+ /// @group checkbox
123
+ $kendo-checkbox-indeterminate-image: null !default;
56
124
 
57
125
 
58
126
  // Checkbox label
59
- $checkbox-label-margin-x: map-get( $spacing, 1 ) !default;
127
+
128
+ /// The horizontal margin of the checkbox inside a label.
129
+ /// @group checkbox
130
+ $kendo-checkbox-label-margin-x: map-get( $spacing, 1 ) !default;
60
131
 
61
132
 
62
133
  // Checkbox list
63
- $checkbox-list-margin: 0px !default;
64
- $checkbox-list-padding: 0px !default;
65
- $checkbox-list-item-padding-x: 0px !default;
66
- $checkbox-list-item-padding-y: $list-item-padding-y !default;
67
- $checkbox-list-horizontal-item-margin-x: 32px !default;
134
+
135
+ /// The list margin checkbox.
136
+ /// @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.
142
+ /// @group checkbox
143
+ $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.
148
+ /// @group checkbox
149
+ $kendo-checkbox-list-horizontal-item-margin-x: 32px !default;
68
150
 
69
151
 
70
152
  // Checkbox ripple
71
- $checkbox-ripple-size: $checkbox-size * 3 !default;
72
- $checkbox-ripple-margin: calc(-1 * (#{$checkbox-size} + 2 * #{$checkbox-border-width})) !default;
73
- $checkbox-ripple-opacity: .3 !default;
153
+
154
+ /// The ripple size of checkbox.
155
+ /// @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.
169
+ /// @group checkbox
170
+ $kendo-checkbox-ripple-opacity: .3 !default;