@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.
- package/README.md +5 -8
- package/dist/all.css +2134 -1548
- package/dist/all.scss +2410 -2314
- package/modules/@progress/kendo-theme-default/package.json +2 -2
- package/modules/@progress/kendo-theme-default/scss/adaptive/_layout.scss +40 -86
- package/modules/@progress/kendo-theme-default/scss/adaptive/_theme.scss +0 -9
- package/modules/@progress/kendo-theme-default/scss/appbar/_layout.scss +13 -0
- package/modules/@progress/kendo-theme-default/scss/appbar/_variables.scss +1 -1
- package/modules/@progress/kendo-theme-default/scss/autocomplete/_layout.scss +4 -4
- package/modules/@progress/kendo-theme-default/scss/autocomplete/_theme.scss +20 -39
- package/modules/@progress/kendo-theme-default/scss/autocomplete/_variables.scss +0 -19
- package/modules/@progress/kendo-theme-default/scss/avatar/_variables.scss +11 -1
- package/modules/@progress/kendo-theme-default/scss/button/_layout.scss +77 -101
- package/modules/@progress/kendo-theme-default/scss/button/_theme.scss +177 -112
- package/modules/@progress/kendo-theme-default/scss/button/_variables.scss +77 -11
- package/modules/@progress/kendo-theme-default/scss/calendar/_layout.scss +2 -14
- package/modules/@progress/kendo-theme-default/scss/card/_variables.scss +4 -4
- package/modules/@progress/kendo-theme-default/scss/chat/_layout.scss +9 -9
- package/modules/@progress/kendo-theme-default/scss/chat/_theme.scss +0 -21
- package/modules/@progress/kendo-theme-default/scss/chat/_variables.scss +0 -7
- package/modules/@progress/kendo-theme-default/scss/checkbox/_index.scss +1 -0
- package/modules/@progress/kendo-theme-default/scss/checkbox/_layout.scss +80 -146
- package/modules/@progress/kendo-theme-default/scss/checkbox/_theme.scss +6 -2
- package/modules/@progress/kendo-theme-default/scss/checkbox/_variables.scss +87 -18
- package/modules/@progress/kendo-theme-default/scss/color-preview/_layout.scss +49 -7
- package/modules/@progress/kendo-theme-default/scss/color-preview/_theme.scss +0 -14
- package/modules/@progress/kendo-theme-default/scss/coloreditor/_layout.scss +5 -1
- package/modules/@progress/kendo-theme-default/scss/coloreditor/_variables.scss +3 -3
- package/modules/@progress/kendo-theme-default/scss/colorgradient/_layout.scss +0 -4
- package/modules/@progress/kendo-theme-default/scss/colorpicker/_layout.scss +6 -0
- package/modules/@progress/kendo-theme-default/scss/combobox/_layout.scss +22 -29
- package/modules/@progress/kendo-theme-default/scss/combobox/_theme.scss +59 -99
- package/modules/@progress/kendo-theme-default/scss/combobox/_variables.scss +1 -32
- package/modules/@progress/kendo-theme-default/scss/common/_loading.scss +1 -13
- package/modules/@progress/kendo-theme-default/scss/daterangepicker/_index.scss +10 -0
- package/modules/@progress/kendo-theme-default/scss/daterangepicker/_layout.scss +27 -0
- package/modules/@progress/kendo-theme-default/scss/daterangepicker/_theme.scss +3 -0
- package/modules/@progress/kendo-theme-default/scss/daterangepicker/_variables.scss +1 -0
- package/modules/@progress/kendo-theme-default/scss/dropdowngrid/_layout.scss +1 -0
- package/modules/@progress/kendo-theme-default/scss/dropdownlist/_layout.scss +37 -55
- package/modules/@progress/kendo-theme-default/scss/dropdownlist/_theme.scss +33 -75
- package/modules/@progress/kendo-theme-default/scss/editor/_layout.scss +7 -22
- package/modules/@progress/kendo-theme-default/scss/forms/_layout.scss +6 -12
- package/modules/@progress/kendo-theme-default/scss/gantt/_layout.scss +1 -1
- package/modules/@progress/kendo-theme-default/scss/grid/_layout.scss +128 -97
- package/modules/@progress/kendo-theme-default/scss/grid/_theme.scss +0 -6
- package/modules/@progress/kendo-theme-default/scss/grid/_variables.scss +7 -9
- package/modules/@progress/kendo-theme-default/scss/imageeditor/_layout.scss +4 -8
- package/modules/@progress/kendo-theme-default/scss/imageeditor/_variables.scss +1 -0
- package/modules/@progress/kendo-theme-default/scss/index.scss +1 -0
- package/modules/@progress/kendo-theme-default/scss/input/_layout.scss +1 -1
- package/modules/@progress/kendo-theme-default/scss/input/_variables.scss +5 -5
- package/modules/@progress/kendo-theme-default/scss/list/_index.scss +1 -0
- package/modules/@progress/kendo-theme-default/scss/list/_layout.scss +16 -51
- package/modules/@progress/kendo-theme-default/scss/list/_theme.scss +4 -3
- package/modules/@progress/kendo-theme-default/scss/list/_variables.scss +66 -6
- package/modules/@progress/kendo-theme-default/scss/listbox/_layout.scss +9 -0
- package/modules/@progress/kendo-theme-default/scss/listbox/_variables.scss +1 -1
- package/modules/@progress/kendo-theme-default/scss/listview/_layout.scss +2 -9
- package/modules/@progress/kendo-theme-default/scss/map/_layout.scss +7 -5
- package/modules/@progress/kendo-theme-default/scss/maskedtextbox/_layout.scss +17 -31
- package/modules/@progress/kendo-theme-default/scss/maskedtextbox/_theme.scss +44 -14
- package/modules/@progress/kendo-theme-default/scss/mediaplayer/_layout.scss +13 -1
- package/modules/@progress/kendo-theme-default/scss/menu/_layout.scss +48 -5
- package/modules/@progress/kendo-theme-default/scss/menu/_theme.scss +6 -2
- package/modules/@progress/kendo-theme-default/scss/menu/_variables.scss +1 -1
- package/modules/@progress/kendo-theme-default/scss/multiselect/_layout.scss +2 -2
- package/modules/@progress/kendo-theme-default/scss/numerictextbox/_layout.scss +9 -27
- package/modules/@progress/kendo-theme-default/scss/numerictextbox/_theme.scss +64 -84
- package/modules/@progress/kendo-theme-default/scss/numerictextbox/_variables.scss +0 -27
- package/modules/@progress/kendo-theme-default/scss/orgchart/_variables.scss +2 -2
- package/modules/@progress/kendo-theme-default/scss/pager/_variables.scss +1 -1
- package/modules/@progress/kendo-theme-default/scss/pdf-viewer/_layout.scss +20 -29
- package/modules/@progress/kendo-theme-default/scss/pdf-viewer/_variables.scss +2 -5
- package/modules/@progress/kendo-theme-default/scss/radio/_index.scss +1 -0
- package/modules/@progress/kendo-theme-default/scss/radio/_layout.scss +90 -136
- package/modules/@progress/kendo-theme-default/scss/radio/_theme.scss +2 -2
- package/modules/@progress/kendo-theme-default/scss/radio/_variables.scss +88 -26
- package/modules/@progress/kendo-theme-default/scss/scheduler/_layout.scss +26 -13
- package/modules/@progress/kendo-theme-default/scss/searchbox/_layout.scss +22 -8
- package/modules/@progress/kendo-theme-default/scss/searchbox/_theme.scss +16 -25
- package/modules/@progress/kendo-theme-default/scss/searchbox/_variables.scss +0 -20
- package/modules/@progress/kendo-theme-default/scss/skeleton/_layout.scss +1 -1
- package/modules/@progress/kendo-theme-default/scss/slider/_layout.scss +69 -146
- package/modules/@progress/kendo-theme-default/scss/slider/_theme.scss +0 -6
- package/modules/@progress/kendo-theme-default/scss/spreadsheet/_layout.scss +32 -23
- package/modules/@progress/kendo-theme-default/scss/table/_layout.scss +29 -6
- package/modules/@progress/kendo-theme-default/scss/table/_theme.scss +3 -2
- package/modules/@progress/kendo-theme-default/scss/table/_variables.scss +3 -3
- package/modules/@progress/kendo-theme-default/scss/tabstrip/_layout.scss +5 -1
- package/modules/@progress/kendo-theme-default/scss/textarea/_layout.scss +1 -1
- package/modules/@progress/kendo-theme-default/scss/timeselector/_layout.scss +3 -2
- package/modules/@progress/kendo-theme-default/scss/toolbar/_layout.scss +37 -2
- package/modules/@progress/kendo-theme-default/scss/toolbar/_theme.scss +35 -7
- package/modules/@progress/kendo-theme-default/scss/treelist/_layout.scss +4 -0
- package/modules/@progress/kendo-theme-default/scss/treeview/_layout.scss +130 -116
- package/modules/@progress/kendo-theme-default/scss/treeview/_theme.scss +36 -25
- package/modules/@progress/kendo-theme-default/scss/treeview/_variables.scss +67 -13
- package/modules/@progress/kendo-theme-default/scss/typography/_variables.scss +3 -3
- package/modules/@progress/kendo-theme-default/scss/window/_layout.scss +2 -2
- package/modules/@progress/kendo-theme-default/scss/window/_variables.scss +1 -1
- package/package.json +3 -3
- package/scss/appbar/_variables.scss +1 -1
- package/scss/autocomplete/_variables.scss +0 -19
- package/scss/avatar/_variables.scss +13 -2
- package/scss/button/_variables.scss +84 -18
- package/scss/card/_variables.scss +4 -4
- package/scss/chat/_variables.scss +0 -7
- package/scss/checkbox/_index.scss +1 -0
- package/scss/checkbox/_variables.scss +88 -19
- package/scss/coloreditor/_variables.scss +3 -3
- package/scss/combobox/_variables.scss +1 -32
- package/scss/daterangepicker/_index.scss +10 -0
- package/scss/daterangepicker/_layout.scss +1 -0
- package/scss/daterangepicker/_theme.scss +1 -0
- package/scss/daterangepicker/_variables.scss +1 -0
- package/scss/fab/index.md +0 -0
- package/scss/grid/_variables.scss +7 -9
- package/scss/imageeditor/_variables.scss +1 -0
- package/scss/index.scss +1 -0
- package/scss/input/_variables.scss +5 -5
- package/scss/list/_index.scss +1 -0
- package/scss/list/_variables.scss +66 -6
- package/scss/listbox/_variables.scss +1 -1
- package/scss/menu/_variables.scss +1 -1
- package/scss/numerictextbox/_variables.scss +0 -27
- package/scss/orgchart/_variables.scss +2 -2
- package/scss/pager/_variables.scss +1 -1
- package/scss/pdf-viewer/_variables.scss +2 -5
- package/scss/radio/_index.scss +1 -0
- package/scss/radio/_variables.scss +86 -27
- package/scss/searchbox/_variables.scss +0 -20
- package/scss/table/_variables.scss +3 -3
- package/scss/treeview/_variables.scss +70 -16
- 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-
|
|
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:
|
|
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-
|
|
48
|
+
@if $checkbox-indicator-type == "image" {
|
|
59
49
|
background-image: $checkbox-checked-image;
|
|
60
50
|
}
|
|
61
51
|
|
|
62
|
-
@if $checkbox-
|
|
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:
|
|
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-
|
|
64
|
+
@if $checkbox-indicator-type == "image" {
|
|
81
65
|
background-image: $checkbox-indeterminate-image;
|
|
82
66
|
}
|
|
83
67
|
|
|
84
|
-
@if $checkbox-
|
|
68
|
+
@if $checkbox-indicator-type == "glyph" {
|
|
85
69
|
&::before {
|
|
86
70
|
content: $checkbox-indeterminate-glyph;
|
|
87
|
-
transform:
|
|
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-
|
|
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:
|
|
184
|
-
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
|
-
|
|
193
|
-
|
|
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
|
-
//
|
|
205
|
-
.k-
|
|
206
|
-
|
|
207
|
-
|
|
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:
|
|
242
|
-
top:
|
|
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
|
-
|
|
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-
|
|
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
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
$checkbox-
|
|
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
|
-
|
|
64
|
-
|
|
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
|
-
|
|
73
|
-
|
|
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
|
-
|
|
15
|
-
|
|
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
|
-
|
|
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: ( $
|
|
22
|
-
$coloreditor-color-preview-width:
|
|
23
|
-
$coloreditor-color-preview-height:
|
|
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;
|
|
@@ -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;
|