@progress/kendo-theme-fluent 12.3.1-dev.9 → 13.0.0-dev.0
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/fluent-1-dark.css +1 -1
- package/dist/fluent-1.css +1 -1
- package/dist/fluent-main-dark.css +1 -1
- package/dist/fluent-main.css +1 -1
- package/dist/meta/sassdoc-data.json +39709 -35083
- package/dist/meta/sassdoc-raw-data.json +14965 -12673
- package/dist/meta/variables.json +896 -765
- package/lib/swatches/all.json +1 -1
- package/lib/swatches/fluent-1-dark.json +1 -1
- package/lib/swatches/fluent-1.json +1 -1
- package/lib/swatches/fluent-main-dark.json +1 -1
- package/lib/swatches/fluent-main.json +1 -1
- package/package.json +5 -5
- package/scss/appbar/_variables.scss +6 -16
- package/scss/avatar/_variables.scss +37 -23
- package/scss/badge/_theme.scss +25 -11
- package/scss/badge/_variables.scss +22 -43
- package/scss/bottom-navigation/_theme.scss +68 -53
- package/scss/bottom-navigation/_variables.scss +12 -18
- package/scss/breadcrumb/_variables.scss +6 -30
- package/scss/button/_layout.scss +165 -156
- package/scss/button/_theme.scss +183 -135
- package/scss/button/_variables.scss +28 -42
- package/scss/calendar/_layout.scss +12 -8
- package/scss/calendar/_variables.scss +8 -2
- package/scss/card/_variables.scss +7 -16
- package/scss/checkbox/_layout.scss +15 -11
- package/scss/checkbox/_variables.scss +13 -1
- package/scss/chip/_layout.scss +6 -7
- package/scss/chip/_theme.scss +94 -76
- package/scss/chip/_variables.scss +32 -43
- package/scss/coloreditor/_layout.scss +17 -13
- package/scss/coloreditor/_variables.scss +17 -48
- package/scss/colorgradient/_layout.scss +1 -1
- package/scss/colorgradient/_variables.scss +30 -60
- package/scss/colorpalette/_layout.scss +0 -12
- package/scss/colorpalette/_variables.scss +7 -19
- package/scss/column-menu/_layout.scss +16 -12
- package/scss/column-menu/_variables.scss +6 -24
- package/scss/datetimepicker/_variables.scss +6 -15
- package/scss/dialog/_variables.scss +7 -9
- package/scss/fab/_layout.scss +13 -10
- package/scss/fab/_theme.scss +11 -6
- package/scss/fab/_variables.scss +21 -17
- package/scss/forms/_layout.scss +8 -6
- package/scss/forms/_variables.scss +7 -16
- package/scss/grid/_layout.scss +15 -11
- package/scss/grid/_variables.scss +6 -42
- package/scss/icons/_variables.scss +6 -0
- package/scss/input/_layout.scss +113 -54
- package/scss/input/_theme.scss +97 -62
- package/scss/input/_variables.scss +81 -43
- package/scss/list/_variables.scss +6 -70
- package/scss/loader/_variables.scss +13 -17
- package/scss/menu/_variables.scss +6 -32
- package/scss/messagebox/_variables.scss +7 -17
- package/scss/notification/_functions.scss +2 -2
- package/scss/notification/_variables.scss +9 -15
- package/scss/otp/_variables.scss +1 -22
- package/scss/overlay/_theme.scss +0 -9
- package/scss/overlay/_variables.scss +9 -7
- package/scss/pager/_layout.scss +7 -2
- package/scss/pager/_variables.scss +7 -22
- package/scss/radio/_layout.scss +16 -11
- package/scss/radio/_variables.scss +7 -1
- package/scss/signature/_variables.scss +0 -21
- package/scss/split-button/_variables.scss +0 -8
- package/scss/suggestion/_variables.scss +4 -45
- package/scss/switch/_variables.scss +103 -7
- package/scss/table/_variables.scss +6 -33
- package/scss/tabstrip/_variables.scss +7 -25
- package/scss/timeselector/_variables.scss +21 -39
- package/scss/toolbar/_layout.scss +25 -12
- package/scss/toolbar/_theme.scss +7 -5
- package/scss/toolbar/_variables.scss +12 -25
- package/scss/tooltip/_functions.scss +15 -6
- package/scss/tooltip/_theme.scss +0 -21
- package/scss/tooltip/_variables.scss +3 -14
- package/scss/treeview/_variables.scss +6 -32
- package/scss/window/_theme.scss +0 -15
- package/scss/window/_variables.scss +12 -18
package/scss/button/_theme.scss
CHANGED
|
@@ -1,153 +1,188 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
2
|
@use "../core/_index.scss" as *;
|
|
3
3
|
@use "./_variables.scss" as *;
|
|
4
|
+
@use "../core/functions/index.scss" as *;
|
|
4
5
|
@use "@progress/kendo-theme-core/scss/components/button/_theme.scss" as *;
|
|
5
6
|
|
|
6
7
|
@mixin kendo-button--theme() {
|
|
7
8
|
|
|
8
9
|
@include kendo-button--theme-base();
|
|
9
|
-
.k-button-solid {
|
|
10
|
-
&:focus,
|
|
11
|
-
&.k-focus {
|
|
12
|
-
border-color: $kendo-button-focus-border;
|
|
13
|
-
outline-color: $kendo-button-focus-border;
|
|
14
|
-
box-shadow: inset 0 0 0 $kendo-button-border-width $kendo-button-focus-border,
|
|
15
|
-
inset 0 0 0 calc( #{$kendo-button-border-width} * 2 ) k-color(surface);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.k-button-solid-base {
|
|
20
|
-
&.k-selected {
|
|
21
|
-
color: $kendo-button-active-text;
|
|
22
|
-
background-color: $kendo-button-active-bg;
|
|
23
|
-
border-color: $kendo-button-active-border;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.k-button-flat {
|
|
28
|
-
&:disabled,
|
|
29
|
-
&.k-disabled {
|
|
30
|
-
@include fill(
|
|
31
|
-
$kendo-button-flat-disabled-text,
|
|
32
|
-
$kendo-button-flat-disabled-bg,
|
|
33
|
-
$kendo-button-flat-disabled-border
|
|
34
|
-
);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.k-button-outline,
|
|
39
|
-
.k-button-flat,
|
|
40
|
-
.k-button-clear,
|
|
41
|
-
.k-button-link {
|
|
42
|
-
&:focus,
|
|
43
|
-
&.k-focus {
|
|
44
|
-
outline-color: $kendo-button-focus-border;
|
|
45
|
-
}
|
|
46
10
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
$kendo-button-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
@each $theme-color, $color in $kendo-button-theme-colors {
|
|
58
|
-
@if($theme-color != "base") {
|
|
59
|
-
.k-button-flat-#{$theme-color} {
|
|
60
|
-
background-color: initial !important; // stylelint-disable-line declaration-no-important
|
|
61
|
-
border-color: transparent;
|
|
11
|
+
.k-button {
|
|
12
|
+
#{k-when-default($kendo-button-default-fill-mode, "solid")}
|
|
13
|
+
&.k-button-solid {
|
|
14
|
+
&:focus,
|
|
15
|
+
&.k-focus {
|
|
16
|
+
border-color: $kendo-button-focus-border;
|
|
17
|
+
outline-color: $kendo-button-focus-border;
|
|
18
|
+
box-shadow: inset 0 0 0 $kendo-button-border-width $kendo-button-focus-border,
|
|
19
|
+
inset 0 0 0 calc( #{$kendo-button-border-width} * 2 ) k-color(surface);
|
|
62
20
|
}
|
|
63
21
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
border-color: k-color(#{$theme-color}-on-surface);
|
|
67
|
-
|
|
68
|
-
&:hover,
|
|
69
|
-
&.k-hover,
|
|
70
|
-
&:active,
|
|
71
|
-
&.k-active,
|
|
22
|
+
#{k-when-default($kendo-button-default-theme-color, "base")}
|
|
23
|
+
&.k-button-base {
|
|
72
24
|
&.k-selected {
|
|
73
|
-
|
|
25
|
+
color: $kendo-button-active-text;
|
|
26
|
+
background-color: $kendo-button-active-bg;
|
|
27
|
+
border-color: $kendo-button-active-border;
|
|
74
28
|
}
|
|
75
29
|
}
|
|
30
|
+
}
|
|
76
31
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
32
|
+
#{k-when-default($kendo-button-default-fill-mode, "flat")}
|
|
33
|
+
&.k-button-flat {
|
|
34
|
+
&:disabled,
|
|
35
|
+
&.k-disabled {
|
|
36
|
+
@include fill(
|
|
37
|
+
$kendo-button-flat-disabled-text,
|
|
38
|
+
$kendo-button-flat-disabled-bg,
|
|
39
|
+
$kendo-button-flat-disabled-border
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
80
43
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
44
|
+
#{k-when-default($kendo-button-default-fill-mode, ("outline", "flat", "clear", "link"))}
|
|
45
|
+
&.k-button-outline,
|
|
46
|
+
&.k-button-flat,
|
|
47
|
+
&.k-button-clear,
|
|
48
|
+
&.k-button-link {
|
|
49
|
+
&:focus,
|
|
50
|
+
&.k-focus {
|
|
51
|
+
outline-color: $kendo-button-focus-border;
|
|
52
|
+
}
|
|
86
53
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
54
|
+
&:disabled,
|
|
55
|
+
&.k-disabled {
|
|
56
|
+
@include fill(
|
|
57
|
+
$kendo-button-outline-disabled-text,
|
|
58
|
+
$kendo-button-outline-disabled-bg,
|
|
59
|
+
$kendo-button-outline-disabled-border
|
|
60
|
+
);
|
|
93
61
|
}
|
|
94
62
|
}
|
|
95
63
|
|
|
96
|
-
@
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
64
|
+
@each $theme-color in $kendo-button-theme-colors {
|
|
65
|
+
@if($theme-color != "base") {
|
|
66
|
+
#{k-when-default($kendo-button-default-fill-mode, "flat")}
|
|
67
|
+
&.k-button-flat {
|
|
68
|
+
#{k-when-default($kendo-button-default-theme-color, $theme-color)}
|
|
69
|
+
&.k-button-#{$theme-color} {
|
|
70
|
+
background-color: initial !important; // stylelint-disable-line declaration-no-important
|
|
71
|
+
border-color: transparent;
|
|
72
|
+
}
|
|
105
73
|
}
|
|
106
74
|
|
|
107
|
-
|
|
108
|
-
&.k-
|
|
109
|
-
|
|
110
|
-
color
|
|
111
|
-
|
|
112
|
-
|
|
75
|
+
#{k-when-default($kendo-button-default-fill-mode, "outline")}
|
|
76
|
+
&.k-button-outline {
|
|
77
|
+
#{k-when-default($kendo-button-default-theme-color, $theme-color)}
|
|
78
|
+
&.k-button-#{$theme-color} {
|
|
79
|
+
border-color: k-color(#{$theme-color}-on-surface);
|
|
80
|
+
|
|
81
|
+
&:hover,
|
|
82
|
+
&.k-hover,
|
|
83
|
+
&:active,
|
|
84
|
+
&.k-active,
|
|
85
|
+
&.k-selected {
|
|
86
|
+
border-color: k-color(#{$theme-color}-on-surface);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
113
89
|
}
|
|
114
|
-
}
|
|
115
90
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
&.k-
|
|
119
|
-
|
|
91
|
+
#{k-when-default($kendo-button-default-fill-mode, ("flat", "outline"))}
|
|
92
|
+
&.k-button-flat,
|
|
93
|
+
&.k-button-outline {
|
|
94
|
+
#{k-when-default($kendo-button-default-theme-color, $theme-color)}
|
|
95
|
+
&.k-button-#{$theme-color} {
|
|
96
|
+
color: k-color(#{$theme-color}-on-surface);
|
|
97
|
+
|
|
98
|
+
&:hover,
|
|
99
|
+
&.k-hover {
|
|
100
|
+
color: k-color(#{$theme-color}-on-surface);
|
|
101
|
+
background-color: color-mix(in srgb, k-color(#{$theme-color}-hover) 3%, transparent) !important; // stylelint-disable-line declaration-no-important
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&:active,
|
|
105
|
+
&.k-active,
|
|
106
|
+
&.k-selected {
|
|
107
|
+
color: k-color(#{$theme-color}-on-surface);
|
|
108
|
+
background-color: color-mix(in srgb, k-color(#{$theme-color}-active) 13%, transparent) !important; // stylelint-disable-line declaration-no-important
|
|
109
|
+
}
|
|
110
|
+
}
|
|
120
111
|
}
|
|
121
112
|
}
|
|
122
|
-
}
|
|
123
113
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
114
|
+
@if($theme-color == "base") {
|
|
115
|
+
#{k-when-default($kendo-button-default-fill-mode, "outline")}
|
|
116
|
+
&.k-button-outline {
|
|
117
|
+
#{k-when-default($kendo-button-default-theme-color, $theme-color)}
|
|
118
|
+
&.k-button-#{$theme-color} {
|
|
119
|
+
border-color: $kendo-button-border;
|
|
120
|
+
|
|
121
|
+
&:hover,
|
|
122
|
+
&.k-hover {
|
|
123
|
+
color: inherit;
|
|
124
|
+
background-color: color-mix(in srgb, k-color(on-base) 3%, transparent);
|
|
125
|
+
border-color: color-mix( in srgb, k-color(border) 34%, transparent );
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&:active,
|
|
129
|
+
&.k-active,
|
|
130
|
+
&.k-selected {
|
|
131
|
+
color: inherit;
|
|
132
|
+
background-color: color-mix(in srgb, k-color(on-base) 13%, transparent);
|
|
133
|
+
border-color: $kendo-button-border;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
127
137
|
|
|
128
|
-
|
|
129
|
-
&.k-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
138
|
+
#{k-when-default($kendo-button-default-fill-mode, "flat")}
|
|
139
|
+
&.k-button-flat {
|
|
140
|
+
#{k-when-default($kendo-button-default-theme-color, $theme-color)}
|
|
141
|
+
&.k-button-#{$theme-color} {
|
|
142
|
+
&:hover,
|
|
143
|
+
&.k-hover {
|
|
144
|
+
background-color: color-mix(in srgb, k-color(on-base) 3%, transparent) !important; // stylelint-disable-line declaration-no-important
|
|
145
|
+
}
|
|
146
|
+
}
|
|
134
147
|
}
|
|
148
|
+
}
|
|
135
149
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
150
|
+
@if($theme-color == "secondary") {
|
|
151
|
+
#{k-when-default($kendo-button-default-fill-mode, "solid")}
|
|
152
|
+
&.k-button-solid {
|
|
153
|
+
#{k-when-default($kendo-button-default-theme-color, $theme-color)}
|
|
154
|
+
&.k-button-#{$theme-color} {
|
|
155
|
+
border-color: currentColor;
|
|
156
|
+
|
|
157
|
+
&:hover,
|
|
158
|
+
&.k-hover,
|
|
159
|
+
&:active,
|
|
160
|
+
&.k-active,
|
|
161
|
+
&.k-selected {
|
|
162
|
+
border-color: currentColor;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&:focus,
|
|
166
|
+
&.k-focus {
|
|
167
|
+
box-shadow: inset 0 0 0 $kendo-button-border-width $kendo-button-focus-border;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
139
170
|
}
|
|
140
171
|
}
|
|
141
|
-
}
|
|
142
172
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
173
|
+
@if($theme-color == "light") {
|
|
174
|
+
#{k-when-default($kendo-button-default-fill-mode, ("outline", "flat", "clear", "link"))}
|
|
175
|
+
&.k-button-outline,
|
|
176
|
+
&.k-button-flat,
|
|
177
|
+
&.k-button-clear,
|
|
178
|
+
&.k-button-link {
|
|
179
|
+
#{k-when-default($kendo-button-default-theme-color, $theme-color)}
|
|
180
|
+
&.k-button-#{$theme-color} {
|
|
181
|
+
&:focus,
|
|
182
|
+
&.k-focus {
|
|
183
|
+
outline-color: k-color(light-on-surface);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
151
186
|
}
|
|
152
187
|
}
|
|
153
188
|
}
|
|
@@ -162,24 +197,37 @@
|
|
|
162
197
|
:where(.k-disabled),
|
|
163
198
|
:where(:disabled) {
|
|
164
199
|
|
|
165
|
-
.k-button
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
200
|
+
.k-button {
|
|
201
|
+
|
|
202
|
+
@each $theme-color in $kendo-button-theme-colors {
|
|
203
|
+
|
|
204
|
+
#{k-when-default($kendo-button-default-theme-color, $theme-color)}
|
|
205
|
+
&.k-button-#{$theme-color} {
|
|
206
|
+
|
|
207
|
+
#{k-when-default($kendo-button-default-fill-mode, "solid")}
|
|
208
|
+
&.k-button-solid {
|
|
209
|
+
color: $kendo-button-disabled-text;
|
|
210
|
+
background-color: $kendo-button-disabled-bg;
|
|
211
|
+
border-color: $kendo-button-disabled-border;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
#{k-when-default($kendo-button-default-fill-mode, "outline")}
|
|
215
|
+
&.k-button-outline {
|
|
216
|
+
color: $kendo-button-outline-disabled-text;
|
|
217
|
+
background-color: $kendo-button-outline-disabled-bg;
|
|
218
|
+
border-color: $kendo-button-outline-disabled-border;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
#{k-when-default($kendo-button-default-fill-mode, ("flat", "clear", "link"))}
|
|
222
|
+
&.k-button-flat,
|
|
223
|
+
&.k-button-clear,
|
|
224
|
+
&.k-button-link {
|
|
225
|
+
color: $kendo-button-flat-disabled-text;
|
|
226
|
+
background-color: $kendo-button-flat-disabled-bg;
|
|
227
|
+
border-color: $kendo-button-flat-disabled-border;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
183
231
|
}
|
|
184
232
|
}
|
|
185
233
|
}
|
|
@@ -2,10 +2,32 @@
|
|
|
2
2
|
@use "sass:map";
|
|
3
3
|
@use "../core/_index.scss" as *;
|
|
4
4
|
|
|
5
|
+
|
|
6
|
+
/// The default theme color of the Button.
|
|
7
|
+
/// @group button
|
|
8
|
+
/// @role default
|
|
9
|
+
$kendo-button-default-theme-color: "base" !default;
|
|
10
|
+
/// The default fill mode of the Button.
|
|
11
|
+
/// @group button
|
|
12
|
+
/// @role default
|
|
13
|
+
$kendo-button-default-fill-mode: "solid" !default;
|
|
14
|
+
/// The default roundness of the Button.
|
|
15
|
+
/// @group button
|
|
16
|
+
/// @role default
|
|
17
|
+
$kendo-button-default-roundness: "md" !default;
|
|
18
|
+
/// The default size of the Button.
|
|
19
|
+
/// @group button
|
|
20
|
+
/// @role default
|
|
21
|
+
$kendo-button-default-size: "md" !default;
|
|
22
|
+
|
|
5
23
|
/// The width of the border around the Button.
|
|
6
24
|
/// @group button
|
|
7
25
|
$kendo-button-border-width: var( --kendo-button-border-width, 1px ) !default;
|
|
8
26
|
|
|
27
|
+
/// The border radius of the Button.
|
|
28
|
+
/// @group button
|
|
29
|
+
$kendo-button-border-radius: null !default;
|
|
30
|
+
|
|
9
31
|
/// The horizontal padding of the small Button.
|
|
10
32
|
/// @group button
|
|
11
33
|
$kendo-button-sm-padding-x: var( --kendo-button-sm-padding-x, k-spacing(2) ) !default;
|
|
@@ -64,29 +86,6 @@ $kendo-button-sm-inner-calc-size: calc( ( #{$kendo-button-sm-line-height} * 1em
|
|
|
64
86
|
$kendo-button-md-inner-calc-size: calc( ( #{$kendo-button-md-line-height} * 1em ) + ( #{$kendo-button-md-padding-y} * 2 ) ) !default;
|
|
65
87
|
$kendo-button-lg-inner-calc-size: calc( ( #{$kendo-button-lg-line-height} * 1em ) + ( #{$kendo-button-lg-padding-y} * 2 ) ) !default;
|
|
66
88
|
|
|
67
|
-
/// The sizes map for the Button.
|
|
68
|
-
/// @group button
|
|
69
|
-
$kendo-button-sizes: (
|
|
70
|
-
sm: (
|
|
71
|
-
padding-x: $kendo-button-sm-padding-x,
|
|
72
|
-
padding-y: $kendo-button-sm-padding-y,
|
|
73
|
-
font-size: $kendo-button-sm-font-size,
|
|
74
|
-
line-height: $kendo-button-sm-line-height
|
|
75
|
-
),
|
|
76
|
-
md: (
|
|
77
|
-
padding-x: $kendo-button-md-padding-x,
|
|
78
|
-
padding-y: $kendo-button-md-padding-y,
|
|
79
|
-
font-size: $kendo-button-md-font-size,
|
|
80
|
-
line-height: $kendo-button-md-line-height
|
|
81
|
-
),
|
|
82
|
-
lg: (
|
|
83
|
-
padding-x: $kendo-button-lg-padding-x,
|
|
84
|
-
padding-y: $kendo-button-lg-padding-y,
|
|
85
|
-
font-size: $kendo-button-lg-font-size,
|
|
86
|
-
line-height: $kendo-button-lg-line-height
|
|
87
|
-
)
|
|
88
|
-
) !default;
|
|
89
|
-
|
|
90
89
|
/// The Outline width of the focused Button.
|
|
91
90
|
/// @group button
|
|
92
91
|
$kendo-button-focus-outline-width: var( --kendo-button-focus-outline-width, 2px ) !default;
|
|
@@ -106,22 +105,6 @@ $kendo-button-link-focus-offset: var( --kendo-button-link-focus-offset, 0 ) !def
|
|
|
106
105
|
/// @group button
|
|
107
106
|
$kendo-button-pulsing-opacity: var( --kendo-button-pulsing-opacity, .6 ) !default;
|
|
108
107
|
|
|
109
|
-
/// The theme colors map for the Button.
|
|
110
|
-
/// @group button
|
|
111
|
-
$kendo-button-theme-colors: (
|
|
112
|
-
"base": k-color(base),
|
|
113
|
-
"primary": k-color(primary),
|
|
114
|
-
"secondary": k-color(secondary),
|
|
115
|
-
"tertiary": k-color(tertiary),
|
|
116
|
-
"info": k-color(info),
|
|
117
|
-
"success": k-color(success),
|
|
118
|
-
"warning": k-color(warning),
|
|
119
|
-
"error": k-color(error),
|
|
120
|
-
"dark": k-color(dark),
|
|
121
|
-
"light": k-color(light),
|
|
122
|
-
"inverse": if($kendo-is-dark-theme, k-color(light), k-color(dark))
|
|
123
|
-
) !default;
|
|
124
|
-
|
|
125
108
|
/// The base background of the Button.
|
|
126
109
|
/// @group button
|
|
127
110
|
$kendo-button-bg: var( --kendo-button-bg, k-color(base) ) !default;
|
|
@@ -201,6 +184,7 @@ $kendo-button-transition: color k-transition(rapid), background-color k-transiti
|
|
|
201
184
|
|
|
202
185
|
@forward "@progress/kendo-theme-core/scss/components/button/_variables.scss" with (
|
|
203
186
|
$kendo-button-border-width: $kendo-button-border-width,
|
|
187
|
+
$kendo-button-border-radius: $kendo-button-border-radius,
|
|
204
188
|
$kendo-button-sm-padding-x: $kendo-button-sm-padding-x,
|
|
205
189
|
$kendo-button-md-padding-x: $kendo-button-md-padding-x,
|
|
206
190
|
$kendo-button-lg-padding-x: $kendo-button-lg-padding-x,
|
|
@@ -222,9 +206,7 @@ $kendo-button-transition: color k-transition(rapid), background-color k-transiti
|
|
|
222
206
|
$kendo-button-lg-line-height: $kendo-button-lg-line-height,
|
|
223
207
|
$kendo-button-font-family: $kendo-button-font-family,
|
|
224
208
|
$kendo-button-font-weight: $kendo-button-font-weight,
|
|
225
|
-
$kendo-button-sizes: $kendo-button-sizes,
|
|
226
209
|
$kendo-button-pulsing-opacity: $kendo-button-pulsing-opacity,
|
|
227
|
-
$kendo-button-theme-colors: $kendo-button-theme-colors,
|
|
228
210
|
$kendo-button-bg: $kendo-button-bg,
|
|
229
211
|
$kendo-button-text: $kendo-button-text,
|
|
230
212
|
$kendo-button-border: $kendo-button-border,
|
|
@@ -239,5 +221,9 @@ $kendo-button-transition: color k-transition(rapid), background-color k-transiti
|
|
|
239
221
|
$kendo-button-disabled-bg: $kendo-button-disabled-bg,
|
|
240
222
|
$kendo-button-disabled-text: $kendo-button-disabled-text,
|
|
241
223
|
$kendo-button-disabled-border: $kendo-button-disabled-border,
|
|
242
|
-
$kendo-button-transition: $kendo-button-transition
|
|
224
|
+
$kendo-button-transition: $kendo-button-transition,
|
|
225
|
+
$kendo-button-default-theme-color: $kendo-button-default-theme-color,
|
|
226
|
+
$kendo-button-default-fill-mode: $kendo-button-default-fill-mode,
|
|
227
|
+
$kendo-button-default-roundness: $kendo-button-default-roundness,
|
|
228
|
+
$kendo-button-default-size: $kendo-button-default-size
|
|
243
229
|
);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
2
|
@use "../core/_index.scss" as *;
|
|
3
|
+
@use "../core/functions/index.scss" as *;
|
|
3
4
|
@use "./_variables.scss" as *;
|
|
4
5
|
@use "@progress/kendo-theme-core/scss/components/calendar/_layout.scss" as *;
|
|
5
6
|
|
|
@@ -13,6 +14,17 @@
|
|
|
13
14
|
position: relative;
|
|
14
15
|
overflow: hidden;
|
|
15
16
|
}
|
|
17
|
+
|
|
18
|
+
@each $size, $size-props in $kendo-calendar-sizes {
|
|
19
|
+
$_cell-font-size: map.get($size-props, cell-font-size);
|
|
20
|
+
|
|
21
|
+
#{k-when-default($kendo-calendar-default-size, $size)}
|
|
22
|
+
&.k-calendar-#{$size} {
|
|
23
|
+
.k-calendar-td {
|
|
24
|
+
font-size: $_cell-font-size;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
16
28
|
}
|
|
17
29
|
|
|
18
30
|
.k-calendar-caption,
|
|
@@ -113,12 +125,4 @@
|
|
|
113
125
|
pointer-events: none;
|
|
114
126
|
}
|
|
115
127
|
|
|
116
|
-
@each $size, $size-props in $kendo-calendar-sizes {
|
|
117
|
-
$_cell-font-size: map.get($size-props, cell-font-size);
|
|
118
|
-
|
|
119
|
-
.k-calendar-#{$size} .k-calendar-td {
|
|
120
|
-
font-size: $_cell-font-size;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
128
|
}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
2
|
@use "../core/_index.scss" as *;
|
|
3
3
|
|
|
4
|
+
/// The default size of the Calendar.
|
|
5
|
+
/// @group calendar
|
|
6
|
+
/// @role default
|
|
7
|
+
$kendo-calendar-default-size: "md" !default;
|
|
8
|
+
|
|
4
9
|
/// The width of the border around the Calendar.
|
|
5
10
|
/// @group calendar
|
|
6
11
|
$kendo-calendar-border-width: var( --kendo-calendar-border-width, 1px ) !default;
|
|
@@ -9,10 +14,10 @@ $kendo-calendar-border-width: var( --kendo-calendar-border-width, 1px ) !default
|
|
|
9
14
|
$kendo-calendar-font-family: var( --kendo-calendar-font-family, var(--kendo-font-family, inherit) ) !default;
|
|
10
15
|
/// The font size of the Calendar.
|
|
11
16
|
/// @group calendar
|
|
12
|
-
$kendo-calendar-font-size:
|
|
17
|
+
$kendo-calendar-font-size: null !default;
|
|
13
18
|
/// The line height of the Calendar.
|
|
14
19
|
/// @group calendar
|
|
15
|
-
$kendo-calendar-line-height:
|
|
20
|
+
$kendo-calendar-line-height: null !default;
|
|
16
21
|
/// The border-radius of the Calendar.
|
|
17
22
|
/// @group calendar
|
|
18
23
|
$kendo-calendar-border-radius: var( --kendo-calendar-border-radius, 0 ) !default;
|
|
@@ -359,6 +364,7 @@ $kendo-calendar-sizes: (
|
|
|
359
364
|
) !default;
|
|
360
365
|
|
|
361
366
|
@forward "@progress/kendo-theme-core/scss/components/calendar/_variables.scss" with (
|
|
367
|
+
$kendo-calendar-default-size: $kendo-calendar-default-size,
|
|
362
368
|
$kendo-calendar-border-width: $kendo-calendar-border-width,
|
|
363
369
|
$kendo-calendar-font-family: $kendo-calendar-font-family,
|
|
364
370
|
$kendo-calendar-font-size: $kendo-calendar-font-size,
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
@use "../core/_index.scss" as *;
|
|
3
3
|
@use "../button/_variables.scss" as *;
|
|
4
4
|
|
|
5
|
+
/// The default theme color of the Card.
|
|
6
|
+
/// @role default
|
|
7
|
+
/// @group card
|
|
8
|
+
$kendo-card-default-theme-color: null !default;
|
|
9
|
+
|
|
5
10
|
/// The horizontal padding of the Card.
|
|
6
11
|
/// @group card
|
|
7
12
|
$kendo-card-padding-x: var( --kendo-card-padding-x, k-spacing(3) ) !default;
|
|
@@ -173,21 +178,8 @@ $kendo-card-deck-scroll-button-offset: calc( -1 * #{$kendo-button-border-width}
|
|
|
173
178
|
/// @group card
|
|
174
179
|
$kendo-card-callout-size: 20px !default;
|
|
175
180
|
|
|
176
|
-
/// Theme colors map for the card variations.
|
|
177
|
-
$kendo-card-theme-colors: (
|
|
178
|
-
"primary": k-color(primary),
|
|
179
|
-
"secondary": k-color(secondary),
|
|
180
|
-
"tertiary": k-color(tertiary),
|
|
181
|
-
"info": k-color(info),
|
|
182
|
-
"success": k-color(success),
|
|
183
|
-
"warning": k-color(warning),
|
|
184
|
-
"error": k-color(error),
|
|
185
|
-
"dark": k-color(dark),
|
|
186
|
-
"light": k-color(light),
|
|
187
|
-
"inverse": if($kendo-is-dark-theme, k-color(light), k-color(dark))
|
|
188
|
-
) !default;
|
|
189
|
-
|
|
190
181
|
@forward "@progress/kendo-theme-core/scss/components/card/_variables.scss" with (
|
|
182
|
+
$kendo-card-default-theme-color: $kendo-card-default-theme-color,
|
|
191
183
|
$kendo-card-padding-x: $kendo-card-padding-x,
|
|
192
184
|
$kendo-card-padding-y: $kendo-card-padding-y,
|
|
193
185
|
$kendo-card-border-width: $kendo-card-border-width,
|
|
@@ -238,6 +230,5 @@ $kendo-card-theme-colors: (
|
|
|
238
230
|
$kendo-card-deck-scroll-button-radius: $kendo-card-deck-scroll-button-radius,
|
|
239
231
|
$kendo-card-deck-scroll-button-offset: $kendo-card-deck-scroll-button-offset,
|
|
240
232
|
$kendo-card-callout-width: $kendo-card-callout-size,
|
|
241
|
-
$kendo-card-callout-height: $kendo-card-callout-size
|
|
242
|
-
$kendo-card-theme-colors: $kendo-card-theme-colors
|
|
233
|
+
$kendo-card-callout-height: $kendo-card-callout-size
|
|
243
234
|
);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
2
|
@use "../core/_index.scss" as *;
|
|
3
|
+
@use "../core/functions/index.scss" as *;
|
|
3
4
|
@use "./_variables.scss" as *;
|
|
4
5
|
@use "@progress/kendo-theme-core/scss/components/checkbox/_layout.scss" as *;
|
|
5
6
|
|
|
@@ -7,6 +8,20 @@
|
|
|
7
8
|
|
|
8
9
|
@include kendo-checkbox--layout-base();
|
|
9
10
|
|
|
11
|
+
.k-checkbox {
|
|
12
|
+
// Checkbox size
|
|
13
|
+
@each $size, $size-props in $kendo-checkbox-sizes {
|
|
14
|
+
$_indicator-size: map.get( $size-props, indicator-size );
|
|
15
|
+
$_indeterminate-size: map.get( $size-props, indeterminate-size );
|
|
16
|
+
|
|
17
|
+
#{k-when-default($kendo-checkbox-default-size, $size)}
|
|
18
|
+
&.k-checkbox-#{$size} {
|
|
19
|
+
--kendo-checkbox-indicator-size: #{$_indicator-size};
|
|
20
|
+
--kendo-checkbox-indeterminate-size: #{$_indeterminate-size};
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
10
25
|
.k-checkbox::before {
|
|
11
26
|
@if $kendo-checkbox-indicator-type == "pseudo" {
|
|
12
27
|
content: "";
|
|
@@ -137,15 +152,4 @@
|
|
|
137
152
|
outline: none !important; // stylelint-disable-line declaration-no-important
|
|
138
153
|
}
|
|
139
154
|
}
|
|
140
|
-
|
|
141
|
-
// Checkbox size
|
|
142
|
-
@each $size, $size-props in $kendo-checkbox-sizes {
|
|
143
|
-
$_indicator-size: map.get( $size-props, indicator-size );
|
|
144
|
-
$_indeterminate-size: map.get( $size-props, indeterminate-size );
|
|
145
|
-
|
|
146
|
-
.k-checkbox-#{$size} {
|
|
147
|
-
--kendo-checkbox-indicator-size: #{$_indicator-size};
|
|
148
|
-
--kendo-checkbox-indeterminate-size: #{$_indeterminate-size};
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
155
|
}
|
|
@@ -182,6 +182,16 @@ $kendo-checkbox-disabled-indeterminate-text: var( --kendo-checkbox-disabled-inde
|
|
|
182
182
|
/// @group checkbox
|
|
183
183
|
$kendo-checkbox-disabled-indeterminate-border: var( --kendo-checkbox-disabled-indeterminate-border, $kendo-checkbox-disabled-border ) !default;
|
|
184
184
|
|
|
185
|
+
/// The default size of the Checkbox.
|
|
186
|
+
/// @group checkbox
|
|
187
|
+
/// @role default
|
|
188
|
+
$kendo-checkbox-default-size: "md" !default;
|
|
189
|
+
|
|
190
|
+
/// The default border radius of the Checkbox.
|
|
191
|
+
/// @group checkbox
|
|
192
|
+
/// @role default
|
|
193
|
+
$kendo-checkbox-default-roundness: "md" !default;
|
|
194
|
+
|
|
185
195
|
// Checkbox indicator
|
|
186
196
|
|
|
187
197
|
/// The type of the CheckBox indicator.
|
|
@@ -294,5 +304,7 @@ $kendo-checkbox-ripple-opacity: var( --kendo-checkbox-ripple-opacity, .25 ) !def
|
|
|
294
304
|
$kendo-checkbox-list-item-padding-x: $kendo-checkbox-list-item-padding-x,
|
|
295
305
|
$kendo-checkbox-list-item-padding-y: $kendo-checkbox-list-item-padding-y,
|
|
296
306
|
$kendo-checkbox-ripple-bg: $kendo-checkbox-ripple-bg,
|
|
297
|
-
$kendo-checkbox-ripple-opacity: $kendo-checkbox-ripple-opacity
|
|
307
|
+
$kendo-checkbox-ripple-opacity: $kendo-checkbox-ripple-opacity,
|
|
308
|
+
$kendo-checkbox-default-size: $kendo-checkbox-default-size,
|
|
309
|
+
$kendo-checkbox-default-roundness: $kendo-checkbox-default-roundness
|
|
298
310
|
);
|