@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.
- package/dist/all.css +1651 -2882
- package/dist/all.scss +2211 -4033
- package/package.json +4 -4
- package/scss/_variables.scss +2 -0
- package/scss/adaptive/_layout.scss +0 -16
- package/scss/autocomplete/_layout.scss +1 -34
- package/scss/autocomplete/_theme.scss +2 -74
- package/scss/autocomplete/_variables.scss +12 -12
- package/scss/breadcrumb/_layout.scss +0 -5
- package/scss/button/_layout.scss +106 -114
- package/scss/button/_theme.scss +253 -264
- package/scss/button/_variables.scss +170 -130
- package/scss/button/index.md +3 -0
- package/scss/calendar/_layout.scss +0 -12
- package/scss/calendar/_theme.scss +0 -17
- package/scss/captcha/_layout.scss +0 -5
- package/scss/card/_layout.scss +0 -4
- package/scss/card/_variables.scss +1 -1
- package/scss/chat/_variables.scss +5 -5
- package/scss/checkbox/_layout.scss +87 -91
- package/scss/checkbox/_theme.scss +33 -39
- package/scss/checkbox/_variables.scss +153 -56
- package/scss/colorgradient/_layout.scss +0 -4
- package/scss/colorpicker/_layout.scss +2 -130
- package/scss/colorpicker/_theme.scss +2 -64
- package/scss/colorpicker/_variables.scss +9 -9
- package/scss/combobox/_layout.scss +2 -61
- package/scss/combobox/_theme.scss +2 -123
- package/scss/combobox/_variables.scss +23 -23
- package/scss/common/_base.scss +1 -2
- package/scss/core/_normalize.scss +11 -0
- package/scss/core/mixins/_input-ripple.scss +1 -1
- package/scss/dataviz/_theme.scss +8 -8
- package/scss/dataviz/_variables.scss +6 -6
- package/scss/dateinput/_index.scss +15 -0
- package/scss/dateinput/_layout.scss +6 -0
- package/scss/dateinput/_theme.scss +6 -0
- package/scss/dateinput/_variables.scss +1 -0
- package/scss/datepicker/_index.scss +15 -0
- package/scss/datepicker/_layout.scss +6 -0
- package/scss/datepicker/_theme.scss +6 -0
- package/scss/datepicker/_variables.scss +1 -0
- package/scss/daterangepicker/_index.scss +15 -0
- package/scss/daterangepicker/_layout.scss +3 -0
- package/scss/daterangepicker/_theme.scss +3 -0
- package/scss/daterangepicker/_variables.scss +1 -0
- package/scss/datetime/_layout.scss +2 -263
- package/scss/datetime/_theme.scss +0 -227
- package/scss/datetime/_variables.scss +27 -27
- package/scss/datetimepicker/_index.scss +15 -0
- package/scss/datetimepicker/_layout.scss +6 -0
- package/scss/datetimepicker/_theme.scss +6 -0
- package/scss/datetimepicker/_variables.scss +1 -0
- package/scss/dropdowngrid/_layout.scss +4 -0
- package/scss/dropdowngrid/_theme.scss +3 -0
- package/scss/dropdownlist/_layout.scss +3 -98
- package/scss/dropdownlist/_theme.scss +3 -91
- package/scss/dropdownlist/_variables.scss +9 -9
- package/scss/dropdowntree/_layout.scss +2 -25
- package/scss/dropdowntree/_theme.scss +2 -1
- package/scss/editor/_layout.scss +10 -48
- package/scss/editor/_variables.scss +2 -2
- package/scss/fab/_variables.scss +3 -3
- package/scss/filter/_layout.scss +0 -4
- package/scss/floating-label/_layout.scss +0 -3
- package/scss/floating-label/_theme.scss +0 -2
- package/scss/floating-label/_variables.scss +4 -4
- package/scss/forms/_layout.scss +8 -33
- package/scss/gantt/_layout.scss +3 -3
- package/scss/grid/_layout.scss +20 -65
- package/scss/grid/_theme.scss +2 -2
- package/scss/grid/_variables.scss +0 -2
- package/scss/index.scss +5 -0
- package/scss/input/_layout.scss +101 -89
- package/scss/input/_theme.scss +74 -16
- package/scss/input/_variables.scss +66 -67
- package/scss/map/_layout.scss +0 -21
- package/scss/map/_theme.scss +5 -5
- package/scss/map/_variables.scss +1 -1
- package/scss/maskedtextbox/_layout.scss +2 -46
- package/scss/maskedtextbox/_theme.scss +2 -20
- package/scss/multiselect/_layout.scss +15 -15
- package/scss/multiselect/_variables.scss +16 -16
- package/scss/numerictextbox/_layout.scss +2 -93
- package/scss/numerictextbox/_theme.scss +2 -95
- package/scss/numerictextbox/_variables.scss +1 -32
- package/scss/pager/_layout.scss +7 -12
- package/scss/pager/_variables.scss +1 -1
- package/scss/pdf-viewer/_layout.scss +0 -16
- package/scss/pdf-viewer/_variables.scss +1 -1
- package/scss/pivotgrid/_layout.scss +7 -7
- package/scss/pivotgrid/_theme.scss +13 -13
- package/scss/popup/_layout.scss +0 -30
- package/scss/popup/_theme.scss +4 -4
- package/scss/popup/_variables.scss +1 -1
- package/scss/radio/_layout.scss +78 -63
- package/scss/radio/_theme.scss +23 -23
- package/scss/radio/_variables.scss +154 -51
- package/scss/scheduler/_layout.scss +9 -228
- package/scss/scheduler/_theme.scss +5 -86
- package/scss/scrollview/_variables.scss +4 -4
- package/scss/searchbox/_layout.scss +1 -19
- package/scss/searchbox/_theme.scss +1 -46
- package/scss/searchbox/_variables.scss +0 -20
- package/scss/slider/_layout.scss +0 -19
- package/scss/slider/_theme.scss +0 -4
- package/scss/slider/_variables.scss +10 -10
- package/scss/spreadsheet/_layout.scss +4 -36
- package/scss/spreadsheet/_theme.scss +13 -13
- package/scss/switch/_index.scss +0 -2
- package/scss/switch/_layout.scss +95 -70
- package/scss/switch/_theme.scss +91 -93
- package/scss/switch/_variables.scss +193 -83
- package/scss/taskboard/_layout.scss +0 -4
- package/scss/taskboard/_variables.scss +1 -1
- package/scss/textarea/_layout.scss +1 -91
- package/scss/textarea/_theme.scss +1 -66
- package/scss/textarea/_variables.scss +0 -53
- package/scss/textbox/_layout.scss +1 -73
- package/scss/textbox/_theme.scss +1 -70
- package/scss/textbox/_variables.scss +1 -2
- package/scss/timeline/_variables.scss +7 -7
- package/scss/timepicker/_index.scss +15 -0
- package/scss/timepicker/_layout.scss +6 -0
- package/scss/timepicker/_theme.scss +6 -0
- package/scss/timepicker/_variables.scss +1 -0
- package/scss/toolbar/_layout.scss +2 -2
- package/scss/toolbar/_variables.scss +1 -1
- package/scss/treeview/_variables.scss +1 -1
- 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
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
80
|
-
|
|
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
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
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
|
-
|
|
253
|
-
|
|
254
|
-
|
|
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-
|
|
15
|
+
.k-checkbox.k-hover {
|
|
16
16
|
@include fill(
|
|
17
|
-
$checkbox-
|
|
18
|
-
$checkbox-
|
|
19
|
-
$checkbox-
|
|
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-
|
|
27
|
-
@include fill( $border: $checkbox-
|
|
28
|
-
@include box-shadow( $checkbox-
|
|
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-
|
|
55
|
-
@include fill( $border: $checkbox-
|
|
56
|
-
@include box-shadow( $checkbox-
|
|
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
|
|
84
|
-
.k-checkbox.k-
|
|
85
|
-
|
|
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
|
|
90
|
-
.k-checkbox.k-
|
|
91
|
-
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
$checkbox-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
$checkbox-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
$checkbox-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
$checkbox-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
$checkbox-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
$checkbox-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
$checkbox-
|
|
38
|
-
|
|
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
|
-
|
|
45
|
-
|
|
46
|
-
$checkbox-
|
|
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
|
-
|
|
50
|
-
|
|
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
|
-
|
|
53
|
-
|
|
54
|
-
$checkbox-
|
|
55
|
-
|
|
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
|
-
|
|
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
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
$checkbox-list-
|
|
67
|
-
|
|
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
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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;
|