@progress/kendo-theme-classic 4.43.1-dev.3 → 4.43.1-dev.7

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 (135) hide show
  1. package/README.md +5 -8
  2. package/dist/all.css +2134 -1548
  3. package/dist/all.scss +2410 -2314
  4. package/modules/@progress/kendo-theme-default/package.json +2 -2
  5. package/modules/@progress/kendo-theme-default/scss/adaptive/_layout.scss +40 -86
  6. package/modules/@progress/kendo-theme-default/scss/adaptive/_theme.scss +0 -9
  7. package/modules/@progress/kendo-theme-default/scss/appbar/_layout.scss +13 -0
  8. package/modules/@progress/kendo-theme-default/scss/appbar/_variables.scss +1 -1
  9. package/modules/@progress/kendo-theme-default/scss/autocomplete/_layout.scss +4 -4
  10. package/modules/@progress/kendo-theme-default/scss/autocomplete/_theme.scss +20 -39
  11. package/modules/@progress/kendo-theme-default/scss/autocomplete/_variables.scss +0 -19
  12. package/modules/@progress/kendo-theme-default/scss/avatar/_variables.scss +11 -1
  13. package/modules/@progress/kendo-theme-default/scss/button/_layout.scss +77 -101
  14. package/modules/@progress/kendo-theme-default/scss/button/_theme.scss +177 -112
  15. package/modules/@progress/kendo-theme-default/scss/button/_variables.scss +77 -11
  16. package/modules/@progress/kendo-theme-default/scss/calendar/_layout.scss +2 -14
  17. package/modules/@progress/kendo-theme-default/scss/card/_variables.scss +4 -4
  18. package/modules/@progress/kendo-theme-default/scss/chat/_layout.scss +9 -9
  19. package/modules/@progress/kendo-theme-default/scss/chat/_theme.scss +0 -21
  20. package/modules/@progress/kendo-theme-default/scss/chat/_variables.scss +0 -7
  21. package/modules/@progress/kendo-theme-default/scss/checkbox/_index.scss +1 -0
  22. package/modules/@progress/kendo-theme-default/scss/checkbox/_layout.scss +80 -146
  23. package/modules/@progress/kendo-theme-default/scss/checkbox/_theme.scss +6 -2
  24. package/modules/@progress/kendo-theme-default/scss/checkbox/_variables.scss +87 -18
  25. package/modules/@progress/kendo-theme-default/scss/color-preview/_layout.scss +49 -7
  26. package/modules/@progress/kendo-theme-default/scss/color-preview/_theme.scss +0 -14
  27. package/modules/@progress/kendo-theme-default/scss/coloreditor/_layout.scss +5 -1
  28. package/modules/@progress/kendo-theme-default/scss/coloreditor/_variables.scss +3 -3
  29. package/modules/@progress/kendo-theme-default/scss/colorgradient/_layout.scss +0 -4
  30. package/modules/@progress/kendo-theme-default/scss/colorpicker/_layout.scss +6 -0
  31. package/modules/@progress/kendo-theme-default/scss/combobox/_layout.scss +22 -29
  32. package/modules/@progress/kendo-theme-default/scss/combobox/_theme.scss +59 -99
  33. package/modules/@progress/kendo-theme-default/scss/combobox/_variables.scss +1 -32
  34. package/modules/@progress/kendo-theme-default/scss/common/_loading.scss +1 -13
  35. package/modules/@progress/kendo-theme-default/scss/daterangepicker/_index.scss +10 -0
  36. package/modules/@progress/kendo-theme-default/scss/daterangepicker/_layout.scss +27 -0
  37. package/modules/@progress/kendo-theme-default/scss/daterangepicker/_theme.scss +3 -0
  38. package/modules/@progress/kendo-theme-default/scss/daterangepicker/_variables.scss +1 -0
  39. package/modules/@progress/kendo-theme-default/scss/dropdowngrid/_layout.scss +1 -0
  40. package/modules/@progress/kendo-theme-default/scss/dropdownlist/_layout.scss +37 -55
  41. package/modules/@progress/kendo-theme-default/scss/dropdownlist/_theme.scss +33 -75
  42. package/modules/@progress/kendo-theme-default/scss/editor/_layout.scss +7 -22
  43. package/modules/@progress/kendo-theme-default/scss/forms/_layout.scss +6 -12
  44. package/modules/@progress/kendo-theme-default/scss/gantt/_layout.scss +1 -1
  45. package/modules/@progress/kendo-theme-default/scss/grid/_layout.scss +128 -97
  46. package/modules/@progress/kendo-theme-default/scss/grid/_theme.scss +0 -6
  47. package/modules/@progress/kendo-theme-default/scss/grid/_variables.scss +7 -9
  48. package/modules/@progress/kendo-theme-default/scss/imageeditor/_layout.scss +4 -8
  49. package/modules/@progress/kendo-theme-default/scss/imageeditor/_variables.scss +1 -0
  50. package/modules/@progress/kendo-theme-default/scss/index.scss +1 -0
  51. package/modules/@progress/kendo-theme-default/scss/input/_layout.scss +1 -1
  52. package/modules/@progress/kendo-theme-default/scss/input/_variables.scss +5 -5
  53. package/modules/@progress/kendo-theme-default/scss/list/_index.scss +1 -0
  54. package/modules/@progress/kendo-theme-default/scss/list/_layout.scss +16 -51
  55. package/modules/@progress/kendo-theme-default/scss/list/_theme.scss +4 -3
  56. package/modules/@progress/kendo-theme-default/scss/list/_variables.scss +66 -6
  57. package/modules/@progress/kendo-theme-default/scss/listbox/_layout.scss +9 -0
  58. package/modules/@progress/kendo-theme-default/scss/listbox/_variables.scss +1 -1
  59. package/modules/@progress/kendo-theme-default/scss/listview/_layout.scss +2 -9
  60. package/modules/@progress/kendo-theme-default/scss/map/_layout.scss +7 -5
  61. package/modules/@progress/kendo-theme-default/scss/maskedtextbox/_layout.scss +17 -31
  62. package/modules/@progress/kendo-theme-default/scss/maskedtextbox/_theme.scss +44 -14
  63. package/modules/@progress/kendo-theme-default/scss/mediaplayer/_layout.scss +13 -1
  64. package/modules/@progress/kendo-theme-default/scss/menu/_layout.scss +48 -5
  65. package/modules/@progress/kendo-theme-default/scss/menu/_theme.scss +6 -2
  66. package/modules/@progress/kendo-theme-default/scss/menu/_variables.scss +1 -1
  67. package/modules/@progress/kendo-theme-default/scss/multiselect/_layout.scss +2 -2
  68. package/modules/@progress/kendo-theme-default/scss/numerictextbox/_layout.scss +9 -27
  69. package/modules/@progress/kendo-theme-default/scss/numerictextbox/_theme.scss +64 -84
  70. package/modules/@progress/kendo-theme-default/scss/numerictextbox/_variables.scss +0 -27
  71. package/modules/@progress/kendo-theme-default/scss/orgchart/_variables.scss +2 -2
  72. package/modules/@progress/kendo-theme-default/scss/pager/_variables.scss +1 -1
  73. package/modules/@progress/kendo-theme-default/scss/pdf-viewer/_layout.scss +20 -29
  74. package/modules/@progress/kendo-theme-default/scss/pdf-viewer/_variables.scss +2 -5
  75. package/modules/@progress/kendo-theme-default/scss/radio/_index.scss +1 -0
  76. package/modules/@progress/kendo-theme-default/scss/radio/_layout.scss +90 -136
  77. package/modules/@progress/kendo-theme-default/scss/radio/_theme.scss +2 -2
  78. package/modules/@progress/kendo-theme-default/scss/radio/_variables.scss +88 -26
  79. package/modules/@progress/kendo-theme-default/scss/scheduler/_layout.scss +26 -13
  80. package/modules/@progress/kendo-theme-default/scss/searchbox/_layout.scss +22 -8
  81. package/modules/@progress/kendo-theme-default/scss/searchbox/_theme.scss +16 -25
  82. package/modules/@progress/kendo-theme-default/scss/searchbox/_variables.scss +0 -20
  83. package/modules/@progress/kendo-theme-default/scss/skeleton/_layout.scss +1 -1
  84. package/modules/@progress/kendo-theme-default/scss/slider/_layout.scss +69 -146
  85. package/modules/@progress/kendo-theme-default/scss/slider/_theme.scss +0 -6
  86. package/modules/@progress/kendo-theme-default/scss/spreadsheet/_layout.scss +32 -23
  87. package/modules/@progress/kendo-theme-default/scss/table/_layout.scss +29 -6
  88. package/modules/@progress/kendo-theme-default/scss/table/_theme.scss +3 -2
  89. package/modules/@progress/kendo-theme-default/scss/table/_variables.scss +3 -3
  90. package/modules/@progress/kendo-theme-default/scss/tabstrip/_layout.scss +5 -1
  91. package/modules/@progress/kendo-theme-default/scss/textarea/_layout.scss +1 -1
  92. package/modules/@progress/kendo-theme-default/scss/timeselector/_layout.scss +3 -2
  93. package/modules/@progress/kendo-theme-default/scss/toolbar/_layout.scss +37 -2
  94. package/modules/@progress/kendo-theme-default/scss/toolbar/_theme.scss +35 -7
  95. package/modules/@progress/kendo-theme-default/scss/treelist/_layout.scss +4 -0
  96. package/modules/@progress/kendo-theme-default/scss/treeview/_layout.scss +130 -116
  97. package/modules/@progress/kendo-theme-default/scss/treeview/_theme.scss +36 -25
  98. package/modules/@progress/kendo-theme-default/scss/treeview/_variables.scss +67 -13
  99. package/modules/@progress/kendo-theme-default/scss/typography/_variables.scss +3 -3
  100. package/modules/@progress/kendo-theme-default/scss/window/_layout.scss +2 -2
  101. package/modules/@progress/kendo-theme-default/scss/window/_variables.scss +1 -1
  102. package/package.json +3 -3
  103. package/scss/appbar/_variables.scss +1 -1
  104. package/scss/autocomplete/_variables.scss +0 -19
  105. package/scss/avatar/_variables.scss +13 -2
  106. package/scss/button/_variables.scss +84 -18
  107. package/scss/card/_variables.scss +4 -4
  108. package/scss/chat/_variables.scss +0 -7
  109. package/scss/checkbox/_index.scss +1 -0
  110. package/scss/checkbox/_variables.scss +88 -19
  111. package/scss/coloreditor/_variables.scss +3 -3
  112. package/scss/combobox/_variables.scss +1 -32
  113. package/scss/daterangepicker/_index.scss +10 -0
  114. package/scss/daterangepicker/_layout.scss +1 -0
  115. package/scss/daterangepicker/_theme.scss +1 -0
  116. package/scss/daterangepicker/_variables.scss +1 -0
  117. package/scss/fab/index.md +0 -0
  118. package/scss/grid/_variables.scss +7 -9
  119. package/scss/imageeditor/_variables.scss +1 -0
  120. package/scss/index.scss +1 -0
  121. package/scss/input/_variables.scss +5 -5
  122. package/scss/list/_index.scss +1 -0
  123. package/scss/list/_variables.scss +66 -6
  124. package/scss/listbox/_variables.scss +1 -1
  125. package/scss/menu/_variables.scss +1 -1
  126. package/scss/numerictextbox/_variables.scss +0 -27
  127. package/scss/orgchart/_variables.scss +2 -2
  128. package/scss/pager/_variables.scss +1 -1
  129. package/scss/pdf-viewer/_variables.scss +2 -5
  130. package/scss/radio/_index.scss +1 -0
  131. package/scss/radio/_variables.scss +86 -27
  132. package/scss/searchbox/_variables.scss +0 -20
  133. package/scss/table/_variables.scss +3 -3
  134. package/scss/treeview/_variables.scss +70 -16
  135. package/scss/typography/_variables.scss +3 -3
