@progress/kendo-theme-default 7.1.0-dev.0 → 7.1.0-dev.10
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 +314 -40
- package/dist/all.scss +1942 -599
- package/dist/meta/sassdoc-data.json +4494 -2868
- package/dist/meta/sassdoc-raw-data.json +1681 -931
- package/dist/meta/variables.json +331 -159
- package/lib/swatches/default-blue.json +1 -1
- package/lib/swatches/default-dataviz-v4.json +1 -1
- package/lib/swatches/default-green.json +1 -1
- package/lib/swatches/default-main-dark.json +1 -1
- package/lib/swatches/default-main.json +1 -1
- package/lib/swatches/default-nordic.json +1 -1
- package/lib/swatches/default-ocean-blue-a11y.json +1 -1
- package/lib/swatches/default-ocean-blue.json +1 -1
- package/lib/swatches/default-orange.json +1 -1
- package/lib/swatches/default-purple.json +1 -1
- package/lib/swatches/default-turquoise.json +1 -1
- package/lib/swatches/default-urban.json +1 -1
- package/package.json +5 -5
- package/scss/_variables.scss +1 -209
- package/scss/adaptive/_variables.scss +1 -1
- package/scss/appbar/_theme.scss +1 -1
- package/scss/appbar/_variables.scss +2 -2
- package/scss/avatar/_theme.scss +1 -1
- package/scss/badge/_theme.scss +1 -1
- package/scss/bottom-navigation/_theme.scss +5 -5
- package/scss/button/_theme.scss +74 -30
- package/scss/button/_variables.scss +10 -10
- package/scss/calendar/_theme.scss +1 -1
- package/scss/card/_layout.scss +4 -0
- package/scss/card/_theme.scss +3 -3
- package/scss/chat/_variables.scss +1 -1
- package/scss/checkbox/_variables.scss +2 -2
- package/scss/chip/_theme.scss +24 -22
- package/scss/chip/_variables.scss +5 -5
- package/scss/common/_indicators.scss +0 -2
- package/scss/core/_index.scss +6 -0
- package/scss/core/color-system/_palettes.scss +256 -0
- package/scss/core/color-system/_swatch-legacy.scss +62 -0
- package/scss/core/color-system/_swatch.scss +397 -0
- package/scss/dataviz/_layout.scss +2 -2
- package/scss/dataviz/_variables.scss +42 -42
- package/scss/dialog/_theme.scss +1 -1
- package/scss/dock-manager/_variables.scss +1 -1
- package/scss/drawer/_layout.scss +1 -0
- package/scss/dropdowntree/_layout.scss +16 -0
- package/scss/dropzone/_variables.scss +1 -1
- package/scss/editor/_variables.scss +1 -1
- package/scss/fab/_theme.scss +15 -15
- package/scss/filemanager/_layout.scss +5 -0
- package/scss/filemanager/_variables.scss +2 -2
- package/scss/forms/_variables.scss +1 -1
- package/scss/gantt/_layout.scss +13 -5
- package/scss/gantt/_variables.scss +10 -10
- package/scss/grid/_layout.scss +10 -0
- package/scss/grid/_theme.scss +54 -6
- package/scss/grid/_variables.scss +10 -7
- package/scss/index.scss +2 -0
- package/scss/input/_layout.scss +39 -8
- package/scss/input/_theme.scss +139 -0
- package/scss/input/_variables.scss +30 -9
- package/scss/list/_theme.scss +1 -1
- package/scss/listview/_variables.scss +1 -1
- package/scss/map/_variables.scss +1 -1
- package/scss/mediaplayer/_theme.scss +1 -1
- package/scss/mediaplayer/_variables.scss +1 -1
- package/scss/messagebox/_theme.scss +13 -5
- package/scss/notification/_layout.scss +4 -9
- package/scss/notification/_variables.scss +5 -1
- package/scss/panelbar/_variables.scss +4 -4
- package/scss/pivotgrid/_variables.scss +5 -5
- package/scss/progressbar/_theme.scss +1 -1
- package/scss/progressbar/_variables.scss +3 -3
- package/scss/prompt/_index.scss +37 -0
- package/scss/prompt/_layout.scss +70 -0
- package/scss/prompt/_theme.scss +41 -0
- package/scss/prompt/_variables.scss +66 -0
- package/scss/scheduler/_theme.scss +3 -3
- package/scss/scheduler/_variables.scss +4 -4
- package/scss/signature/_variables.scss +1 -1
- package/scss/skeleton/_variables.scss +2 -5
- package/scss/slider/_variables.scss +6 -6
- package/scss/splitter/_variables.scss +1 -1
- package/scss/spreadsheet/_variables.scss +4 -4
- package/scss/stepper/_layout.scss +11 -0
- package/scss/stepper/_theme.scss +51 -15
- package/scss/stepper/_variables.scss +8 -8
- package/scss/switch/_theme.scss +2 -2
- package/scss/switch/_variables.scss +4 -4
- package/scss/table/_variables.scss +3 -4
- package/scss/taskboard/_variables.scss +7 -7
- package/scss/timeline/_layout.scss +0 -4
- package/scss/timeline/_variables.scss +4 -4
- package/scss/tooltip/_variables.scss +4 -4
- package/scss/window/_theme.scss +1 -1
- package/scss/core/color-system/index.import.scss +0 -1
package/scss/button/_theme.scss
CHANGED
|
@@ -68,17 +68,17 @@
|
|
|
68
68
|
|
|
69
69
|
@each $name, $color in $kendo-button-theme-colors {
|
|
70
70
|
@if ($name != "base") {
|
|
71
|
-
$_button-text: k-contrast-legacy( $color );
|
|
72
|
-
$_button-bg: if( $kendo-solid-button-shade-bg-amount, k-meta-call( $_shade-fn, $color, $kendo-solid-button-shade-bg-amount ), null );
|
|
73
|
-
$_button-border: if( $kendo-solid-button-shade-border-amount, k-meta-call( $_shade-fn, $color, $kendo-solid-button-shade-border-amount ), null );
|
|
71
|
+
$_button-text: if($kendo-enable-color-system, k-color( on-#{$name} ), k-contrast-legacy( $color ));
|
|
72
|
+
$_button-bg: if($kendo-enable-color-system, k-color( $name ), if( $kendo-solid-button-shade-bg-amount, k-meta-call( $_shade-fn, $color, $kendo-solid-button-shade-bg-amount ), null ));
|
|
73
|
+
$_button-border: if($kendo-enable-color-system, k-color( $name ), if( $kendo-solid-button-shade-border-amount, k-meta-call( $_shade-fn, $color, $kendo-solid-button-shade-border-amount ), null ));
|
|
74
74
|
|
|
75
75
|
$_button-hover-text: null;
|
|
76
|
-
$_button-hover-bg: if( $kendo-solid-button-hover-shade-bg-amount, k-meta-call( $_shade-fn, $color, $kendo-solid-button-hover-shade-bg-amount ), null );
|
|
77
|
-
$_button-hover-border: if( $kendo-solid-button-hover-shade-border-amount, k-meta-call( $_shade-fn, $color, $kendo-solid-button-hover-shade-border-amount ), null );
|
|
76
|
+
$_button-hover-bg: if($kendo-enable-color-system, k-color( #{$name}-hover ), if( $kendo-solid-button-hover-shade-bg-amount, k-meta-call( $_shade-fn, $color, $kendo-solid-button-hover-shade-bg-amount ), null ));
|
|
77
|
+
$_button-hover-border: if($kendo-enable-color-system, k-color( #{$name}-hover ), if( $kendo-solid-button-hover-shade-border-amount, k-meta-call( $_shade-fn, $color, $kendo-solid-button-hover-shade-border-amount ), null ));
|
|
78
78
|
|
|
79
79
|
$_button-active-text: null;
|
|
80
|
-
$_button-active-bg: if( $kendo-solid-button-active-shade-bg-amount, k-meta-call( $_shade-fn, $color, $kendo-solid-button-active-shade-bg-amount ), null );
|
|
81
|
-
$_button-active-border: if( $kendo-solid-button-active-shade-border-amount, k-meta-call( $_shade-fn, $color, $kendo-solid-button-active-shade-border-amount ), null );
|
|
80
|
+
$_button-active-bg: if($kendo-enable-color-system, k-color( #{$name}-active ), if( $kendo-solid-button-active-shade-bg-amount, k-meta-call( $_shade-fn, $color, $kendo-solid-button-active-shade-bg-amount ), null ));
|
|
81
|
+
$_button-active-border: if($kendo-enable-color-system, k-color( #{$name}-active ), if( $kendo-solid-button-active-shade-border-amount, k-meta-call( $_shade-fn, $color, $kendo-solid-button-active-shade-border-amount ), null ));
|
|
82
82
|
|
|
83
83
|
.k-button-solid-#{$name} {
|
|
84
84
|
@include fill(
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
&:focus,
|
|
103
103
|
&.k-focus {
|
|
104
104
|
@if ( $kendo-solid-button-shadow ) {
|
|
105
|
-
@include focus-indicator( 0 0 $kendo-solid-button-shadow-blur $kendo-solid-button-shadow-spread rgba( $_button-border, $kendo-solid-button-shadow-opacity ), true, true );
|
|
105
|
+
@include focus-indicator( 0 0 $kendo-solid-button-shadow-blur $kendo-solid-button-shadow-spread if($kendo-enable-color-system, rgba( k-color( $name, true ), $kendo-solid-button-shadow-opacity ), rgba( $_button-border, $kendo-solid-button-shadow-opacity )), true, true );
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
|
|
@@ -146,44 +146,72 @@
|
|
|
146
146
|
.k-button-outline-#{$name} {
|
|
147
147
|
@include box-shadow( none );
|
|
148
148
|
border-color: currentColor;
|
|
149
|
-
color: $color;
|
|
149
|
+
color: if($kendo-enable-color-system, k-color( #{$name}-on-surface ), $color);
|
|
150
150
|
background-color: transparent;
|
|
151
151
|
|
|
152
152
|
// Hover state
|
|
153
153
|
&:hover,
|
|
154
154
|
&.k-hover {
|
|
155
|
-
@
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
155
|
+
@if $name == "base" {
|
|
156
|
+
@include fill(
|
|
157
|
+
if($kendo-enable-color-system, $kendo-base-bg, k-contrast-legacy( $color )),
|
|
158
|
+
$color,
|
|
159
|
+
$color
|
|
160
|
+
);
|
|
161
|
+
} @else {
|
|
162
|
+
@include fill(
|
|
163
|
+
if($kendo-enable-color-system, k-color( on-#{$name} ), k-contrast-legacy( $color )),
|
|
164
|
+
$color,
|
|
165
|
+
$color
|
|
166
|
+
);
|
|
167
|
+
}
|
|
160
168
|
}
|
|
161
169
|
|
|
162
170
|
// Focus state
|
|
163
171
|
&:focus,
|
|
164
172
|
&.k-focus {
|
|
165
173
|
@if $kendo-outline-button-shadow {
|
|
166
|
-
@
|
|
174
|
+
@if $name == "base" {
|
|
175
|
+
@include focus-indicator( 0 0 $kendo-outline-button-shadow-blur $kendo-outline-button-shadow-spread if($kendo-enable-color-system, rgba( k-color( on-app-surface, true ), $kendo-outline-button-shadow-opacity ), rgba( $color, $kendo-outline-button-shadow-opacity )), true, true );
|
|
176
|
+
} @else {
|
|
177
|
+
@include focus-indicator( 0 0 $kendo-outline-button-shadow-blur $kendo-outline-button-shadow-spread if($kendo-enable-color-system, rgba( k-color( $name, true ), $kendo-outline-button-shadow-opacity ), rgba( $color, $kendo-outline-button-shadow-opacity )), true, true );
|
|
178
|
+
}
|
|
167
179
|
}
|
|
168
180
|
}
|
|
169
181
|
|
|
170
182
|
// Active state
|
|
171
183
|
&:active,
|
|
172
184
|
&.k-active {
|
|
173
|
-
@
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
185
|
+
@if $name == "base" {
|
|
186
|
+
@include fill(
|
|
187
|
+
if($kendo-enable-color-system, $kendo-base-bg, k-contrast-legacy( $color )),
|
|
188
|
+
$color,
|
|
189
|
+
$color
|
|
190
|
+
);
|
|
191
|
+
} @else {
|
|
192
|
+
@include fill(
|
|
193
|
+
if($kendo-enable-color-system, k-color( on-#{$name} ), k-contrast-legacy( $color )),
|
|
194
|
+
$color,
|
|
195
|
+
$color
|
|
196
|
+
);
|
|
197
|
+
}
|
|
178
198
|
}
|
|
179
199
|
|
|
180
200
|
// Selected
|
|
181
201
|
&.k-selected {
|
|
182
|
-
@
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
202
|
+
@if $name == "base" {
|
|
203
|
+
@include fill(
|
|
204
|
+
if($kendo-enable-color-system, $kendo-base-bg, k-contrast-legacy( $color )),
|
|
205
|
+
$color,
|
|
206
|
+
$color
|
|
207
|
+
);
|
|
208
|
+
} @else {
|
|
209
|
+
@include fill(
|
|
210
|
+
if($kendo-enable-color-system, k-color( on-#{$name} ), k-contrast-legacy( $color )),
|
|
211
|
+
$color,
|
|
212
|
+
$color
|
|
213
|
+
);
|
|
214
|
+
}
|
|
187
215
|
}
|
|
188
216
|
|
|
189
217
|
// Disabled state
|
|
@@ -217,26 +245,42 @@
|
|
|
217
245
|
// Hover
|
|
218
246
|
&:hover,
|
|
219
247
|
&.k-hover {
|
|
220
|
-
|
|
248
|
+
@if $name == "base" {
|
|
249
|
+
color: if($kendo-enable-color-system, $kendo-base-text, k-try-shade( $color, 2 ));
|
|
250
|
+
} @else {
|
|
251
|
+
color: if($kendo-enable-color-system, k-color( #{$name}-hover ), k-try-shade( $color, 2 ));
|
|
252
|
+
}
|
|
221
253
|
}
|
|
222
254
|
|
|
223
255
|
// Focus
|
|
224
256
|
&:focus,
|
|
225
257
|
&.k-focus {
|
|
226
258
|
@if ( $kendo-link-button-shadow ) {
|
|
227
|
-
@
|
|
259
|
+
@if $name == "base" {
|
|
260
|
+
@include focus-indicator( 0 0 $kendo-link-button-shadow-blur $kendo-link-button-shadow-spread if($kendo-enable-color-system, rgba( k-color( on-app-surface, true ), $kendo-link-button-shadow-opacity ), rgba( $color, $kendo-link-button-shadow-opacity )), true, true );
|
|
261
|
+
} @else {
|
|
262
|
+
@include focus-indicator( 0 0 $kendo-link-button-shadow-blur $kendo-link-button-shadow-spread if($kendo-enable-color-system, rgba( k-color( $name, true ), $kendo-link-button-shadow-opacity ), rgba( $color, $kendo-link-button-shadow-opacity )), true, true );
|
|
263
|
+
}
|
|
228
264
|
}
|
|
229
265
|
}
|
|
230
266
|
|
|
231
267
|
// Active
|
|
232
268
|
&:active,
|
|
233
269
|
&.k-active {
|
|
234
|
-
|
|
270
|
+
@if $name == "base" {
|
|
271
|
+
color: if($kendo-enable-color-system, $kendo-base-text, k-try-shade( $color, 2 ));
|
|
272
|
+
} @else {
|
|
273
|
+
color: if($kendo-enable-color-system, k-color( #{$name}-active ), k-try-shade( $color, 2 ));
|
|
274
|
+
}
|
|
235
275
|
}
|
|
236
276
|
|
|
237
277
|
// Selected
|
|
238
278
|
&.k-selected {
|
|
239
|
-
|
|
279
|
+
@if $name == "base" {
|
|
280
|
+
color: if($kendo-enable-color-system, $kendo-base-text, k-try-shade( $color, 2 ));
|
|
281
|
+
} @else {
|
|
282
|
+
color: if($kendo-enable-color-system, k-color( #{$name}-active ), k-try-shade( $color, 2 ));
|
|
283
|
+
}
|
|
240
284
|
}
|
|
241
285
|
|
|
242
286
|
// Disabled state
|
|
@@ -281,4 +325,4 @@
|
|
|
281
325
|
|
|
282
326
|
@mixin kendo-button--theme() {
|
|
283
327
|
@include kendo-button--theme-base();
|
|
284
|
-
}
|
|
328
|
+
}
|
|
@@ -105,28 +105,28 @@ $kendo-button-sizes: (
|
|
|
105
105
|
/// @group button
|
|
106
106
|
$kendo-button-theme-colors: k-map-merge(
|
|
107
107
|
$kendo-theme-colors,
|
|
108
|
-
( "base": #f5f5f5 )
|
|
108
|
+
( "base": if($kendo-enable-color-system, k-color( base ), #f5f5f5) )
|
|
109
109
|
) !default;
|
|
110
110
|
|
|
111
111
|
/// The base background of the Button.
|
|
112
112
|
/// @group button
|
|
113
|
-
$kendo-button-bg: #f5f5f5 !default;
|
|
113
|
+
$kendo-button-bg: if($kendo-enable-color-system, k-color( base ), #f5f5f5) !default;
|
|
114
114
|
/// The base text color of the Button.
|
|
115
115
|
/// @group button
|
|
116
|
-
$kendo-button-text: #424242 !default;
|
|
116
|
+
$kendo-button-text: if($kendo-enable-color-system, k-color( on-base ), #424242) !default;
|
|
117
117
|
/// The base border color of the Button.
|
|
118
118
|
/// @group button
|
|
119
|
-
$kendo-button-border: rgba( black, .08 ) !default;
|
|
119
|
+
$kendo-button-border: if($kendo-enable-color-system, k-color( border ), rgba( black, .08 )) !default;
|
|
120
120
|
/// The base background gradient of the Button.
|
|
121
121
|
/// @group button
|
|
122
|
-
$kendo-button-gradient: rgba( black, 0 ), rgba( black, .02 ) !default;
|
|
122
|
+
$kendo-button-gradient: if($kendo-enable-color-system, null, (rgba( black, 0 ), rgba( black, .02 ))) !default;
|
|
123
123
|
/// The base shadow of the Button.
|
|
124
124
|
/// @group button
|
|
125
125
|
$kendo-button-shadow: null !default;
|
|
126
126
|
|
|
127
127
|
/// The base background of the hovered Button.
|
|
128
128
|
/// @group button
|
|
129
|
-
$kendo-button-hover-bg: k-try-shade( $kendo-button-bg, .5 ) !default;
|
|
129
|
+
$kendo-button-hover-bg: if($kendo-enable-color-system, k-color( base-hover ), k-try-shade( $kendo-button-bg, .5 )) !default;
|
|
130
130
|
/// The base text color of the hovered Button.
|
|
131
131
|
/// @group button
|
|
132
132
|
$kendo-button-hover-text: null !default;
|
|
@@ -142,7 +142,7 @@ $kendo-button-hover-shadow: null !default;
|
|
|
142
142
|
|
|
143
143
|
/// The base background color of the active Button.
|
|
144
144
|
/// @group button
|
|
145
|
-
$kendo-button-active-bg: k-try-shade( $kendo-button-bg, 1.5 ) !default;
|
|
145
|
+
$kendo-button-active-bg: if($kendo-enable-color-system, k-color( base-active ), k-try-shade( $kendo-button-bg, 1.5 )) !default;
|
|
146
146
|
/// The base text color of the active Button.
|
|
147
147
|
/// @group button
|
|
148
148
|
$kendo-button-active-text: null !default;
|
|
@@ -161,7 +161,7 @@ $kendo-button-active-shadow: null !default;
|
|
|
161
161
|
$kendo-button-selected-bg: $kendo-color-primary !default;
|
|
162
162
|
/// The text color of the selected Button.
|
|
163
163
|
/// @group button
|
|
164
|
-
$kendo-button-selected-text: k-contrast-legacy( $kendo-button-selected-bg ) !default;
|
|
164
|
+
$kendo-button-selected-text: if($kendo-enable-color-system, k-color( on-primary ), k-contrast-legacy( $kendo-button-selected-bg )) !default;
|
|
165
165
|
/// The border color of the selected Button.
|
|
166
166
|
/// @group button
|
|
167
167
|
$kendo-button-selected-border: $kendo-button-selected-bg !default;
|
|
@@ -186,7 +186,7 @@ $kendo-button-focus-border: null !default;
|
|
|
186
186
|
$kendo-button-focus-gradient: null !default;
|
|
187
187
|
/// The base shadow of the focused Button.
|
|
188
188
|
/// @group button
|
|
189
|
-
$kendo-button-focus-shadow: 0 0 0 2px rgba( $kendo-button-border, .08 ) !default;
|
|
189
|
+
$kendo-button-focus-shadow: 0 0 0 2px if($kendo-enable-color-system, rgba( k-color( on-app-surface, true ), .08), rgba( $kendo-button-border, .08 )) !default;
|
|
190
190
|
|
|
191
191
|
/// The base background of the disabled Button.
|
|
192
192
|
/// @group button
|
|
@@ -205,7 +205,7 @@ $kendo-button-disabled-gradient: null !default;
|
|
|
205
205
|
$kendo-button-disabled-shadow: null !default;
|
|
206
206
|
|
|
207
207
|
// Solid Button
|
|
208
|
-
$kendo-solid-button-gradient: rgba( black, 0 ), rgba( black, .02 ) !default;
|
|
208
|
+
$kendo-solid-button-gradient: if($kendo-enable-color-system, null, (rgba( black, 0 ), rgba( black, .02 ))) !default;
|
|
209
209
|
$kendo-solid-button-shade-function: "k-try-shade" !default;
|
|
210
210
|
$kendo-solid-button-shade-text-amount: 0 !default;
|
|
211
211
|
$kendo-solid-button-shade-bg-amount: 0 !default;
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
.k-calendar { // stylelint-disable-line
|
|
160
160
|
|
|
161
161
|
$kendo-calendar-range-gap: 1px !default;
|
|
162
|
-
$kendo-calendar-range-bg: rgba( $kendo-calendar-cell-selected-bg, .25 );
|
|
162
|
+
$kendo-calendar-range-bg: if($kendo-enable-color-system, rgba( k-color( primary, true ), .25 ), rgba( $kendo-calendar-cell-selected-bg, .25 ));
|
|
163
163
|
$kendo-calendar-range-split-size: 5px !default;
|
|
164
164
|
|
|
165
165
|
.k-range-start,
|
package/scss/card/_layout.scss
CHANGED
package/scss/card/_theme.scss
CHANGED
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
// Card theme colors
|
|
65
65
|
@each $name, $color in $kendo-theme-colors {
|
|
66
66
|
.k-card-#{$name} {
|
|
67
|
-
background-color: k-color-tint($color, 10);
|
|
68
|
-
color: k-color-shade($color, 6);
|
|
69
|
-
border-color: k-color-tint($color, 9);
|
|
67
|
+
background-color: if($kendo-enable-color-system, k-color( #{$name}-subtle ), k-color-tint($color, 10));
|
|
68
|
+
color: if($kendo-enable-color-system, k-color( #{$name}-on-subtle ), k-color-shade($color, 6));
|
|
69
|
+
border-color: if($kendo-enable-color-system, k-color( #{$name}-emphasis ), k-color-tint($color, 9));
|
|
70
70
|
|
|
71
71
|
.k-card-subtitle {
|
|
72
72
|
color: inherit;
|
|
@@ -57,7 +57,7 @@ $kendo-chat-bubble-hover-shadow: k-elevation(2) !default;
|
|
|
57
57
|
$kendo-chat-bubble-selected-shadow: k-elevation(3) !default;
|
|
58
58
|
|
|
59
59
|
$kendo-chat-alt-bubble-bg: $kendo-color-primary !default;
|
|
60
|
-
$kendo-chat-alt-bubble-text: k-contrast-legacy( $kendo-chat-alt-bubble-bg ) !default;
|
|
60
|
+
$kendo-chat-alt-bubble-text: if($kendo-enable-color-system, k-color( on-primary ), k-contrast-legacy( $kendo-chat-alt-bubble-bg )) !default;
|
|
61
61
|
$kendo-chat-alt-bubble-border: $kendo-chat-alt-bubble-bg !default;
|
|
62
62
|
$kendo-chat-alt-bubble-shadow: k-elevation(1) !default;
|
|
63
63
|
$kendo-chat-alt-bubble-hover-shadow: k-elevation(2) !default;
|
|
@@ -81,7 +81,7 @@ $kendo-checkbox-hover-border: null !default;
|
|
|
81
81
|
$kendo-checkbox-checked-bg: $kendo-color-primary !default;
|
|
82
82
|
/// The text color of the checked CheckBox.
|
|
83
83
|
/// @group checkbox
|
|
84
|
-
$kendo-checkbox-checked-text: k-contrast-legacy( $kendo-checkbox-checked-bg ) !default;
|
|
84
|
+
$kendo-checkbox-checked-text: if($kendo-enable-color-system, k-color( on-primary ), k-contrast-legacy( $kendo-checkbox-checked-bg )) !default;
|
|
85
85
|
/// The border color of the checked CheckBox.
|
|
86
86
|
/// @group checkbox
|
|
87
87
|
$kendo-checkbox-checked-border: $kendo-checkbox-checked-bg !default;
|
|
@@ -107,7 +107,7 @@ $kendo-checkbox-focus-shadow: 0 0 0 2px rgba(0, 0, 0, .06) !default;
|
|
|
107
107
|
$kendo-checkbox-focus-checked-border: null !default;
|
|
108
108
|
/// The box shadow of the focused and checked CheckBox.
|
|
109
109
|
/// @group checkbox
|
|
110
|
-
$kendo-checkbox-focus-checked-shadow: 0 0 0 2px rgba( $kendo-color-primary, .3 ) !default;
|
|
110
|
+
$kendo-checkbox-focus-checked-shadow: 0 0 0 2px if($kendo-enable-color-system, rgba( k-color( primary, true ), .3 ), rgba( $kendo-color-primary, .3 )) !default;
|
|
111
111
|
|
|
112
112
|
/// The background color of the disabled CheckBox.
|
|
113
113
|
/// @group checkbox
|
package/scss/chip/_theme.scss
CHANGED
|
@@ -28,24 +28,24 @@
|
|
|
28
28
|
}
|
|
29
29
|
} @else {
|
|
30
30
|
@include fill(
|
|
31
|
-
k-try-shade( $color, 65% ),
|
|
32
|
-
k-try-tint( $color, 80% ),
|
|
33
|
-
k-try-tint( $color, 25% ),
|
|
31
|
+
if($kendo-enable-color-system, k-color( #{$name}-on-subtle ), k-try-shade( $color, 65% )),
|
|
32
|
+
if($kendo-enable-color-system, k-color( #{$name}-subtle ), k-try-tint( $color, 80% )),
|
|
33
|
+
if($kendo-enable-color-system, k-color( #{$name}-emphasis ), k-try-tint( $color, 25% )),
|
|
34
34
|
$kendo-chip-solid-gradient
|
|
35
35
|
);
|
|
36
36
|
|
|
37
37
|
&:focus,
|
|
38
38
|
&.k-focus {
|
|
39
|
-
@include focus-indicator( 0 0 0 2px rgba( $color, .16 ) );
|
|
39
|
+
@include focus-indicator( 0 0 0 2px if($kendo-enable-color-system, rgba( k-color( $name, true ), .16 ), rgba( $color, .16 )) );
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
&:hover,
|
|
43
43
|
&.k-hover {
|
|
44
|
-
@include fill( $bg: k-try-tint($color, 65% ) );
|
|
44
|
+
@include fill( $bg: if($kendo-enable-color-system, k-color( #{$name}-subtle-hover ), k-try-tint($color, 65% )) );
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
&.k-selected {
|
|
48
|
-
@include fill( $bg: k-try-tint( $color, 50% ) );
|
|
48
|
+
@include fill( $bg: if($kendo-enable-color-system, k-color( #{$name}-subtle-active ), k-try-tint( $color, 50% )) );
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
@@ -83,54 +83,56 @@
|
|
|
83
83
|
}
|
|
84
84
|
} @else if ($name == "warning") {
|
|
85
85
|
@include fill(
|
|
86
|
-
if( $kendo-is-dark-theme, k-color-tint($color, 25%), $kendo-chip-outline-text),
|
|
87
|
-
if( $kendo-is-dark-theme, $kendo-color-black, $kendo-color-white ),
|
|
88
|
-
if( $kendo-is-dark-theme, k-color-tint($color, 25%), $color)
|
|
86
|
+
if($kendo-enable-color-system, $kendo-chip-outline-text, if( $kendo-is-dark-theme, k-color-tint($color, 25%), $kendo-chip-outline-text)),
|
|
87
|
+
if($kendo-enable-color-system, k-color( app-surface ), if( $kendo-is-dark-theme, $kendo-color-black, $kendo-color-white )),
|
|
88
|
+
if($kendo-enable-color-system, $color, if( $kendo-is-dark-theme, k-color-tint($color, 25%), $color))
|
|
89
89
|
);
|
|
90
90
|
|
|
91
91
|
&:focus,
|
|
92
92
|
&.k-focus {
|
|
93
|
-
@include focus-indicator( 0 0 0 2px if( $kendo-is-dark-theme, rgba( k-color-tint( $color, 50% ), .32 ), rgba( $color, .16 )) );
|
|
93
|
+
@include focus-indicator( 0 0 0 2px if($kendo-enable-color-system, rgba( k-color( $name, true ), .16 ), if( $kendo-is-dark-theme, rgba( k-color-tint( $color, 50% ), .32 ), rgba( $color, .16 ))) );
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
&:hover,
|
|
97
97
|
&.k-hover {
|
|
98
98
|
@include fill(
|
|
99
|
-
$color: if( $kendo-is-dark-theme, k-contrast-legacy( $color ), k-try-shade( $color, 80% ) )
|
|
100
|
-
$bg: if( $kendo-is-dark-theme, k-color-tint($color, 25%), $color)
|
|
99
|
+
$color: if($kendo-enable-color-system, k-color( on-#{$name} ), if( $kendo-is-dark-theme, k-contrast-legacy( $color ), k-try-shade( $color, 80% ) )),
|
|
100
|
+
$bg: if($kendo-enable-color-system, $color, if( $kendo-is-dark-theme, k-color-tint($color, 25%), $color))
|
|
101
101
|
);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
&.k-selected {
|
|
105
105
|
@include fill(
|
|
106
|
-
$color: if( $kendo-is-dark-theme, k-contrast-legacy( $color ), k-try-shade( $color, 80% ) )
|
|
107
|
-
$bg: if( $kendo-is-dark-theme, k-color-tint($color, 25%), $color)
|
|
106
|
+
$color: if($kendo-enable-color-system, k-color( on-#{$name} ), if( $kendo-is-dark-theme, k-contrast-legacy( $color ), k-try-shade( $color, 80% ) )),
|
|
107
|
+
$bg: if($kendo-enable-color-system, $color, if( $kendo-is-dark-theme, k-color-tint($color, 25%), $color))
|
|
108
108
|
);
|
|
109
109
|
}
|
|
110
110
|
} @else {
|
|
111
111
|
@include fill(
|
|
112
|
-
k-try-shade( $color, 25% ),
|
|
113
|
-
if( $kendo-is-dark-theme, $kendo-color-black, $kendo-color-white ),
|
|
114
|
-
k-try-shade( $color, 25% )
|
|
112
|
+
if($kendo-enable-color-system, k-color( #{$name}-on-surface ), k-try-shade( $color, 25% )),
|
|
113
|
+
if($kendo-enable-color-system, k-color( app-surface ), if( $kendo-is-dark-theme, $kendo-color-black, $kendo-color-white )),
|
|
114
|
+
if($kendo-enable-color-system, k-color( #{$name}-on-surface ), k-try-shade( $color, 25% ))
|
|
115
115
|
);
|
|
116
116
|
|
|
117
117
|
&:focus,
|
|
118
118
|
&.k-focus {
|
|
119
|
-
@include focus-indicator( 0 0 0 2px if( $kendo-is-dark-theme, rgba( k-color-tint( $color, 50% ), .32 ), rgba( $color, .16 )) );
|
|
119
|
+
@include focus-indicator( 0 0 0 2px if($kendo-enable-color-system, rgba( k-color( $name, true ), .16 ), if( $kendo-is-dark-theme, rgba( k-color-tint( $color, 50% ), .32 ), rgba( $color, .16 ))) );
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
&:hover,
|
|
123
123
|
&.k-hover {
|
|
124
124
|
@include fill(
|
|
125
|
-
$color
|
|
126
|
-
$
|
|
125
|
+
if($kendo-enable-color-system, k-color( on-#{$name} ), k-contrast-legacy( k-try-shade( $color, 25% ) )),
|
|
126
|
+
if($kendo-enable-color-system, k-color( #{$name}-hover ), k-try-shade( $color, 25% )),
|
|
127
|
+
if($kendo-enable-color-system, k-color( #{$name}-hover ), k-try-shade( $color, 25% ))
|
|
127
128
|
);
|
|
128
129
|
}
|
|
129
130
|
|
|
130
131
|
&.k-selected {
|
|
131
132
|
@include fill(
|
|
132
|
-
$color
|
|
133
|
-
$
|
|
133
|
+
if($kendo-enable-color-system, k-color( on-#{$name} ), k-contrast-legacy( k-try-shade( $color, 25% ) )),
|
|
134
|
+
if($kendo-enable-color-system, k-color( #{$name}-active ), k-try-shade( $color, 25% )),
|
|
135
|
+
if($kendo-enable-color-system, k-color( #{$name}-active ), k-try-shade( $color, 25% ))
|
|
134
136
|
);
|
|
135
137
|
}
|
|
136
138
|
}
|
|
@@ -92,7 +92,7 @@ $kendo-chip-sizes: (
|
|
|
92
92
|
|
|
93
93
|
/// The base background of the Chip.
|
|
94
94
|
/// @group chip
|
|
95
|
-
$kendo-chip-base-bg: $kendo-button-bg !default;
|
|
95
|
+
$kendo-chip-base-bg: if($kendo-enable-color-system, k-color( base-subtle ), $kendo-button-bg) !default;
|
|
96
96
|
|
|
97
97
|
/// The theme colors map for the Chip.
|
|
98
98
|
/// @group chip
|
|
@@ -115,7 +115,7 @@ $kendo-chip-solid-text: $kendo-button-text !default;
|
|
|
115
115
|
$kendo-chip-solid-border: $kendo-button-border !default;
|
|
116
116
|
/// The base shadow of the solid Chip.
|
|
117
117
|
/// @group chip
|
|
118
|
-
$kendo-chip-solid-shadow: 0 0 0 2px if( $kendo-is-dark-theme, rgba( $kendo-color-white, .16 ), rgba( $kendo-color-black, .08 ) ) !default;
|
|
118
|
+
$kendo-chip-solid-shadow: 0 0 0 2px if($kendo-enable-color-system, rgba( k-color( on-app-surface, true ), .08 ), if( $kendo-is-dark-theme, rgba( $kendo-color-white, .16 ), rgba( $kendo-color-black, .08 ) )) !default;
|
|
119
119
|
/// The base gradient of the solid Chip.
|
|
120
120
|
/// @group chip
|
|
121
121
|
$kendo-chip-solid-gradient: $kendo-button-gradient !default;
|
|
@@ -129,7 +129,7 @@ $kendo-chip-solid-focus-text: null !default;
|
|
|
129
129
|
|
|
130
130
|
/// The base background color of the hovered solid Chip.
|
|
131
131
|
/// @group chip
|
|
132
|
-
$kendo-chip-solid-hover-bg: $kendo-button-hover-bg !default;
|
|
132
|
+
$kendo-chip-solid-hover-bg: if($kendo-enable-color-system, k-color( base-subtle-hover ), $kendo-button-hover-bg) !default;
|
|
133
133
|
/// The base text color of the hovered solid Chip.
|
|
134
134
|
/// @group chip
|
|
135
135
|
$kendo-chip-solid-hover-text: null !default;
|
|
@@ -152,14 +152,14 @@ $kendo-chip-outline-text: $kendo-chip-solid-text !default;
|
|
|
152
152
|
$kendo-chip-outline-border: $kendo-chip-outline-text !default;
|
|
153
153
|
/// The base shadow of the outline Chip.
|
|
154
154
|
/// @group chip
|
|
155
|
-
$kendo-chip-outline-shadow: 0 0 0 2px if( $kendo-is-dark-theme, rgba( $kendo-color-white, .16 ), rgba( $kendo-color-black, .08 ) ) !default;
|
|
155
|
+
$kendo-chip-outline-shadow: 0 0 0 2px if($kendo-enable-color-system, rgba( k-color( on-app-surface, true ), .08 ), if( $kendo-is-dark-theme, rgba( $kendo-color-white, .16 ), rgba( $kendo-color-black, .08 ) )) !default;
|
|
156
156
|
|
|
157
157
|
/// The base background color of the hovered outline Chip.
|
|
158
158
|
/// @group chip
|
|
159
159
|
$kendo-chip-outline-hover-bg: $kendo-chip-outline-text !default;
|
|
160
160
|
/// The base text color of the hovered outline Chip.
|
|
161
161
|
/// @group chip
|
|
162
|
-
$kendo-chip-outline-hover-text: k-contrast-legacy( $kendo-chip-outline-hover-bg ) !default;
|
|
162
|
+
$kendo-chip-outline-hover-text: if($kendo-enable-color-system, k-color( base ), k-contrast-legacy( $kendo-chip-outline-hover-bg )) !default;
|
|
163
163
|
|
|
164
164
|
/// The base background color of the selected outline Chip.
|
|
165
165
|
/// @group chip
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
@include exports( "common/indicators/current-time" ) {
|
|
2
2
|
|
|
3
|
-
$kendo-current-time-width: 1px !default;
|
|
4
3
|
$kendo-current-time-color: #ff0000 !default;
|
|
5
4
|
|
|
6
5
|
// Layout
|
|
7
6
|
.k-current-time {
|
|
8
|
-
width: $kendo-current-time-width;
|
|
9
7
|
position: absolute;
|
|
10
8
|
|
|
11
9
|
&.k-current-time-arrow-left,
|
package/scss/core/_index.scss
CHANGED
|
@@ -3,8 +3,14 @@ $wcag-min-contrast-ratio: 4.5 !default;
|
|
|
3
3
|
// Variables
|
|
4
4
|
@import "../_variables.scss";
|
|
5
5
|
|
|
6
|
+
// Color System
|
|
7
|
+
@import "./color-system/_swatch.scss";
|
|
8
|
+
|
|
6
9
|
@import "@progress/kendo-theme-core/scss/index.import.scss";
|
|
7
10
|
|
|
11
|
+
// Backward compatibility
|
|
12
|
+
@import "./color-system/_swatch-legacy.scss";
|
|
13
|
+
|
|
8
14
|
// Expose
|
|
9
15
|
@include exports("kendo-core-styles") {
|
|
10
16
|
@include kendo-core--styles();
|