@progress/kendo-theme-core 7.1.0-dev.7 → 7.1.0-dev.9
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 +2 -11
- package/dist/all.scss +336 -130
- package/dist/meta/sassdoc-data.json +263 -42
- package/dist/meta/sassdoc-raw-data.json +378 -195
- package/dist/meta/variables.json +65 -69
- package/package.json +2 -2
- package/scss/color-system/_constants.scss +49 -0
- package/scss/color-system/_functions.import.scss +41 -4
- package/scss/color-system/_swatch-legacy.scss +77 -0
- package/scss/color-system/_swatch.scss +203 -0
- package/scss/color-system/index.import.scss +3 -1
- package/scss/functions/_color-manipulation.import.scss +23 -0
- package/scss/styles/_colors.scss +5 -0
- package/scss/styles/index.import.scss +2 -1
- package/scss/color-system/_variables.scss +0 -198
package/dist/all.css
CHANGED
|
@@ -265,16 +265,13 @@ kendo-sortable {
|
|
|
265
265
|
text-indent: -4000px;
|
|
266
266
|
text-align: center;
|
|
267
267
|
position: absolute;
|
|
268
|
-
color: currentColor;
|
|
269
268
|
}
|
|
270
269
|
|
|
271
270
|
.k-loading-image {
|
|
272
271
|
z-index: 2;
|
|
273
|
-
color: currentColor;
|
|
274
272
|
}
|
|
275
273
|
|
|
276
274
|
.k-loading-color {
|
|
277
|
-
background-color: #ffffff;
|
|
278
275
|
opacity: 0.3;
|
|
279
276
|
}
|
|
280
277
|
|
|
@@ -290,7 +287,6 @@ kendo-sortable {
|
|
|
290
287
|
position: relative;
|
|
291
288
|
background-color: transparent;
|
|
292
289
|
box-sizing: border-box;
|
|
293
|
-
color: currentColor;
|
|
294
290
|
}
|
|
295
291
|
|
|
296
292
|
.k-i-loading::before, .k-i-loading::after {
|
|
@@ -371,12 +367,7 @@ kendo-sortable {
|
|
|
371
367
|
}
|
|
372
368
|
|
|
373
369
|
.k-marquee-color {
|
|
374
|
-
color: var(--kendo-
|
|
375
|
-
|
|
376
|
-
border-color: var(--kendo-primary-100, var(--kendo-neutral-130, inherit));
|
|
370
|
+
background-color: var(--kendo-primary-60, );
|
|
371
|
+
border-color: var(--kendo-primary-100, );
|
|
377
372
|
opacity: .6;
|
|
378
373
|
}
|
|
379
|
-
|
|
380
|
-
.k-marquee-text {
|
|
381
|
-
color: var(--kendo-neutral-160, inherit);
|
|
382
|
-
}
|
package/dist/all.scss
CHANGED
|
@@ -706,6 +706,28 @@ $kendo-color-level-step: 8% !default;
|
|
|
706
706
|
@return k-color-mix( rgba( $color1, 1 ), rgba( $color2, 1 ), $weight );
|
|
707
707
|
}
|
|
708
708
|
|
|
709
|
+
/// Generates all color variations of a given main color
|
|
710
|
+
/// @param {String} $name - The name of the main color
|
|
711
|
+
/// @param {Color} $level - The color value to be assigned to the main color
|
|
712
|
+
/// @return {Map} - A map with the generated keys and values
|
|
713
|
+
///
|
|
714
|
+
/// @group color-system
|
|
715
|
+
@function k-generate-colors( $name, $color ) {
|
|
716
|
+
$_variations: (
|
|
717
|
+
#{$name}-subtle: k-try-tint( $color, 80% ),
|
|
718
|
+
#{$name}-subtle-hover: k-try-tint( $color, 65% ),
|
|
719
|
+
#{$name}-subtle-active: k-try-tint( $color, 50% ),
|
|
720
|
+
#{$name}: $color,
|
|
721
|
+
#{$name}-hover: k-try-shade( $color, 0.5 ),
|
|
722
|
+
#{$name}-active: k-try-shade( $color, 1.5 ),
|
|
723
|
+
#{$name}-emphasis: k-try-tint( $color, 4.5 ),
|
|
724
|
+
#{$name}-on-subtle: k-try-shade( $color, 8 ),
|
|
725
|
+
on-#{$name}: k-contrast-legacy( $color ),
|
|
726
|
+
#{$name}-on-surface: $color,
|
|
727
|
+
);
|
|
728
|
+
|
|
729
|
+
@return $_variations;
|
|
730
|
+
}
|
|
709
731
|
// #endregion
|
|
710
732
|
// #region @import "./_custom-properties.import.scss"; -> scss/functions/_custom-properties.import.scss
|
|
711
733
|
@function k-var( $prefix: kendo-, $var: null, $fallback: null ) {
|
|
@@ -2803,6 +2825,31 @@ $kendo-palettes: (
|
|
|
2803
2825
|
@return var( --#{$prefix}#{$name}, #{$fallback} );
|
|
2804
2826
|
}
|
|
2805
2827
|
|
|
2828
|
+
@function k-get-swatch-color( $name, $color ) {
|
|
2829
|
+
$map: (
|
|
2830
|
+
app-surface: k-color( app-surface ),
|
|
2831
|
+
on-app-surface: k-color( on-app-surface ),
|
|
2832
|
+
subtle: k-color( subtle ),
|
|
2833
|
+
surface: k-color( surface ),
|
|
2834
|
+
surface-alt: k-color( surface-alt ),
|
|
2835
|
+
border: k-color( border ),
|
|
2836
|
+
border-alt: k-color( border-alt ),
|
|
2837
|
+
color-subtle: k-color( #{$color}-subtle ),
|
|
2838
|
+
color-subtle-hover: k-color( #{$color}-subtle-hover ),
|
|
2839
|
+
color-subtle-active: k-color( #{$color}-subtle-active ),
|
|
2840
|
+
color: k-color( #{$color} ),
|
|
2841
|
+
color-hover: k-color( #{$color}-hover ),
|
|
2842
|
+
color-active: k-color( #{$color}-active ),
|
|
2843
|
+
color-emphasis: k-color( #{$color}-emphasis ),
|
|
2844
|
+
color-on-subtle: k-color( #{$color}-on-subtle ),
|
|
2845
|
+
on-color: k-color( on-#{$color} ),
|
|
2846
|
+
color-on-surface: k-color( #{$color}-on-surface ),
|
|
2847
|
+
on-color-disabled: rgba( k-color( on-#{$color}, true ), .46)
|
|
2848
|
+
);
|
|
2849
|
+
|
|
2850
|
+
@return if( k-map-has-key( $map, $name ), k-map-get( $map, $name ), $name );
|
|
2851
|
+
};
|
|
2852
|
+
|
|
2806
2853
|
@function k-generate-theme-variation( $theme-color, $source-palette-name, $mapping ) {
|
|
2807
2854
|
$temp: ( );
|
|
2808
2855
|
|
|
@@ -2814,9 +2861,9 @@ $kendo-palettes: (
|
|
|
2814
2861
|
$border-prop: k-list-nth($indices, 3);
|
|
2815
2862
|
|
|
2816
2863
|
// Take value from the palette only if it is a number
|
|
2817
|
-
$bg: if( k-meta-type-of($bg-prop) == number, k-get-theme-color-var( #{$source-palette-name}-#{$bg-prop} ), $bg-prop );
|
|
2818
|
-
$text: if( k-meta-type-of($text-prop) == number, k-get-theme-color-var( #{$source-palette-name}-#{$text-prop} ), $text-prop );
|
|
2819
|
-
$border: if( k-meta-type-of($border-prop) == number, k-get-theme-color-var( #{$source-palette-name}-#{$border-prop} ), $border-prop );
|
|
2864
|
+
$bg: if($kendo-enable-color-system, k-get-swatch-color( $bg-prop, $source-palette-name ), if( k-meta-type-of($bg-prop) == number, k-get-theme-color-var( #{$source-palette-name}-#{$bg-prop} ), $bg-prop ));
|
|
2865
|
+
$text: if($kendo-enable-color-system, k-get-swatch-color( $text-prop, $source-palette-name ), if( k-meta-type-of($text-prop) == number, k-get-theme-color-var( #{$source-palette-name}-#{$text-prop} ), $text-prop ));
|
|
2866
|
+
$border: if($kendo-enable-color-system, k-get-swatch-color( $border-prop, $source-palette-name ), if( k-meta-type-of($border-prop) == number, k-get-theme-color-var( #{$source-palette-name}-#{$border-prop} ), $border-prop ));
|
|
2820
2867
|
|
|
2821
2868
|
|
|
2822
2869
|
$temp: k-map-deep-merge( $temp, (
|
|
@@ -2828,7 +2875,7 @@ $kendo-palettes: (
|
|
|
2828
2875
|
// Add outline if provided in the map
|
|
2829
2876
|
@if ( k-list-length($indices) > 3 ) {
|
|
2830
2877
|
$outline-prop: k-list-nth($indices, 4);
|
|
2831
|
-
$outline: if( k-meta-type-of($outline-prop) == number, k-get-theme-color-var( #{$source-palette-name}-#{$outline-prop} ), $outline-prop );
|
|
2878
|
+
$outline: if($kendo-enable-color-system, k-get-swatch-color( $outline-prop, $source-palette-name ), if( k-meta-type-of($outline-prop) == number, k-get-theme-color-var( #{$source-palette-name}-#{$outline-prop} ), $outline-prop ));
|
|
2832
2879
|
|
|
2833
2880
|
$temp: k-map-deep-merge( $temp, (
|
|
2834
2881
|
#{$prefix}outline: $outline
|
|
@@ -2855,6 +2902,18 @@ $kendo-palettes: (
|
|
|
2855
2902
|
@return $result;
|
|
2856
2903
|
}
|
|
2857
2904
|
|
|
2905
|
+
@function k-hex-to-rgb( $color ) {
|
|
2906
|
+
@if($color) {
|
|
2907
|
+
$r: k-color-red($color);
|
|
2908
|
+
$g: k-color-green($color);
|
|
2909
|
+
$b: k-color-blue($color);
|
|
2910
|
+
|
|
2911
|
+
@return $r, $g, $b;
|
|
2912
|
+
} @else {
|
|
2913
|
+
@return null;
|
|
2914
|
+
}
|
|
2915
|
+
}
|
|
2916
|
+
|
|
2858
2917
|
// #endregion
|
|
2859
2918
|
// #region @import "./_mixins.import.scss"; -> scss/color-system/_mixins.import.scss
|
|
2860
2919
|
@mixin k-css-vars($map) {
|
|
@@ -2866,7 +2925,215 @@ $kendo-palettes: (
|
|
|
2866
2925
|
}
|
|
2867
2926
|
|
|
2868
2927
|
// #endregion
|
|
2869
|
-
// #region @import "./
|
|
2928
|
+
// #region @import "./_swatch.scss"; -> scss/color-system/_swatch.scss
|
|
2929
|
+
// #region @import "./_functions.import.scss"; -> scss/color-system/_functions.import.scss
|
|
2930
|
+
// File already imported_once. Skipping output.
|
|
2931
|
+
// #endregion
|
|
2932
|
+
|
|
2933
|
+
// Config
|
|
2934
|
+
$kendo-enable-color-system: false !default;
|
|
2935
|
+
|
|
2936
|
+
// Colors
|
|
2937
|
+
$_default-colors: (
|
|
2938
|
+
// Misc
|
|
2939
|
+
app-surface: null,
|
|
2940
|
+
on-app-surface: null,
|
|
2941
|
+
subtle: null,
|
|
2942
|
+
surface: null,
|
|
2943
|
+
surface-alt: null,
|
|
2944
|
+
border: null,
|
|
2945
|
+
border-alt: null,
|
|
2946
|
+
// Base
|
|
2947
|
+
base-subtle: null,
|
|
2948
|
+
base-subtle-hover: null,
|
|
2949
|
+
base-subtle-active: null,
|
|
2950
|
+
base: null,
|
|
2951
|
+
base-hover: null,
|
|
2952
|
+
base-active: null,
|
|
2953
|
+
base-emphasis: null,
|
|
2954
|
+
base-on-subtle: null,
|
|
2955
|
+
on-base: null,
|
|
2956
|
+
base-on-surface: null,
|
|
2957
|
+
// Primary
|
|
2958
|
+
primary-subtle: null,
|
|
2959
|
+
primary-subtle-hover: null,
|
|
2960
|
+
primary-subtle-active: null,
|
|
2961
|
+
primary: null,
|
|
2962
|
+
primary-hover: null,
|
|
2963
|
+
primary-active: null,
|
|
2964
|
+
primary-emphasis: null,
|
|
2965
|
+
primary-on-subtle: null,
|
|
2966
|
+
on-primary: null,
|
|
2967
|
+
primary-on-surface: null,
|
|
2968
|
+
// Secondary
|
|
2969
|
+
secondary-subtle: null,
|
|
2970
|
+
secondary-subtle-hover: null,
|
|
2971
|
+
secondary-subtle-active: null,
|
|
2972
|
+
secondary: null,
|
|
2973
|
+
secondary-hover: null,
|
|
2974
|
+
secondary-active: null,
|
|
2975
|
+
secondary-emphasis: null,
|
|
2976
|
+
secondary-on-subtle: null,
|
|
2977
|
+
on-secondary: null,
|
|
2978
|
+
secondary-on-surface: null,
|
|
2979
|
+
// Tertiary
|
|
2980
|
+
tertiary-subtle: null,
|
|
2981
|
+
tertiary-subtle-hover: null,
|
|
2982
|
+
tertiary-subtle-active: null,
|
|
2983
|
+
tertiary: null,
|
|
2984
|
+
tertiary-hover: null,
|
|
2985
|
+
tertiary-active: null,
|
|
2986
|
+
tertiary-emphasis: null,
|
|
2987
|
+
tertiary-on-subtle: null,
|
|
2988
|
+
on-tertiary: null,
|
|
2989
|
+
tertiary-on-surface: null,
|
|
2990
|
+
// Info
|
|
2991
|
+
info-subtle: null,
|
|
2992
|
+
info-subtle-hover: null,
|
|
2993
|
+
info-subtle-active: null,
|
|
2994
|
+
info: null,
|
|
2995
|
+
info-hover: null,
|
|
2996
|
+
info-active: null,
|
|
2997
|
+
info-emphasis: null,
|
|
2998
|
+
info-on-subtle: null,
|
|
2999
|
+
on-info: null,
|
|
3000
|
+
info-on-surface: null,
|
|
3001
|
+
// Success
|
|
3002
|
+
success-subtle: null,
|
|
3003
|
+
success-subtle-hover: null,
|
|
3004
|
+
success-subtle-active: null,
|
|
3005
|
+
success: null,
|
|
3006
|
+
success-hover: null,
|
|
3007
|
+
success-active: null,
|
|
3008
|
+
success-emphasis: null,
|
|
3009
|
+
success-on-subtle: null,
|
|
3010
|
+
on-success: null,
|
|
3011
|
+
success-on-surface: null,
|
|
3012
|
+
// Warning
|
|
3013
|
+
warning-subtle: null,
|
|
3014
|
+
warning-subtle-hover: null,
|
|
3015
|
+
warning-subtle-active: null,
|
|
3016
|
+
warning: null,
|
|
3017
|
+
warning-hover: null,
|
|
3018
|
+
warning-active: null,
|
|
3019
|
+
warning-emphasis: null,
|
|
3020
|
+
warning-on-subtle: null,
|
|
3021
|
+
on-warning: null,
|
|
3022
|
+
warning-on-surface: null,
|
|
3023
|
+
// Error
|
|
3024
|
+
error-subtle: null,
|
|
3025
|
+
error-subtle-hover: null,
|
|
3026
|
+
error-subtle-active: null,
|
|
3027
|
+
error: null,
|
|
3028
|
+
error-hover: null,
|
|
3029
|
+
error-active: null,
|
|
3030
|
+
error-emphasis: null,
|
|
3031
|
+
error-on-subtle: null,
|
|
3032
|
+
on-error: null,
|
|
3033
|
+
error-on-surface: null,
|
|
3034
|
+
// Light
|
|
3035
|
+
light-subtle: null,
|
|
3036
|
+
light-subtle-hover: null,
|
|
3037
|
+
light-subtle-active: null,
|
|
3038
|
+
light: null,
|
|
3039
|
+
light-hover: null,
|
|
3040
|
+
light-active: null,
|
|
3041
|
+
light-emphasis: null,
|
|
3042
|
+
light-on-subtle: null,
|
|
3043
|
+
on-light: null,
|
|
3044
|
+
light-on-surface: null,
|
|
3045
|
+
// Dark
|
|
3046
|
+
dark-subtle: null,
|
|
3047
|
+
dark-subtle-hover: null,
|
|
3048
|
+
dark-subtle-active: null,
|
|
3049
|
+
dark: null,
|
|
3050
|
+
dark-hover: null,
|
|
3051
|
+
dark-active: null,
|
|
3052
|
+
dark-emphasis: null,
|
|
3053
|
+
dark-on-subtle: null,
|
|
3054
|
+
on-dark: null,
|
|
3055
|
+
dark-on-surface: null,
|
|
3056
|
+
// Inverse
|
|
3057
|
+
inverse-subtle: null,
|
|
3058
|
+
inverse-subtle-hover: null,
|
|
3059
|
+
inverse-subtle-active: null,
|
|
3060
|
+
inverse: null,
|
|
3061
|
+
inverse-hover: null,
|
|
3062
|
+
inverse-active: null,
|
|
3063
|
+
inverse-emphasis: null,
|
|
3064
|
+
inverse-on-subtle: null,
|
|
3065
|
+
on-inverse: null,
|
|
3066
|
+
inverse-on-surface: null,
|
|
3067
|
+
// Series A
|
|
3068
|
+
series-a: null,
|
|
3069
|
+
series-a-bold: null,
|
|
3070
|
+
series-a-bolder: null,
|
|
3071
|
+
series-a-subtle: null,
|
|
3072
|
+
series-a-subtler: null,
|
|
3073
|
+
// Series B
|
|
3074
|
+
series-b: null,
|
|
3075
|
+
series-b-bold: null,
|
|
3076
|
+
series-b-bolder: null,
|
|
3077
|
+
series-b-subtle: null,
|
|
3078
|
+
series-b-subtler: null,
|
|
3079
|
+
// Series C
|
|
3080
|
+
series-c: null,
|
|
3081
|
+
series-c-bold: null,
|
|
3082
|
+
series-c-bolder: null,
|
|
3083
|
+
series-c-subtle: null,
|
|
3084
|
+
series-c-subtler: null,
|
|
3085
|
+
// Series D
|
|
3086
|
+
series-d: null,
|
|
3087
|
+
series-d-bold: null,
|
|
3088
|
+
series-d-bolder: null,
|
|
3089
|
+
series-d-subtle: null,
|
|
3090
|
+
series-d-subtler: null,
|
|
3091
|
+
// Series Е
|
|
3092
|
+
series-e: null,
|
|
3093
|
+
series-e-bold: null,
|
|
3094
|
+
series-e-bolder: null,
|
|
3095
|
+
series-e-subtle: null,
|
|
3096
|
+
series-e-subtler: null,
|
|
3097
|
+
// Series F
|
|
3098
|
+
series-f: null,
|
|
3099
|
+
series-f-bold: null,
|
|
3100
|
+
series-f-bolder: null,
|
|
3101
|
+
series-f-subtle: null,
|
|
3102
|
+
series-f-subtler: null,
|
|
3103
|
+
) !default;
|
|
3104
|
+
|
|
3105
|
+
/// The global default Colors map.
|
|
3106
|
+
/// @group color-system
|
|
3107
|
+
$kendo-colors: $_default-colors !default;
|
|
3108
|
+
$kendo-colors: k-map-merge($_default-colors, $kendo-colors);
|
|
3109
|
+
|
|
3110
|
+
@function k-color($key, $rgb: false) {
|
|
3111
|
+
$_color: k-map-get($kendo-colors, $key);
|
|
3112
|
+
|
|
3113
|
+
@if ($_color) {
|
|
3114
|
+
@if ($rgb) {
|
|
3115
|
+
@return var(--kendo-color-#{$key}-rgb, k-hex-to-rgb($_color));
|
|
3116
|
+
} @else {
|
|
3117
|
+
@return var(--kendo-color-#{$key}, $_color);
|
|
3118
|
+
}
|
|
3119
|
+
} @else {
|
|
3120
|
+
@error "Color Variable \`#{$key}\` does not exists in the color collection.";
|
|
3121
|
+
}
|
|
3122
|
+
}
|
|
3123
|
+
|
|
3124
|
+
@mixin color-system--styles() {
|
|
3125
|
+
:root {
|
|
3126
|
+
@each $key, $value in $kendo-colors {
|
|
3127
|
+
@if($value) {
|
|
3128
|
+
--kendo-color-#{$key}: #{$value};
|
|
3129
|
+
--kendo-color-#{$key}-rgb: #{k-hex-to-rgb($value)};
|
|
3130
|
+
}
|
|
3131
|
+
}
|
|
3132
|
+
}
|
|
3133
|
+
}
|
|
3134
|
+
|
|
3135
|
+
// #endregion
|
|
3136
|
+
// #region @import "./_constants.scss"; -> scss/color-system/_constants.scss
|
|
2870
3137
|
// Color constants
|
|
2871
3138
|
|
|
2872
3139
|
/// The color white.
|
|
@@ -2885,31 +3152,31 @@ $kendo-color-black: #000000; // stylelint-disable-line scss/dollar-variable-defa
|
|
|
2885
3152
|
/// Note: you cannot change this value.
|
|
2886
3153
|
/// @type Color
|
|
2887
3154
|
/// @group color-system
|
|
2888
|
-
$kendo-color-rgba-transparent: rgba(
|
|
3155
|
+
$kendo-color-rgba-transparent: rgba(0, 0, 0, 0); // stylelint-disable-line scss/dollar-variable-default
|
|
2889
3156
|
|
|
2890
3157
|
/// A gradient that goes from transparent to black.
|
|
2891
3158
|
/// Note: you cannot change this value.
|
|
2892
3159
|
/// @type Gradient
|
|
2893
3160
|
/// @group color-system
|
|
2894
|
-
$kendo-gradient-transparent-to-black: rgba(
|
|
3161
|
+
$kendo-gradient-transparent-to-black: rgba(black, 0), black; // stylelint-disable-line scss/dollar-variable-default
|
|
2895
3162
|
|
|
2896
3163
|
/// A gradient that goes from transparent to white.
|
|
2897
3164
|
/// Note: you cannot change this value.
|
|
2898
3165
|
/// @type Gradient
|
|
2899
3166
|
/// @group color-system
|
|
2900
|
-
$kendo-gradient-transparent-to-white: rgba(
|
|
3167
|
+
$kendo-gradient-transparent-to-white: rgba(white, 0), white; // stylelint-disable-line scss/dollar-variable-default
|
|
2901
3168
|
|
|
2902
3169
|
/// A gradient that goes from black to transparent.
|
|
2903
3170
|
/// Note: you cannot change this value.
|
|
2904
3171
|
/// @type Gradient
|
|
2905
3172
|
/// @group color-system
|
|
2906
|
-
$kendo-gradient-black-to-transparent: black, rgba(
|
|
3173
|
+
$kendo-gradient-black-to-transparent: black, rgba(black, 0); // stylelint-disable-line scss/dollar-variable-default
|
|
2907
3174
|
|
|
2908
3175
|
/// A gradient that goes from white to transparent.
|
|
2909
3176
|
/// Note: you cannot change this value.
|
|
2910
3177
|
/// @type Gradient
|
|
2911
3178
|
/// @group color-system
|
|
2912
|
-
$kendo-gradient-white-to-transparent: white, rgba(
|
|
3179
|
+
$kendo-gradient-white-to-transparent: white, rgba(white, 0); // stylelint-disable-line scss/dollar-variable-default
|
|
2913
3180
|
|
|
2914
3181
|
/// A gradient that cycles through the colors of the rainbow.
|
|
2915
3182
|
/// Note: you cannot change this value.
|
|
@@ -2917,153 +3184,84 @@ $kendo-gradient-white-to-transparent: white, rgba( white, 0 ); // stylelint-disa
|
|
|
2917
3184
|
/// @group color-system
|
|
2918
3185
|
$kendo-gradient-rainbow: #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000; // stylelint-disable-line scss/dollar-variable-default
|
|
2919
3186
|
|
|
3187
|
+
// #endregion
|
|
3188
|
+
// #region @import "./_swatch-legacy.scss"; -> scss/color-system/_swatch-legacy.scss
|
|
3189
|
+
$kendo-is-dark-theme: false !default;
|
|
2920
3190
|
|
|
2921
3191
|
// Root styles
|
|
2922
|
-
$kendo-body-bg:
|
|
2923
|
-
$kendo-body-text:
|
|
3192
|
+
$kendo-body-bg: null !default;
|
|
3193
|
+
$kendo-body-text: null !default;
|
|
2924
3194
|
|
|
2925
3195
|
// Component styles
|
|
2926
|
-
$kendo-component-bg:
|
|
2927
|
-
$kendo-component-text:
|
|
2928
|
-
$kendo-component-border:
|
|
3196
|
+
$kendo-component-bg: null !default;
|
|
3197
|
+
$kendo-component-text: null !default;
|
|
3198
|
+
$kendo-component-border: null !default;
|
|
2929
3199
|
|
|
2930
3200
|
// States styles
|
|
2931
|
-
$kendo-hover-bg:
|
|
2932
|
-
$kendo-hover-text:
|
|
2933
|
-
$kendo-hover-border:
|
|
3201
|
+
$kendo-hover-bg: null !default;
|
|
3202
|
+
$kendo-hover-text: null !default;
|
|
3203
|
+
$kendo-hover-border: null !default;
|
|
2934
3204
|
|
|
2935
|
-
$kendo-selected-bg:
|
|
2936
|
-
$kendo-selected-text:
|
|
2937
|
-
$kendo-selected-border:
|
|
3205
|
+
$kendo-selected-bg: null !default;
|
|
3206
|
+
$kendo-selected-text: null !default;
|
|
3207
|
+
$kendo-selected-border: null !default;
|
|
2938
3208
|
|
|
2939
|
-
$kendo-selected-hover-bg:
|
|
2940
|
-
$kendo-selected-hover-text:
|
|
2941
|
-
$kendo-selected-hover-border:
|
|
3209
|
+
$kendo-selected-hover-bg: null !default;
|
|
3210
|
+
$kendo-selected-hover-text: null !default;
|
|
3211
|
+
$kendo-selected-hover-border: null !default;
|
|
2942
3212
|
|
|
2943
|
-
$kendo-focus-outline:
|
|
3213
|
+
$kendo-focus-outline: null !default;
|
|
2944
3214
|
|
|
2945
|
-
$kendo-subtle-text:
|
|
3215
|
+
$kendo-subtle-text: null !default;
|
|
2946
3216
|
|
|
2947
3217
|
// Link
|
|
2948
|
-
$kendo-link-text:
|
|
2949
|
-
$kendo-link-hover-text:
|
|
3218
|
+
$kendo-link-text: null !default;
|
|
3219
|
+
$kendo-link-hover-text: null !default;
|
|
2950
3220
|
|
|
2951
3221
|
// Validator
|
|
2952
|
-
$kendo-invalid-bg:
|
|
2953
|
-
$kendo-invalid-text:
|
|
2954
|
-
$kendo-invalid-border:
|
|
3222
|
+
$kendo-invalid-bg: null !default;
|
|
3223
|
+
$kendo-invalid-text: null !default;
|
|
3224
|
+
$kendo-invalid-border: null !default;
|
|
2955
3225
|
$kendo-invalid-shadow: null !default;
|
|
2956
3226
|
|
|
2957
|
-
$kendo-valid-bg: initial !default;
|
|
2958
|
-
$kendo-valid-text: k-get-theme-color-var( success-190 ) !default;
|
|
2959
|
-
$kendo-valid-border: k-get-theme-color-var( success-190 ) !default;
|
|
2960
|
-
$kendo-valid-shadow: null !default;
|
|
2961
|
-
|
|
2962
3227
|
// Disabled Styling
|
|
2963
|
-
$kendo-disabled-bg:
|
|
2964
|
-
$kendo-disabled-text:
|
|
2965
|
-
$kendo-disabled-border:
|
|
3228
|
+
$kendo-disabled-bg: null !default;
|
|
3229
|
+
$kendo-disabled-text: null !default;
|
|
3230
|
+
$kendo-disabled-border: null !default;
|
|
2966
3231
|
|
|
2967
3232
|
// Loading
|
|
2968
|
-
$kendo-loading-bg:
|
|
2969
|
-
$kendo-loading-text:
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
// Theme colors
|
|
2973
|
-
$kendo-theme-colors: (
|
|
2974
|
-
primary: (
|
|
2975
|
-
text: k-get-theme-color-var( primary-130 ),
|
|
2976
|
-
bg: k-get-theme-color-var( primary-20 ),
|
|
2977
|
-
border: k-get-theme-color-var( primary-20 )
|
|
2978
|
-
),
|
|
2979
|
-
info: (
|
|
2980
|
-
text: k-get-theme-color-var( info-190 ),
|
|
2981
|
-
bg: k-get-theme-color-var( info-20 ),
|
|
2982
|
-
border: k-get-theme-color-var( info-20 )
|
|
2983
|
-
),
|
|
2984
|
-
success: (
|
|
2985
|
-
text: k-get-theme-color-var( success-190 ),
|
|
2986
|
-
bg: k-get-theme-color-var( success-20 ),
|
|
2987
|
-
border: k-get-theme-color-var( success-20 )
|
|
2988
|
-
),
|
|
2989
|
-
warning: (
|
|
2990
|
-
text: k-get-theme-color-var( neutral-160 ),
|
|
2991
|
-
bg: k-get-theme-color-var( warning-20 ),
|
|
2992
|
-
border: k-get-theme-color-var( warning-20 )
|
|
2993
|
-
),
|
|
2994
|
-
error: (
|
|
2995
|
-
text: k-get-theme-color-var( error-190 ),
|
|
2996
|
-
bg: k-get-theme-color-var( error-20 ),
|
|
2997
|
-
border: k-get-theme-color-var( error-20 )
|
|
2998
|
-
)
|
|
2999
|
-
) !default;
|
|
3233
|
+
$kendo-loading-bg: null !default;
|
|
3234
|
+
$kendo-loading-text: null !default;
|
|
3000
3235
|
|
|
3236
|
+
$kendo-palettes: () !default;
|
|
3237
|
+
$kendo-theme-colors: () !default;
|
|
3001
3238
|
|
|
3002
3239
|
@mixin color-system-styles() {
|
|
3003
3240
|
:root {
|
|
3004
|
-
@include k-css-vars(
|
|
3005
|
-
@include k-css-vars(
|
|
3006
|
-
|
|
3007
|
-
--kendo-body-bg: #{$kendo-body-bg};
|
|
3008
|
-
--kendo-body-text: #{$kendo-body-text};
|
|
3009
|
-
|
|
3010
|
-
--kendo-component-bg: #{$kendo-component-bg};
|
|
3011
|
-
--kendo-component-text: #{$kendo-component-text};
|
|
3012
|
-
--kendo-component-border: #{$kendo-component-border};
|
|
3013
|
-
|
|
3014
|
-
--kendo-link-text: #{$kendo-link-text};
|
|
3015
|
-
--kendo-link-hover-text: #{$kendo-link-hover-text};
|
|
3016
|
-
|
|
3017
|
-
--kendo-disabled-bg: #{$kendo-disabled-bg};
|
|
3018
|
-
--kendo-disabled-text: #{$kendo-disabled-text};
|
|
3019
|
-
--kendo-disabled-border: #{$kendo-disabled-border};
|
|
3020
|
-
|
|
3021
|
-
--kendo-hover-bg: #{$kendo-hover-bg};
|
|
3022
|
-
--kendo-hover-text: #{$kendo-hover-text};
|
|
3023
|
-
--kendo-hover-border: #{$kendo-hover-border};
|
|
3024
|
-
|
|
3025
|
-
--kendo-selected-bg: #{$kendo-selected-bg};
|
|
3026
|
-
--kendo-selected-text: #{$kendo-selected-text};
|
|
3027
|
-
--kendo-selected-border: #{$kendo-selected-border};
|
|
3028
|
-
|
|
3029
|
-
--kendo-selected-hover-bg: #{$kendo-selected-hover-bg};
|
|
3030
|
-
--kendo-selected-hover-text: #{$kendo-selected-hover-text};
|
|
3031
|
-
--kendo-selected-hover-border: #{$kendo-selected-hover-border};
|
|
3032
|
-
|
|
3033
|
-
--kendo-focus-outline: #{$kendo-focus-outline};
|
|
3241
|
+
@include k-css-vars($kendo-palettes);
|
|
3242
|
+
@include k-css-vars($kendo-theme-colors);
|
|
3034
3243
|
|
|
3035
|
-
|
|
3244
|
+
// Text colors
|
|
3245
|
+
@each $theme-color, $color-props in $kendo-theme-colors {
|
|
3246
|
+
$_color: k-map-get($color-props, text);
|
|
3036
3247
|
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
}
|
|
3046
|
-
|
|
3047
|
-
// Text colors
|
|
3048
|
-
@each $theme-color, $color-props in $kendo-theme-colors {
|
|
3049
|
-
$_color: k-map-get( $color-props, text );
|
|
3050
|
-
|
|
3051
|
-
.k-text-#{$theme-color},
|
|
3052
|
-
.k-color-#{$theme-color} {
|
|
3053
|
-
color: var( --kendo-text-#{$theme-color}, #{$_color} );
|
|
3054
|
-
}
|
|
3055
|
-
.\!k-text-#{$theme-color},
|
|
3056
|
-
.\!k-color-#{$theme-color} {
|
|
3057
|
-
color: var( --kendo-text-#{$theme-color}, #{$_color} ) !important; // stylelint-disable-line declaration-no-important
|
|
3058
|
-
}
|
|
3248
|
+
.k-text-#{$theme-color},
|
|
3249
|
+
.k-color-#{$theme-color} {
|
|
3250
|
+
color: var(--kendo-text-#{$theme-color}, #{$_color});
|
|
3251
|
+
}
|
|
3252
|
+
.\!k-text-#{$theme-color},
|
|
3253
|
+
.\!k-color-#{$theme-color} {
|
|
3254
|
+
color: var(--kendo-text-#{$theme-color}, #{$_color}) !important; // stylelint-disable-line declaration-no-important
|
|
3255
|
+
}
|
|
3059
3256
|
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3257
|
+
.k-bg-#{$theme-color} {
|
|
3258
|
+
background-color: var(--kendo-bg-#{$theme-color}, #{$_color});
|
|
3259
|
+
}
|
|
3260
|
+
.\!k-bg-#{$theme-color} {
|
|
3261
|
+
background-color: var(--kendo-bg-#{$theme-color}, #{$_color}) !important; // stylelint-disable-line declaration-no-important
|
|
3262
|
+
}
|
|
3065
3263
|
}
|
|
3066
|
-
}
|
|
3264
|
+
}
|
|
3067
3265
|
}
|
|
3068
3266
|
|
|
3069
3267
|
// #endregion
|
|
@@ -4466,9 +4664,17 @@ $_imported: () !default;
|
|
|
4466
4664
|
}
|
|
4467
4665
|
}
|
|
4468
4666
|
// #endregion
|
|
4667
|
+
// #region @import "./_colors.scss"; -> scss/styles/_colors.scss
|
|
4668
|
+
@mixin kendo-core--styles--colors() {
|
|
4669
|
+
@if ($kendo-enable-color-system) {
|
|
4670
|
+
@include color-system--styles();
|
|
4671
|
+
}
|
|
4672
|
+
}
|
|
4469
4673
|
|
|
4674
|
+
// #endregion
|
|
4470
4675
|
|
|
4471
4676
|
@mixin kendo-core--styles() {
|
|
4677
|
+
@include kendo-core--styles--colors();
|
|
4472
4678
|
@include kendo-core--styles--accessibility();
|
|
4473
4679
|
@include kendo-core--styles--asp-fallback();
|
|
4474
4680
|
@include kendo-core--styles--layout();
|