@@ -16,34 +16,24 @@
16
16
  background-repeat: no-repeat;
17
17
  background-size: contain;
18
18
  display: inline-block;
19
+ flex: none;
19
20
  vertical-align: middle;
20
21
  position: relative;
21
22
  cursor: pointer;
22
23
  -webkit-appearance: none;
23
24
  }
24
25
 
26
+
25
27
  // Checkbox indicator
26
28
  .k-checkbox::before {
27
- @if $checkbox-icon-type == "glyph" {
29
+ @if $checkbox-indicator-type == "glyph" {
28
30
  content: $checkbox-checked-glyph;
29
31
  width: $checkbox-glyph-size;
30
32
  height: $checkbox-glyph-size;
31
33
  font-size: $checkbox-glyph-size;
32
34
  font-family: $checkbox-glyph-font-family;
33
35
  line-height: 1;
34
- transform: scale(0) translate(-50%, -50%);
35
- overflow: hidden;
36
- position: absolute;
37
- top: 50%;
38
- left: 50%;
39
- }
40
-
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%);
36
+ transform: translate(-50%, -50%) scale(0);
47
37
  overflow: hidden;
48
38
  position: absolute;
49
39
  top: 50%;
@@ -55,19 +45,13 @@
55
45
  // Checked state
56
46
  .k-checkbox:checked,
57
47
  .k-checkbox.k-checked {
58
- @if $checkbox-icon-type == "image" {
48
+ @if $checkbox-indicator-type == "image" {
59
49
  background-image: $checkbox-checked-image;
60
50
  }
61
51
 
62
- @if $checkbox-icon-type == "glyph" {
63
- &::before {
64
- transform: scale(1) translate(-50%, -50%);
65
- }
66
- }
67
-
68
- @if $checkbox-icon-type == "marker" {
52
+ @if $checkbox-indicator-type == "glyph" {
69
53
  &::before {
70
- transform: scale(1) translate(-50%, -50%);
54
+ transform: translate(-50%, -50%) scale(1);
71
55
  }
72
56
  }
73
57
  }
@@ -77,22 +61,14 @@
77
61
  .k-checkbox:indeterminate,
78
62
  .k-checkbox.k-indeterminate,
79
63
  .k-checkbox.k-state-indeterminate {
80
- @if $checkbox-icon-type == "image" {
64
+ @if $checkbox-indicator-type == "image" {
81
65
  background-image: $checkbox-indeterminate-image;
82
66
  }
83
67
 
84
- @if $checkbox-icon-type == "glyph" {
68
+ @if $checkbox-indicator-type == "glyph" {
85
69
  &::before {
86
70
  content: $checkbox-indeterminate-glyph;
87
- transform: scale(1) translate(-50%, -50%);
88
- }
89
- }
90
-
91
- @if $checkbox-icon-type == "marker" {
92
- &::before {
93
- width: $checkbox-maker-indeterminate-width;
94
- height: $checkbox-marker-indeterminate-height;
95
- transform: scale(1) translate(-50%, -50%);
71
+ transform: translate(-50%, -50%) scale(1);
96
72
  }
97
73
  }
98
74
  }
@@ -100,79 +76,62 @@
100
76
 
101
77
  // Disabled state
102
78
  .k-checkbox:disabled,
103
- .k-checkbox.k-disabled,
104
- .k-checkbox:disabled + .k-checkbox-label,
105
- .k-checkbox.k-disabled + .k-checkbox-label {
79
+ .k-checkbox.k-disabled {
106
80
  @include disabled( $disabled-styling );
107
81
  }
108
82
 
83
+
84
+ // Checkbox wrap
85
+ .k-checkbox-wrap {
86
+ flex: none;
87
+ display: inline-flex;
88
+ flex-flow: row nowrap;
89
+ gap: 0;
90
+ align-items: center;
91
+ align-self: flex-start;
92
+ vertical-align: middle;
93
+ position: relative;
94
+
95
+ &::before {
96
+ content: "\200b";
97
+ width: 0px;
98
+ overflow: hidden;
99
+ flex: none;
100
+ display: inline-block;
101
+ vertical-align: top;
102
+ }
103
+ }
104
+
105
+
109
106
  // Checkbox label
110
107
  .k-checkbox-label {
111
108
  margin: 0;
112
109
  padding: 0;
113
- line-height: $checkbox-line-height;
114
110
  display: inline-flex;
115
111
  align-items: flex-start;
112
+ gap: $checkbox-label-margin-x;
116
113
  vertical-align: middle;
117
114
  position: relative;
118
115
  cursor: pointer;
119
116
 
120
- .k-label {
121
- cursor: pointer;
122
- }
123
-
124
117
  .k-ripple {
125
- top: $checkbox-size / 2;
126
- left: $checkbox-size / 2;
127
- right: auto;
128
- bottom: auto;
129
- width: $checkbox-size * 5 / 2;
130
- height: $checkbox-size * 5 / 2;
131
- transform: translate(-50%, -50%);
132
- border-radius: 50%;
133
-
134
118
  // Hide ripple temporarily
135
119
  visibility: hidden !important; // sass-lint:disable-line no-important
136
120
  }
137
-
138
- .k-ripple-blob {
139
- // sass-lint:disable-block no-important
140
- // use !important until ripple can apply these styles from the script
141
- top: 50% !important;
142
- left: 50% !important;
143
- width: 200% !important;
144
- height: 200% !important;
145
- }
146
- }
147
- .k-checkbox + .k-checkbox-label {
148
- display: inline;
149
121
  }
122
+ .k-checkbox + .k-label,
123
+ .k-checkbox-wrap + .k-label,
150
124
  .k-checkbox + .k-checkbox-label,
151
- .k-checkbox-label + .k-checkbox {
152
- margin-left: $checkbox-label-margin-x;
153
- }
154
- .k-checkbox-label > .k-checkbox {
155
- margin-right: $checkbox-label-margin-x;
156
- flex-shrink: 0;
157
- }
158
- kendo-label.k-checkbox-label > .k-checkbox:last-child {
159
- margin-right: 0;
160
- }
161
- kendo-label.k-checkbox-label > .k-label:first-child {
162
- margin-right: $checkbox-label-margin-x;
163
- }
164
- kendo-label.k-checkbox-label > .k-label {
125
+ .k-checkbox-wrap + .k-checkbox-label {
165
126
  display: inline;
127
+ margin-inline-start: $checkbox-label-margin-x;
166
128
  }
167
129
 
168
130
 
169
131
  // Empty label
170
132
  .k-checkbox-label:empty {
171
- display: none;
133
+ display: none !important; // sass-lint:disable-line no-important
172
134
  }
173
-
174
-
175
- // Label with no text
176
135
  .k-checkbox-label.k-no-text {
177
136
  min-width: 1px;
178
137
  }
@@ -180,73 +139,62 @@
180
139
 
181
140
  // Checkbox list
182
141
  .k-checkbox-list {
183
- margin: $checkbox-list-margin;
184
- padding: $checkbox-list-padding;
142
+ margin: 0;
143
+ padding: 0;
144
+ display: flex;
145
+ flex-flow: column nowrap;
146
+ gap: 0;
185
147
  list-style: none;
186
-
187
- .k-checkbox-item {
188
- padding: $checkbox-list-item-padding-y $checkbox-list-item-padding-x;
189
- }
190
148
  }
149
+ .k-checkbox-item,
150
+ .k-checkbox-list-item {
151
+ padding: $checkbox-list-item-padding-y $checkbox-list-item-padding-x;
152
+ display: flex;
153
+ flex-flow: row nowrap;
154
+ align-items: center;
155
+ align-content: center;
156
+ gap: map-get( $spacing, 1 );
191
157
 
192
- .k-list-horizontal {
193
- .k-checkbox-item {
194
- display: inline-block;
195
- margin: 0 $checkbox-list-horizontal-item-margin-x 0 0;
196
-
197
- &:last-child {
198
- margin-right: 0;
199
- }
158
+ .k-checkbox-label {
159
+ margin: 0;
200
160
  }
201
161
  }
162
+ .k-checkbox-list-horizontal,
163
+ .k-checkbox-list.k-list-horizontal {
164
+ display: flex;
165
+ flex-flow: row wrap;
166
+ gap: $checkbox-list-spacing;
167
+ }
202
168
 
203
169
 
204
- // RTL
205
- .k-rtl,
206
- [dir="rtl"] {
207
- .k-checkbox + .k-checkbox-label,
208
- .k-checkbox-label + .k-checkbox {
209
- margin-left: 0;
210
- margin-right: $checkbox-label-margin-x;
211
- }
212
- .k-checkbox-label > .k-checkbox {
213
- margin-right: 0;
214
- margin-left: $checkbox-label-margin-x;
215
- }
216
- kendo-label.k-checkbox-label > .k-checkbox:last-child {
217
- margin-left: 0;
218
- }
219
- kendo-label.k-checkbox-label > .k-label:first-child {
220
- margin-right: 0;
221
- margin-left: $checkbox-label-margin-x;
222
- }
223
-
224
- .k-list-horizontal {
225
- .k-checkbox-item {
226
- margin-right: 0;
227
- margin-left: $checkbox-list-horizontal-item-margin-x;
228
-
229
- &:last-child {
230
- margin-left: 0;
231
- }
232
- }
233
- }
170
+ // Ripple
171
+ .k-checkbox-wrap .k-ripple-blob {
172
+ width: $checkbox-ripple-size;
173
+ height: $checkbox-ripple-size;
234
174
  }
235
-
236
175
  .k-ripple-container {
237
176
  .k-checkbox::after {
238
177
  content: "";
239
178
  display: block;
240
179
  position: absolute;
241
- left: 0;
242
- top: 0;
180
+ left: 50%;
181
+ top: 50%;
243
182
  width: $checkbox-ripple-size;
244
183
  height: $checkbox-ripple-size;
245
- margin-left: $checkbox-ripple-margin;
246
- margin-top: $checkbox-ripple-margin;
247
184
  border-radius: 100%;
248
- z-index: 1;
249
- transform: scale(0);
185
+ z-index: -1;
186
+ transition: opacity 100ms linear, transform 150ms cubic-bezier(.4, 0, .2, 1);
187
+ transform: translate(-50%, -50%) scale(0);
188
+ transform-origin: center center;
189
+ }
190
+
191
+ .k-checkbox:focus,
192
+ .k-checkbox.k-state-focus {
193
+ box-shadow: none !important; // sass-lint:disable-line no-important
194
+
195
+ &::after {
196
+ transform: translate(-50%, -50%) scale(1);
197
+ }
250
198
  }
251
199
 
252
200
  .k-checkbox:disabled::after,
@@ -256,17 +204,3 @@
256
204
  }
257
205
 
258
206
  }
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
- }
@@ -1,4 +1,4 @@
1
- @include exports("checkbox/theme") {
1
+ @include exports( "checkbox/theme" ) {
2
2
 
3
3
  // Checkbox
4
4
  .k-checkbox {
@@ -95,9 +95,13 @@
95
95
 
96
96
 
97
97
  // Ripple
98
+ .k-checkbox-wrap .k-ripple-blob {
99
+ color: $checkbox-ripple-bg;
100
+ opacity: $checkbox-ripple-opacity;
101
+ }
98
102
  .k-ripple-container {
99
103
  .k-checkbox::after {
100
- background: $checkbox-checked-bg;
104
+ background: $checkbox-ripple-bg;
101
105
  opacity: $checkbox-ripple-opacity;
102
106
  }
103
107
  }
@@ -1,58 +1,118 @@
1
1
  // Checkbox
2
+
2
3
  $checkbox-size: map-get( $spacing, 4 ) !default;
3
4
  $checkbox-radius: map-get( $spacing, thin ) !default;
5
+ /// Border width of checkbox.
6
+ /// @group checkbox
4
7
  $checkbox-border-width: 1px !default;
5
- $checkbox-line-height: calc( #{$checkbox-size} + #{$checkbox-border-width} ) !default;
6
-
7
- $checkbox-bg: $white !default;
8
- $checkbox-text: transparent !default;
9
- $checkbox-border: $base-border !default;
10
8
 
9
+ /// Background color of checkbox.
10
+ /// @group checkbox
11
+ $checkbox-bg: $component-bg !default;
12
+ /// Color of checkbox.
13
+ /// @group checkbox
14
+ $checkbox-text: null !default;
15
+ /// Border color of checkbox.
16
+ /// @group checkbox
17
+ $checkbox-border: $component-border !default;
18
+
19
+ /// Background color of hovered checkbox.
20
+ /// @group checkbox
11
21
  $checkbox-hovered-bg: null !default;
22
+ /// Color of hovered checkbox.
23
+ /// @group checkbox
12
24
  $checkbox-hovered-text: null !default;
25
+ /// Border color of hovered checkbox.
26
+ /// @group checkbox
13
27
  $checkbox-hovered-border: null !default;
14
28
 
29
+ /// Background color of checked checkbox.
30
+ /// @group checkbox
15
31
  $checkbox-checked-bg: $primary !default;
32
+ /// Color of checked checkbox.
33
+ /// @group checkbox
16
34
  $checkbox-checked-text: contrast-wcag( $checkbox-checked-bg ) !default;
35
+ /// Border color of checked checkbox.
36
+ /// @group checkbox
17
37
  $checkbox-checked-border: $checkbox-checked-bg !default;
18
38
 
39
+ /// Background color of indeterminate checkbox.
40
+ /// @group checkbox
19
41
  $checkbox-indeterminate-bg: $checkbox-bg !default;
42
+ /// Color of indeterminate checkbox.
43
+ /// @group checkbox
20
44
  $checkbox-indeterminate-text: $checkbox-checked-bg !default;
45
+ /// Border color of indeterminate checkbox.
46
+ /// @group checkbox
21
47
  $checkbox-indeterminate-border: $checkbox-border !default;
22
48
 
49
+ /// Border color of focused checkbox.
50
+ /// @group checkbox
23
51
  $checkbox-focused-border: null !default;
52
+ /// Box shadow of focused checkbox.
53
+ /// @group checkbox
24
54
  $checkbox-focused-shadow: 0 0 0 2px rgba(0, 0, 0, .06) !default;
55
+ /// Border color of focused and checked checkbox.
56
+ /// @group checkbox
25
57
  $checkbox-focused-checked-border: null !default;
58
+ /// Box shadow of focused and checked checkbox.
59
+ /// @group checkbox
26
60
  $checkbox-focused-checked-shadow: 0 0 0 2px rgba( $primary, .3 ) !default;
27
61
 
62
+ /// Background color of disabled checkbox.
63
+ /// @group checkbox
28
64
  $checkbox-disabled-bg: null !default;
65
+ /// Color of disabled checkbox.
66
+ /// @group checkbox
29
67
  $checkbox-disabled-text: null !default;
68
+ /// Border color of disabled checkbox.
69
+ /// @group checkbox
30
70
  $checkbox-disabled-border: null !default;
31
71
 
72
+ /// Background color of disabled and checked checkbox.
73
+ /// @group checkbox
32
74
  $checkbox-disabled-checked-bg: null !default;
75
+ /// Color of disabled and checked checkbox.
76
+ /// @group checkbox
33
77
  $checkbox-disabled-checked-text: null !default;
78
+ /// Border color of disabled and checked checkbox.
79
+ /// @group checkbox
34
80
  $checkbox-disabled-checked-border: null !default;
35
81
 
82
+ /// Background color of invalid checkbox.
83
+ /// @group checkbox
36
84
  $checkbox-invalid-bg: null !default;
85
+ /// Color of invalid checkbox.
86
+ /// @group checkbox
37
87
  $checkbox-invalid-text: $invalid-text !default;
88
+ /// Border color of invalid checkbox.
89
+ /// @group checkbox
38
90
  $checkbox-invalid-border: $invalid-border !default;
39
91
 
40
92
 
41
93
  // Checkbox indicator
42
- $checkbox-icon-type: glyph !default;
43
94
 
95
+ /// Type of checkbox indicator.
96
+ /// @group checkbox
97
+ $checkbox-indicator-type: image !default;
98
+
99
+ /// Glyph font family of checkbox indicator.
100
+ /// @group checkbox
44
101
  $checkbox-glyph-font-family: "WebComponentsIcons", monospace !default;
45
102
  $checkbox-glyph-size: 12px !default;
103
+ /// Glyph of checkbox indicator.
104
+ /// @group checkbox
46
105
  $checkbox-checked-glyph: "\e118" !default;
106
+ /// Glyph of indeterminate checkbox indicator.
107
+ /// @group checkbox
47
108
  $checkbox-indeterminate-glyph: "\e121" !default;
48
109
 
49
- $checkbox-checked-image: null !default;
50
- $checkbox-indeterminate-image: null !default;
51
-
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;
110
+ /// Image of checked checkbox indicator.
111
+ /// @group checkbox
112
+ $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='#{$checkbox-checked-text}' stroke-linecap='square' stroke-linejoin='square' stroke-width='2' d='M3,8 l3,3 l7-7'/></svg>") ) !default;
113
+ /// Image image of checked checkbox indicator.
114
+ /// @group checkbox
115
+ $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='#{$checkbox-indeterminate-text}' stroke-linecap='square' stroke-linejoin='square' stroke-width='2' d='M4,8 h8'/></svg>") ) !default;
56
116
 
57
117
 
58
118
  // Checkbox label
@@ -60,14 +120,23 @@ $checkbox-label-margin-x: map-get( $spacing, 1 ) !default;
60
120
 
61
121
 
62
122
  // Checkbox list
63
- $checkbox-list-margin: 0px !default;
64
- $checkbox-list-padding: 0px !default;
123
+
124
+ /// Spacing between items of horizontal checkbox list.
125
+ /// @group checkbox
126
+ $checkbox-list-spacing: map-get( $spacing, 4 ) !default;
127
+ /// Horizontal padding of checkbox list items.
128
+ /// @group checkbox
65
129
  $checkbox-list-item-padding-x: 0px !default;
130
+ /// Vertical padding of checkbox list items.
131
+ /// @group checkbox
66
132
  $checkbox-list-item-padding-y: $list-item-padding-y !default;
67
- $checkbox-list-horizontal-item-margin-x: 32px !default;
68
133
 
69
134
 
70
135
  // Checkbox ripple
71
136
  $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;
137
+ /// Background color of checkbox ripple.
138
+ /// @group checkbox
139
+ $checkbox-ripple-bg: $checkbox-checked-bg !default;
140
+ /// Opacity of checkbox ripple.
141
+ /// @group checkbox
142
+ $checkbox-ripple-opacity: .25 !default;
@@ -4,6 +4,7 @@
4
4
  .k-color-preview {
5
5
  border-width: $color-preview-border-width;
6
6
  border-radius: $color-preview-border-radius;
7
+ box-sizing: border-box;
7
8
  border-style: solid;
8
9
  display: inline-flex;
9
10
  flex-direction: row;
@@ -11,21 +12,62 @@
11
12
  position: relative;
12
13
  overflow: hidden;
13
14
  }
14
- .k-color-preview::before {
15
- content: "";
15
+
16
+
17
+ // Current Color
18
+ .k-coloreditor-current-color {
19
+ cursor: pointer;
20
+ }
21
+
22
+
23
+ // Icon color preview
24
+ .k-icon-color-preview {
25
+ border-width: 0;
26
+ border-radius: 0;
27
+ display: flex;
28
+ flex-flow: column nowrap;
29
+ align-items: center;
30
+ justify-content: center;
31
+ gap: 2px;
32
+
33
+ .k-color-preview-mask {
34
+ width: calc( #{$icon-size} - 2px );
35
+ height: 2px;
36
+ }
37
+ }
38
+
39
+
40
+ // Color Preview Mask
41
+ .k-color-preview-mask {
16
42
  width: 100%;
17
43
  height: 100%;
18
- display: block;
19
44
  position: relative;
45
+ }
46
+ .k-color-preview-mask::before {
47
+ content: "";
48
+ width: 100%;
49
+ height: 100%;
50
+ position: absolute;
51
+ top: 0;
52
+ left: 0;
20
53
  z-index: -1;
54
+ background: $color-preview-transparent-color-image;
55
+ background-size: contain;
56
+ background-position: 0 0;
21
57
  }
22
58
 
23
- // Current Color
24
- .k-coloreditor-current-color {
25
- cursor: pointer;
26
- }
27
59
 
28
60
  // No Color
61
+ .k-no-color .k-color-preview-mask::before {
62
+ content: "";
63
+ background-color: $color-preview-no-color-bg;
64
+ background-image: $color-preview-no-color-image;
65
+ background-size: 100% 100%;
66
+ background-position: 0 0;
67
+ }
68
+
69
+
70
+ // No Color (legacy)
29
71
  .k-no-color::before {
30
72
  content: "";
31
73
  width: 100%;
@@ -8,12 +8,6 @@
8
8
  $color-preview-border
9
9
  );
10
10
 
11
- &::before {
12
- background: $color-preview-transparent-color-image;
13
- background-size: contain;
14
- background-position: 0;
15
- }
16
-
17
11
  &:hover,
18
12
  &.k-state-hover,
19
13
  &.k-hover {
@@ -21,12 +15,4 @@
21
15
  }
22
16
  }
23
17
 
24
- // No Color
25
- .k-no-color::before {
26
- background-color: $color-preview-no-color-bg;
27
- background-image: $color-preview-no-color-image;
28
- background-size: 100% 100%;
29
- background-position: 0 0;
30
- }
31
-
32
18
  }
@@ -26,8 +26,12 @@
26
26
  }
27
27
 
28
28
  .k-coloreditor-preview {
29
- position: relative;
29
+ display: flex;
30
+ flex-flow: column nowrap;
31
+ align-items: stretch;
32
+ justify-content: center;
30
33
  gap: $coloreditor-preview-gap;
34
+ position: relative;
31
35
  z-index: 1;
32
36
  }
33
37
  .k-coloreditor-preview .k-color-preview {
@@ -18,9 +18,9 @@ $coloreditor-header-padding-y: $coloreditor-spacer !default;
18
18
  $coloreditor-header-padding-x: $coloreditor-header-padding-y !default;
19
19
  $coloreditor-header-actions-gap: ( $coloreditor-spacer / 1.5 ) !default;
20
20
 
21
- $coloreditor-preview-gap: ( $coloreditor-spacer / 4 ) !default;
22
- $coloreditor-color-preview-width: 34px !default;
23
- $coloreditor-color-preview-height: 14px !default;
21
+ $coloreditor-preview-gap: map-get( $spacing, 1 ) !default;
22
+ $coloreditor-color-preview-width: 32px !default;
23
+ $coloreditor-color-preview-height: 12px !default;
24
24
 
25
25
  $coloreditor-views-padding-y: $coloreditor-spacer !default;
26
26
  $coloreditor-views-padding-x: $coloreditor-views-padding-y !default;
@@ -104,10 +104,6 @@
104
104
  z-index: 1;
105
105
  }
106
106
 
107
- .k-slider-wrap > .k-slider-track {
108
- height: $colorgradient-slider-vertical-size;
109
- }
110
-
111
107
  .k-slider-selection {
112
108
  display: none;
113
109
  }
@@ -34,6 +34,12 @@
34
34
  position: relative;
35
35
  overflow: hidden;
36
36
  }
37
+ .k-color-preview {
38
+ margin: $button-padding-y;
39
+ width: calc( #{$button-inner-calc-size} - #{$button-padding-y * 2} );
40
+ height: calc( #{$button-inner-calc-size} - #{$button-padding-y * 2} );
41
+ z-index: 1;
42
+ }
37
43
 
38
44
  .k-tool-icon {
39
45
  padding: $button-padding-y;