@progress/kendo-theme-core 13.0.0-dev.1 → 13.0.0-dev.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 +1 -1
- package/dist/meta/sassdoc-data.json +514 -400
- package/dist/meta/sassdoc-raw-data.json +246 -196
- package/dist/meta/variables.json +10 -8
- package/package.json +2 -2
- package/scss/components/bubble/_layout.scss +1 -2
- package/scss/components/chat/_layout.scss +88 -132
- package/scss/components/chat/_theme.scss +25 -16
- package/scss/components/chat/_variables.scss +12 -18
- package/scss/components/dropdowntree/_layout.scss +7 -7
- package/scss/components/dropdowntree/_variables.scss +3 -0
- package/scss/components/file-box/_layout.scss +123 -0
- package/scss/components/file-box/_theme.scss +22 -0
- package/scss/components/file-box/_variables.scss +19 -0
- package/scss/components/icons/_theme.scss +7 -1
- package/scss/components/icons/_variables.scss +2 -0
- package/scss/components/list/_layout.scss +64 -4
- package/scss/components/list/_theme.scss +8 -0
- package/scss/components/list/_variables.scss +11 -0
- package/scss/components/prompt-box/_layout.scss +63 -0
- package/scss/components/prompt-box/_theme.scss +7 -0
- package/scss/components/prompt-box/_variables.scss +11 -0
- package/scss/components/segmented-control/_layout.scss +85 -0
- package/scss/components/segmented-control/_theme.scss +38 -0
- package/scss/components/segmented-control/_variables.scss +73 -0
- package/scss/components/smart-box/_layout.scss +85 -0
- package/scss/components/smart-box/_theme.scss +5 -0
- package/scss/components/smart-box/_variables.scss +40 -0
- package/scss/components/suggestion/_layout.scss +36 -11
- package/scss/components/suggestion/_theme.scss +23 -0
- package/scss/components/suggestion/_variables.scss +3 -0
- package/scss/components/switch/_layout.scss +2 -2
- package/scss/components/tabstrip/_layout.scss +30 -0
- package/scss/components/tabstrip/_theme.scss +8 -0
- package/scss/components/toolbar/_layout.scss +3 -0
- package/scss/components/toolbar/_variables.scss +1 -0
- package/scss/components/treeview/_layout.scss +14 -10
- package/scss/components/treeview/_theme.scss +7 -6
- package/scss/components/treeview/_variables.scss +4 -0
- package/scss/elevation/index.scss +1 -2
- package/scss/motion/index.scss +1 -0
- package/scss/typography/index.scss +2 -1
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
@use "./_variables.scss" as *;
|
|
2
|
+
@use "../../mixins/index.scss" as *;
|
|
3
|
+
@use "../../motion/index.scss" as *;
|
|
4
|
+
@use "../../spacing/index.scss" as *;
|
|
5
|
+
@use "../../z-index/index.scss" as *;
|
|
6
|
+
@use "../button/_variables.scss" as *;
|
|
7
|
+
|
|
8
|
+
@mixin kendo-file-box--layout-base() {
|
|
9
|
+
|
|
10
|
+
.k-file-box-wrapper {
|
|
11
|
+
position: relative;
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-flow: row nowrap;
|
|
14
|
+
padding-inline: $kendo-file-box-padding-x;
|
|
15
|
+
padding-block: $kendo-file-box-padding-y;
|
|
16
|
+
margin: 0;
|
|
17
|
+
gap: $kendo-file-box-gap;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
min-width: 0;
|
|
20
|
+
width: 100%;
|
|
21
|
+
max-width: 100%;
|
|
22
|
+
overflow-x: auto;
|
|
23
|
+
scrollbar-width: none;
|
|
24
|
+
|
|
25
|
+
&.k-files-wrap {
|
|
26
|
+
flex-flow: row wrap;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.k-files-vertical {
|
|
30
|
+
flex-flow: column wrap;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.k-files-scroll {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-flow: row nowrap;
|
|
37
|
+
flex: 1;
|
|
38
|
+
overflow-x: auto;
|
|
39
|
+
scrollbar-width: none;
|
|
40
|
+
white-space: nowrap;
|
|
41
|
+
gap: $kendo-file-box-gap;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.k-file-box-wrapper-scrollable-end::before,
|
|
45
|
+
.k-file-box-wrapper-scrollable-start::after{
|
|
46
|
+
content: '';
|
|
47
|
+
aspect-ratio: .3;
|
|
48
|
+
position: absolute;
|
|
49
|
+
z-index: k-z-index("base", 3);
|
|
50
|
+
height: calc(100% - #{$kendo-file-box-padding-y} * 2 );
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.k-file-box-wrapper-scrollable-end::before {
|
|
54
|
+
left: 0;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.k-file-box-wrapper-scrollable-start::after {
|
|
58
|
+
right: 0;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.k-file-box {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
justify-content: space-between;
|
|
65
|
+
overflow: hidden;
|
|
66
|
+
box-sizing: border-box;
|
|
67
|
+
gap: $kendo-file-box-gap;
|
|
68
|
+
border-width: $kendo-file-box-border-width;
|
|
69
|
+
border-style: $kendo-file-box-border-style;
|
|
70
|
+
padding-inline: $kendo-file-box-padding-x;
|
|
71
|
+
padding-block: $kendo-file-box-padding-y;
|
|
72
|
+
border-radius: $kendo-file-box-border-radius;
|
|
73
|
+
width: 100%;
|
|
74
|
+
min-width: $kendo-file-box-min-width;
|
|
75
|
+
max-width: $kendo-file-box-max-width;
|
|
76
|
+
flex-shrink: 0;
|
|
77
|
+
|
|
78
|
+
>.k-icon {
|
|
79
|
+
flex-shrink: 0;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.k-file-info {
|
|
83
|
+
display: flex;
|
|
84
|
+
flex-direction: column;
|
|
85
|
+
align-items: flex-start;
|
|
86
|
+
text-align: start;
|
|
87
|
+
flex: 1;
|
|
88
|
+
overflow: hidden;
|
|
89
|
+
min-width: 0;
|
|
90
|
+
max-width: 100%;
|
|
91
|
+
text-overflow: ellipsis;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.k-file-box-name,
|
|
95
|
+
.k-file-name {
|
|
96
|
+
font-weight: bold;
|
|
97
|
+
font-size: $kendo-file-box-name-font-size;
|
|
98
|
+
line-height: $kendo-file-box-name-line-height;
|
|
99
|
+
width: 100%;
|
|
100
|
+
white-space: nowrap;
|
|
101
|
+
overflow: hidden;
|
|
102
|
+
text-overflow: ellipsis;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.k-file-box-size,
|
|
106
|
+
.k-file-box-status,
|
|
107
|
+
.k-file-size,
|
|
108
|
+
.k-file-status {
|
|
109
|
+
font-size: $kendo-file-box-size-font-size;
|
|
110
|
+
line-height: $kendo-file-box-size-line-height;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&.k-file-deleted {
|
|
114
|
+
min-height: calc( #{$kendo-button-md-calc-size} + 2 * #{$kendo-file-box-padding-y} + 2 * #{$kendo-file-box-border-width});
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
@mixin kendo-file-box--layout() {
|
|
122
|
+
@include kendo-file-box--layout-base();
|
|
123
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
@use "./_variables.scss" as *;
|
|
2
|
+
@use "../../mixins/index.scss" as *;
|
|
3
|
+
|
|
4
|
+
@use "../../spacing/index.scss" as *;
|
|
5
|
+
@use "../../color-system/_functions.scss" as *;
|
|
6
|
+
@use "../../_variables.scss" as *;
|
|
7
|
+
|
|
8
|
+
@mixin kendo-file-box--theme-base() {
|
|
9
|
+
.k-file-box {
|
|
10
|
+
background-color: $kendo-file-box-bg;
|
|
11
|
+
color: $kendo-file-box-text;
|
|
12
|
+
border-color: $kendo-file-box-border;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.k-file-box-wrapper-scrollable-start::after {
|
|
16
|
+
background: linear-gradient(90deg, $kendo-file-box-wrapper-scroll-gradient);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.k-file-box-wrapper-scrollable-end::before {
|
|
20
|
+
background: linear-gradient(270deg, $kendo-file-box-wrapper-scroll-gradient);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
$kendo-file-box-padding-x: null !default;
|
|
2
|
+
$kendo-file-box-padding-y: null !default;
|
|
3
|
+
$kendo-file-box-gap: null !default;
|
|
4
|
+
$kendo-file-box-min-width: null !default;
|
|
5
|
+
$kendo-file-box-max-width: null !default;
|
|
6
|
+
$kendo-file-box-border-width: null !default;
|
|
7
|
+
$kendo-file-box-border-style: null !default;
|
|
8
|
+
$kendo-file-box-border-radius: null !default;
|
|
9
|
+
$kendo-file-box-name-font-size: null !default;
|
|
10
|
+
$kendo-file-box-name-line-height: null !default;
|
|
11
|
+
$kendo-file-box-size-font-size: null !default;
|
|
12
|
+
$kendo-file-box-size-line-height: null !default;
|
|
13
|
+
|
|
14
|
+
$kendo-file-box-bg: null !default;
|
|
15
|
+
$kendo-file-box-text: null !default;
|
|
16
|
+
$kendo-file-box-border: null !default;
|
|
17
|
+
|
|
18
|
+
$kendo-file-box-wrapper-scroll-gradient: null !default;
|
|
19
|
+
|
|
@@ -15,13 +15,18 @@
|
|
|
15
15
|
> .k-list {
|
|
16
16
|
flex: 1;
|
|
17
17
|
height: 100%;
|
|
18
|
+
border-radius: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.k-popup {
|
|
22
|
+
padding-inline: $kendo-list-container-padding-inline;
|
|
23
|
+
padding-block: $kendo-list-container-padding-block;
|
|
18
24
|
}
|
|
19
25
|
}
|
|
20
26
|
|
|
21
27
|
// List
|
|
22
28
|
.k-list {
|
|
23
29
|
margin: 0;
|
|
24
|
-
padding: 0;
|
|
25
30
|
box-sizing: border-box;
|
|
26
31
|
border-radius: inherit;
|
|
27
32
|
font-family: $kendo-list-font-family;
|
|
@@ -90,6 +95,20 @@
|
|
|
90
95
|
line-height: $_item-line-height;
|
|
91
96
|
}
|
|
92
97
|
|
|
98
|
+
&:has(.k-list-item-icon) .k-list-item,
|
|
99
|
+
&:has(.k-list-item-icon) .k-list-group-item {
|
|
100
|
+
padding-inline-start: calc( #{$kendo-icon-size} + $_item-padding-x + #{$kendo-list-item-gap} );
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.k-list-item:has(.k-list-item-icon) .k-list-item-description {
|
|
104
|
+
padding-inline-start: calc( #{$kendo-icon-size} + #{$kendo-list-item-gap});
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.k-list-item:has(.k-list-item-icon),
|
|
108
|
+
.k-list-group-item:has(.k-list-item-icon) {
|
|
109
|
+
padding-inline: $_item-padding-x;
|
|
110
|
+
}
|
|
111
|
+
|
|
93
112
|
.k-list-group-item {
|
|
94
113
|
padding-block: $_group-item-padding-y;
|
|
95
114
|
padding-inline: $_group-item-padding-x;
|
|
@@ -155,6 +174,13 @@
|
|
|
155
174
|
border-color: inherit;
|
|
156
175
|
height: auto;
|
|
157
176
|
list-style: none;
|
|
177
|
+
display: flex;
|
|
178
|
+
flex-direction: column;
|
|
179
|
+
gap: $kendo-list-item-spacing;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.k-list-ul + .k-list-ul {
|
|
183
|
+
margin-block-start: $kendo-list-item-spacing;
|
|
158
184
|
}
|
|
159
185
|
|
|
160
186
|
|
|
@@ -172,7 +198,7 @@
|
|
|
172
198
|
flex-flow: row nowrap;
|
|
173
199
|
align-items: center;
|
|
174
200
|
align-content: center;
|
|
175
|
-
gap: $kendo-
|
|
201
|
+
column-gap: $kendo-list-item-gap;
|
|
176
202
|
position: relative;
|
|
177
203
|
|
|
178
204
|
transition: color k-transition(snappy), background-color k-transition(snappy), outline-color k-transition(snappy), box-shadow k-transition(snappy);
|
|
@@ -206,6 +232,41 @@
|
|
|
206
232
|
position: sticky;
|
|
207
233
|
}
|
|
208
234
|
|
|
235
|
+
.k-list-item {
|
|
236
|
+
flex-wrap: wrap;
|
|
237
|
+
align-items: center;
|
|
238
|
+
border-radius: $kendo-list-item-border-radius;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.k-list-item-text {
|
|
242
|
+
flex: 1;
|
|
243
|
+
text-overflow: ellipsis;
|
|
244
|
+
min-width: 0;
|
|
245
|
+
overflow: hidden;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.k-list-item-icon-wrapper,
|
|
249
|
+
.k-list-item-actions,
|
|
250
|
+
.k-list-item-text {
|
|
251
|
+
align-self: flex-start;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
.k-list-item-actions {
|
|
255
|
+
display: flex;
|
|
256
|
+
align-items: center;
|
|
257
|
+
gap: $kendo-list-item-gap;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.k-list-item:has(.k-list-item-icon) .k-list-item-text::before,
|
|
261
|
+
.k-list-item:has(.k-list-item-actions) .k-list-item-text::before {
|
|
262
|
+
content: none;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.k-list .k-list-item-description {
|
|
266
|
+
flex-basis: 100%;
|
|
267
|
+
font-size: $kendo-list-item-description-font-size;
|
|
268
|
+
line-height: $kendo-list-item-description-line-height;
|
|
269
|
+
}
|
|
209
270
|
|
|
210
271
|
// List group item
|
|
211
272
|
.k-list-group-item {
|
|
@@ -222,7 +283,7 @@
|
|
|
222
283
|
flex-flow: row nowrap;
|
|
223
284
|
align-items: center;
|
|
224
285
|
align-content: center;
|
|
225
|
-
gap: $kendo-
|
|
286
|
+
gap: $kendo-list-item-gap;
|
|
226
287
|
position: relative;
|
|
227
288
|
}
|
|
228
289
|
|
|
@@ -268,5 +329,4 @@
|
|
|
268
329
|
box-sizing: border-box;
|
|
269
330
|
flex: none;
|
|
270
331
|
}
|
|
271
|
-
|
|
272
332
|
}
|
|
@@ -12,6 +12,10 @@
|
|
|
12
12
|
$kendo-list-bg,
|
|
13
13
|
$kendo-list-border
|
|
14
14
|
);
|
|
15
|
+
|
|
16
|
+
.k-list-ul:first-of-type .k-list-group-item {
|
|
17
|
+
box-shadow: none;
|
|
18
|
+
}
|
|
15
19
|
}
|
|
16
20
|
|
|
17
21
|
|
|
@@ -94,4 +98,8 @@
|
|
|
94
98
|
);
|
|
95
99
|
}
|
|
96
100
|
|
|
101
|
+
.k-list .k-list-item-description {
|
|
102
|
+
color: $kendo-list-item-description-text;
|
|
103
|
+
}
|
|
104
|
+
|
|
97
105
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
// List
|
|
2
|
+
$kendo-list-container-padding-block: null !default;
|
|
3
|
+
$kendo-list-container-padding-inline: null !default;
|
|
2
4
|
|
|
3
5
|
$kendo-list-default-size: null !default;
|
|
4
6
|
|
|
@@ -72,6 +74,9 @@ $kendo-list-sm-item-font-size: null !default;
|
|
|
72
74
|
$kendo-list-md-item-font-size: null !default;
|
|
73
75
|
$kendo-list-lg-item-font-size: null !default;
|
|
74
76
|
|
|
77
|
+
$kendo-list-item-gap: null !default;
|
|
78
|
+
$kendo-list-item-spacing: null !default;
|
|
79
|
+
|
|
75
80
|
$kendo-list-item-line-height: null !default;
|
|
76
81
|
$kendo-list-sm-item-line-height: null !default;
|
|
77
82
|
$kendo-list-md-item-line-height: null !default;
|
|
@@ -185,6 +190,7 @@ $kendo-list-header-shadow: null !default;
|
|
|
185
190
|
|
|
186
191
|
$kendo-list-item-bg: null !default;
|
|
187
192
|
$kendo-list-item-text: null !default;
|
|
193
|
+
$kendo-list-item-border-radius: null !default;
|
|
188
194
|
|
|
189
195
|
$kendo-list-item-hover-bg: null !default;
|
|
190
196
|
$kendo-list-item-hover-text: null !default;
|
|
@@ -205,3 +211,8 @@ $kendo-list-group-item-border: null !default;
|
|
|
205
211
|
$kendo-list-group-item-shadow: null !default;
|
|
206
212
|
|
|
207
213
|
$kendo-list-option-label-text: null !default;
|
|
214
|
+
|
|
215
|
+
$kendo-list-item-description-font-size: null !default;
|
|
216
|
+
$kendo-list-item-description-line-height: null !default;
|
|
217
|
+
$kendo-list-item-description-text: null !default;
|
|
218
|
+
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
@use "./variables.scss" as *;
|
|
2
|
+
|
|
3
|
+
@mixin kendo-prompt-box--layout-base() {
|
|
4
|
+
|
|
5
|
+
.k-prompt-box {
|
|
6
|
+
border-radius: $kendo-prompt-box-border-radius;
|
|
7
|
+
flex-flow: column nowrap;
|
|
8
|
+
|
|
9
|
+
.k-input-inner {
|
|
10
|
+
padding: $kendo-prompt-box-input-inner-padding;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.k-prompt-box-header {
|
|
15
|
+
padding: $kendo-prompt-box-header-padding;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.k-prompt-box-affix {
|
|
19
|
+
padding: $kendo-prompt-box-affix-padding;
|
|
20
|
+
border-color: inherit;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
flex: none;
|
|
24
|
+
gap: $kendo-prompt-box-affix-spacing;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.k-prompt-box-textarea {
|
|
28
|
+
resize: none;
|
|
29
|
+
white-space: nowrap;
|
|
30
|
+
flex: 1 1 auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.k-prompt-box-textarea + .k-prompt-box-affix {
|
|
34
|
+
justify-content: flex-end;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.k-prompt-box-content {
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-flow: row nowrap;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.k-prompt-box-singleline {
|
|
43
|
+
.k-prompt-box-affix:has(+.k-input-inner) {
|
|
44
|
+
padding-inline-end: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.k-input-inner + .k-prompt-box-affix {
|
|
48
|
+
padding-inline-start: 0;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.k-prompt-box-multiline {
|
|
53
|
+
.k-prompt-box-content {
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.k-prompt-box-textarea {
|
|
58
|
+
white-space: normal;
|
|
59
|
+
overflow: auto;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Prompt box
|
|
2
|
+
|
|
3
|
+
$kendo-prompt-box-border-radius: null !default;
|
|
4
|
+
|
|
5
|
+
$kendo-prompt-box-box-shadow: null !default;
|
|
6
|
+
|
|
7
|
+
$kendo-prompt-box-header-padding: null !default;
|
|
8
|
+
$kendo-prompt-box-input-inner-padding: null !default;
|
|
9
|
+
$kendo-prompt-box-affix-padding: null !default;
|
|
10
|
+
|
|
11
|
+
$kendo-prompt-box-affix-spacing: null !default;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
@use "./variables.scss" as *;
|
|
3
|
+
@use "../../functions/index.scss" as *;
|
|
4
|
+
@use "../../motion/index.scss" as *;
|
|
5
|
+
|
|
6
|
+
@mixin kendo-segmented-control--layout-base() {
|
|
7
|
+
|
|
8
|
+
.k-segmented-control {
|
|
9
|
+
position: relative;
|
|
10
|
+
display: inline-flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
flex-flow: row nowrap;
|
|
13
|
+
padding-inline: $kendo-segmented-control-padding-x;
|
|
14
|
+
padding-block: $kendo-segmented-control-padding-y;
|
|
15
|
+
border-radius: $kendo-segmented-control-border-radius;
|
|
16
|
+
font-family: $kendo-segmented-control-font-family;
|
|
17
|
+
overflow: auto;
|
|
18
|
+
scrollbar-width: none;
|
|
19
|
+
white-space: nowrap;
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
|
|
22
|
+
// Sizes
|
|
23
|
+
@each $size, $size-props in $kendo-segmented-control-sizes {
|
|
24
|
+
$_font-size: map.get( $size-props, font-size );
|
|
25
|
+
$_line-height: map.get( $size-props, line-height );
|
|
26
|
+
$_button-padding-inline: map.get( $size-props, button-padding-x );
|
|
27
|
+
$_button-padding-block: map.get( $size-props, button-padding-y );
|
|
28
|
+
$_button-gap: map.get( $size-props, button-gap );
|
|
29
|
+
|
|
30
|
+
#{k-when-default($kendo-segmented-control-default-size, $size)}
|
|
31
|
+
&.k-segmented-control-#{$size} {
|
|
32
|
+
font-size: $_font-size;
|
|
33
|
+
line-height: $_line-height;
|
|
34
|
+
|
|
35
|
+
.k-segmented-control-button {
|
|
36
|
+
padding-inline: $_button-padding-inline;
|
|
37
|
+
padding-block: $_button-padding-block;
|
|
38
|
+
gap: $_button-gap;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.k-segmented-control-stretched {
|
|
45
|
+
width: 100%;
|
|
46
|
+
|
|
47
|
+
.k-segmented-control-button {
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.k-segmented-control-thumb {
|
|
53
|
+
position: absolute;
|
|
54
|
+
height: calc( 100% - ( #{$kendo-segmented-control-padding-y} * 2));
|
|
55
|
+
border-radius: $kendo-segmented-control-thumb-border-radius;
|
|
56
|
+
pointer-events: none;
|
|
57
|
+
transition: all k-transition(settle);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.k-segmented-control-button {
|
|
61
|
+
position: relative;
|
|
62
|
+
display: flex;
|
|
63
|
+
flex: 1;
|
|
64
|
+
align-items: center;
|
|
65
|
+
justify-content: center;
|
|
66
|
+
border-width: $kendo-segmented-control-button-border-width;
|
|
67
|
+
border-radius: $kendo-segmented-control-button-border-radius;
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
font-size: inherit;
|
|
70
|
+
line-height: inherit;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.k-segmented-control-button-text {
|
|
74
|
+
white-space: nowrap;
|
|
75
|
+
text-overflow: ellipsis;
|
|
76
|
+
overflow: hidden;
|
|
77
|
+
min-width: 0
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
.k-segmented-control-button-icon {
|
|
82
|
+
flex-shrink: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@use "../../mixins/index.scss" as *;
|
|
2
|
+
@use "./variables.scss" as *;
|
|
3
|
+
|
|
4
|
+
@mixin kendo-segmented-control--theme-base() {
|
|
5
|
+
.k-segmented-control {
|
|
6
|
+
background-color: $kendo-segmented-control-bg;
|
|
7
|
+
color: $kendo-segmented-control-text;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.k-segmented-control-thumb {
|
|
11
|
+
background-color: $kendo-segmented-control-thumb-bg;
|
|
12
|
+
box-shadow: $kendo-segmented-control-thumb-shadow;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.k-segmented-control-button {
|
|
16
|
+
color: inherit;
|
|
17
|
+
background-color: transparent;
|
|
18
|
+
|
|
19
|
+
&:hover,
|
|
20
|
+
&.k-hover {
|
|
21
|
+
background-color: $kendo-segmented-control-button-hover-bg;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:focus,
|
|
25
|
+
&.k-focus {
|
|
26
|
+
@include focus-indicator( $kendo-segmented-control-button-focus-indicator, true, true );
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.k-selected {
|
|
30
|
+
color: $kendo-segmented-control-thumb-text;
|
|
31
|
+
|
|
32
|
+
&:hover,
|
|
33
|
+
&.k-hover {
|
|
34
|
+
background-color: transparent;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// Segmented control
|
|
2
|
+
|
|
3
|
+
$kendo-segmented-control-default-size: null !default;
|
|
4
|
+
|
|
5
|
+
$kendo-segmented-control-padding-x: null !default;
|
|
6
|
+
$kendo-segmented-control-padding-y: null !default;
|
|
7
|
+
$kendo-segmented-control-border-radius: null !default;
|
|
8
|
+
|
|
9
|
+
$kendo-segmented-control-bg: null !default;
|
|
10
|
+
$kendo-segmented-control-text: null !default;
|
|
11
|
+
|
|
12
|
+
$kendo-segmented-control-sm-font-size: null !default;
|
|
13
|
+
$kendo-segmented-control-md-font-size: null !default;
|
|
14
|
+
$kendo-segmented-control-lg-font-size: null !default;
|
|
15
|
+
|
|
16
|
+
$kendo-segmented-control-font-family: null !default;
|
|
17
|
+
|
|
18
|
+
$kendo-segmented-control-sm-line-height: null !default;
|
|
19
|
+
$kendo-segmented-control-md-line-height: null !default;
|
|
20
|
+
$kendo-segmented-control-lg-line-height: null !default;
|
|
21
|
+
|
|
22
|
+
$kendo-segmented-control-thumb-border-radius: null !default;
|
|
23
|
+
$kendo-segmented-control-thumb-shadow: null !default;
|
|
24
|
+
$kendo-segmented-control-thumb-bg: null !default;
|
|
25
|
+
$kendo-segmented-control-thumb-text: null !default;
|
|
26
|
+
|
|
27
|
+
$kendo-segmented-control-sm-button-padding-x: null !default;
|
|
28
|
+
$kendo-segmented-control-md-button-padding-x: null !default;
|
|
29
|
+
$kendo-segmented-control-lg-button-padding-x: null !default;
|
|
30
|
+
|
|
31
|
+
$kendo-segmented-control-sm-button-padding-y: null !default;
|
|
32
|
+
$kendo-segmented-control-md-button-padding-y: null !default;
|
|
33
|
+
$kendo-segmented-control-lg-button-padding-y: null !default;
|
|
34
|
+
|
|
35
|
+
$kendo-segmented-control-button-border-width: null !default;
|
|
36
|
+
$kendo-segmented-control-button-border-radius: null !default;
|
|
37
|
+
|
|
38
|
+
$kendo-segmented-control-sm-button-gap: null !default;
|
|
39
|
+
$kendo-segmented-control-md-button-gap: null !default;
|
|
40
|
+
$kendo-segmented-control-lg-button-gap: null !default;
|
|
41
|
+
|
|
42
|
+
$kendo-segmented-control-button-hover-bg: null !default;
|
|
43
|
+
$kendo-segmented-control-button-focus-indicator: null !default;
|
|
44
|
+
|
|
45
|
+
/// The map with the sizes of the Segmented Control.
|
|
46
|
+
/// @group segmented-control
|
|
47
|
+
$kendo-segmented-control-sizes: (
|
|
48
|
+
sm: (
|
|
49
|
+
font-size: $kendo-segmented-control-sm-font-size,
|
|
50
|
+
line-height: $kendo-segmented-control-sm-line-height,
|
|
51
|
+
button-padding-x: $kendo-segmented-control-sm-button-padding-x,
|
|
52
|
+
button-padding-y: $kendo-segmented-control-sm-button-padding-y,
|
|
53
|
+
button-gap: $kendo-segmented-control-sm-button-gap
|
|
54
|
+
),
|
|
55
|
+
md: (
|
|
56
|
+
font-size: $kendo-segmented-control-md-font-size,
|
|
57
|
+
line-height: $kendo-segmented-control-md-line-height,
|
|
58
|
+
button-padding-x: $kendo-segmented-control-md-button-padding-x,
|
|
59
|
+
button-padding-y: $kendo-segmented-control-md-button-padding-y,
|
|
60
|
+
button-gap: $kendo-segmented-control-md-button-gap
|
|
61
|
+
),
|
|
62
|
+
lg: (
|
|
63
|
+
font-size: $kendo-segmented-control-lg-font-size,
|
|
64
|
+
line-height: $kendo-segmented-control-lg-line-height,
|
|
65
|
+
button-padding-x: $kendo-segmented-control-lg-button-padding-x,
|
|
66
|
+
button-padding-y: $kendo-segmented-control-lg-button-padding-y,
|
|
67
|
+
button-gap: $kendo-segmented-control-lg-button-gap
|
|
68
|
+
)
|
|
69
|
+
) !default;
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|