@progress/kendo-theme-core 6.4.0-dev.3 → 6.4.0-dev.4
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.scss +18 -25
- package/dist/meta/sassdoc-data.json +110 -110
- package/dist/meta/sassdoc-raw-data.json +103 -103
- package/dist/meta/variables.scss +1 -1
- package/package.json +2 -2
- package/scss/_variables.scss +2 -0
- package/scss/color-system/_functions.import.scss +1 -2
- package/scss/functions/_color-contrast.import.scss +2 -5
- package/scss/functions/_custom-properties.import.scss +1 -1
- package/scss/functions/_list.import.scss +0 -1
- package/scss/functions/_map.import.scss +2 -2
- package/scss/functions/_math.import.scss +1 -1
- package/scss/mixins/_data-uri.scss +0 -1
- package/scss/mixins/_gradient.scss +0 -1
- package/scss/mixins/_import-once.scss +1 -1
- package/scss/module-system/index.import.scss +2 -4
- package/scss/styles/_layout.scss +3 -3
- package/scss/styles/_normalize.scss +2 -2
- package/scss/styles/index.import.scss +1 -1
package/dist/all.scss
CHANGED
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
// #region @import "./functions/index.import.scss"; -> scss/functions/index.import.scss
|
|
6
6
|
// #region @import "../_variables.scss"; -> scss/_variables.scss
|
|
7
7
|
// Equilateral triangle variables
|
|
8
|
+
// stylelint-disable number-max-precision
|
|
8
9
|
$equilateral-index: 1.7320508076 !default;
|
|
9
10
|
$equilateral-height: .8660254038 !default;
|
|
11
|
+
// stylelint-enable number-max-precision
|
|
10
12
|
|
|
11
13
|
// #endregion
|
|
12
14
|
|
|
@@ -187,15 +189,13 @@ $equilateral-height: .8660254038 !default;
|
|
|
187
189
|
|
|
188
190
|
// Precomputed linear color channel values, for use in contrast calculations.
|
|
189
191
|
// See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
|
190
|
-
//
|
|
191
192
|
// Algorithm, for c in 0 to 255:
|
|
192
193
|
// f(c) {
|
|
193
194
|
// c = c / 255;
|
|
194
195
|
// return c < 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);
|
|
195
196
|
// }
|
|
196
|
-
//
|
|
197
197
|
// This lookup table is needed since there is no `pow` in SASS.
|
|
198
|
-
// stylelint-disable
|
|
198
|
+
// stylelint-disable number-max-precision
|
|
199
199
|
$_linear-channel-values: (
|
|
200
200
|
0
|
|
201
201
|
.0003035269835488375
|
|
@@ -454,6 +454,7 @@ $_linear-channel-values: (
|
|
|
454
454
|
.9911020971138298
|
|
455
455
|
1
|
|
456
456
|
);
|
|
457
|
+
// stylelint-enable number-max-precision
|
|
457
458
|
|
|
458
459
|
/// The contrast ratio to reach against white, to determine if color changes from "light" to "dark".
|
|
459
460
|
/// Acceptable values for WCAG 2.0 are 3, 4.5 and 7.
|
|
@@ -498,7 +499,6 @@ $wcag-light: white !default;
|
|
|
498
499
|
/// @link https://www.w3.org/TR/WCAG/#dfn-contrast-ratio
|
|
499
500
|
/// @link https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
|
500
501
|
@function k-color-contrast-ratio( $background, $foreground ) {
|
|
501
|
-
// sass-lint:disable-block variable-name-format
|
|
502
502
|
$backLum: k-color-luminance( $background ) + .05;
|
|
503
503
|
$foreLum: k-color-luminance( $foreground ) + .05;
|
|
504
504
|
|
|
@@ -549,7 +549,6 @@ $wcag-light: white !default;
|
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
551
|
|
|
552
|
-
// sass-lint:disable-block no-warn
|
|
553
552
|
@warn "Found no color leading to #{$min-ratio}:1 contrast ratio against #{$background}...";
|
|
554
553
|
|
|
555
554
|
@return $max-ratio-color;
|
|
@@ -733,7 +732,7 @@ $kendo-color-level-step: 8% !default;
|
|
|
733
732
|
@return null;
|
|
734
733
|
}
|
|
735
734
|
|
|
736
|
-
@if $_prefix == null {
|
|
735
|
+
@if $_prefix == null { // stylelint-disable-line
|
|
737
736
|
$_prefix: "";
|
|
738
737
|
}
|
|
739
738
|
|
|
@@ -926,7 +925,6 @@ $_kendo-escape-class-name: (
|
|
|
926
925
|
@return $result;
|
|
927
926
|
}
|
|
928
927
|
|
|
929
|
-
// sass-lint:disable-block no-warn
|
|
930
928
|
@warn "No list passed.";
|
|
931
929
|
@return $result;
|
|
932
930
|
}
|
|
@@ -1138,7 +1136,7 @@ $_kendo-escape-class-name: (
|
|
|
1138
1136
|
/// @example scss - Usage
|
|
1139
1137
|
/// @debug k-math-random(); // => 0.123456789
|
|
1140
1138
|
@function k-math-random( $limit: null ) {
|
|
1141
|
-
@if ( $limit == null ) {
|
|
1139
|
+
@if ( $limit == null ) { // stylelint-disable-line
|
|
1142
1140
|
@return random();
|
|
1143
1141
|
}
|
|
1144
1142
|
|
|
@@ -1198,7 +1196,7 @@ $_kendo-escape-class-name: (
|
|
|
1198
1196
|
/// @debug k-map-get( ( "foo": "bar" ), "foo" ); // => "bar"
|
|
1199
1197
|
@function k-map-get( $map, $keys... ) {
|
|
1200
1198
|
@each $key in $keys {
|
|
1201
|
-
$map: map-get( $map, $key );
|
|
1199
|
+
$map: map-get( $map, $key ); // stylelint-disable-line
|
|
1202
1200
|
}
|
|
1203
1201
|
@return $map;
|
|
1204
1202
|
}
|
|
@@ -1234,7 +1232,7 @@ $_kendo-escape-class-name: (
|
|
|
1234
1232
|
/// @debug k-map-merge( ( "foo": "bar" ), ( "baz": "qux" ) ); // => ( "foo": "bar", "baz": "qux" )
|
|
1235
1233
|
@function k-map-merge( $map, $args... ) {
|
|
1236
1234
|
@each $arg in $args {
|
|
1237
|
-
$map: map-merge( $map, $arg );
|
|
1235
|
+
$map: map-merge( $map, $arg ); // stylelint-disable-line
|
|
1238
1236
|
}
|
|
1239
1237
|
@return $map;
|
|
1240
1238
|
}
|
|
@@ -1687,7 +1685,6 @@ $_kendo-escape-class-name: (
|
|
|
1687
1685
|
$outline: $outline-prop;
|
|
1688
1686
|
|
|
1689
1687
|
$result: k-map-merge($result, (
|
|
1690
|
-
// sass-lint:disable-block indentation
|
|
1691
1688
|
#{$prefix}bg: $bg,
|
|
1692
1689
|
#{$prefix}text: $text,
|
|
1693
1690
|
#{$prefix}border: $border,
|
|
@@ -1717,7 +1714,7 @@ $_kendo-escape-class-name: (
|
|
|
1717
1714
|
$src-palette-name: k-map-get( $definition, PALETTE );
|
|
1718
1715
|
$matrix: k-map-remove( $definition, PALETTE );
|
|
1719
1716
|
|
|
1720
|
-
@if ($tc-index == null ) {
|
|
1717
|
+
@if ($tc-index == null ) { // stylelint-disable-line
|
|
1721
1718
|
$tmp-result: k-generate-theme-variant( $variant, $matrix, $src-palette-name );
|
|
1722
1719
|
$result: k-map-merge( $result, $tmp-result);
|
|
1723
1720
|
} @else {
|
|
@@ -2883,7 +2880,6 @@ $_kendo-data-uris: () !default;
|
|
|
2883
2880
|
/// @require $_kendo-data-uris
|
|
2884
2881
|
@mixin register-data-uri( $name, $content ) {
|
|
2885
2882
|
@if ( k-map-has-key( $_kendo-data-uris, $name ) ) {
|
|
2886
|
-
// sass-lint:disable-block no-warn
|
|
2887
2883
|
@warn "Attempt to redefine data URI of file `#{$name}`.";
|
|
2888
2884
|
}
|
|
2889
2885
|
|
|
@@ -2933,7 +2929,6 @@ $_kendo-data-uris: () !default;
|
|
|
2933
2929
|
}
|
|
2934
2930
|
|
|
2935
2931
|
@mixin checkerboard-gradient( $primary-color: white, $secondary-color: rgba( black, .09 ), $size: 10px ) {
|
|
2936
|
-
// sass-lint:disable-block indentation
|
|
2937
2932
|
$_position: calc( #{$size} / 2 );
|
|
2938
2933
|
|
|
2939
2934
|
background:
|
|
@@ -2983,7 +2978,7 @@ $_kendo-imported-modules: () !default;
|
|
|
2983
2978
|
/// @param {String} $name - The name of the exported module.
|
|
2984
2979
|
/// @require $_kendo-imported-modules
|
|
2985
2980
|
@mixin exports( $name ) {
|
|
2986
|
-
@if (k-list-index( $_kendo-imported-modules, $name ) == null) {
|
|
2981
|
+
@if (k-list-index( $_kendo-imported-modules, $name ) == null) { // stylelint-disable-line
|
|
2987
2982
|
$_kendo-imported-modules: k-list-append( $_kendo-imported-modules, $name ) !global;
|
|
2988
2983
|
@content;
|
|
2989
2984
|
}
|
|
@@ -3643,6 +3638,7 @@ $_kendo-dependencies: (
|
|
|
3643
3638
|
$_deps: () !default;
|
|
3644
3639
|
$_imported: () !default;
|
|
3645
3640
|
|
|
3641
|
+
// stylelint-disable scss/at-if-no-null
|
|
3646
3642
|
@mixin module-register( $name: null, $dependencies: null ) {
|
|
3647
3643
|
@if (k-list-index( $kendo-components, $name) != null) {
|
|
3648
3644
|
$_deps: k-map-merge( $_deps, ( $name: $dependencies ) );
|
|
@@ -3650,7 +3646,6 @@ $_imported: () !default;
|
|
|
3650
3646
|
@if $dependencies {
|
|
3651
3647
|
@each $dep in $dependencies {
|
|
3652
3648
|
@if ( k-list-index( $kendo-components, $dep ) == null ) {
|
|
3653
|
-
// sass-lint:disable-block no-warn
|
|
3654
3649
|
@warn "The module \"#{$name}\" depends on module \"#{$dep}\", but the styles will not be loaded!";
|
|
3655
3650
|
}
|
|
3656
3651
|
}
|
|
@@ -3664,7 +3659,6 @@ $_imported: () !default;
|
|
|
3664
3659
|
@if $dependencies {
|
|
3665
3660
|
@each $dep in $dependencies {
|
|
3666
3661
|
@if ( k-list-index( $_imported, $dep ) == null ) {
|
|
3667
|
-
// sass-lint:disable-block no-warn
|
|
3668
3662
|
@warn "The module \"#{$name}\" depends on module \"#{$dep}\", but the styles have not been loaded yet!";
|
|
3669
3663
|
}
|
|
3670
3664
|
}
|
|
@@ -3679,7 +3673,6 @@ $_imported: () !default;
|
|
|
3679
3673
|
@mixin verify-dependencies() {
|
|
3680
3674
|
@each $component in $kendo-components {
|
|
3681
3675
|
@if (k-map-has-key( $_kendo-dependencies, $component ) == false) {
|
|
3682
|
-
// sass-lint:disable-block no-warn
|
|
3683
3676
|
@error "Module '#{$component}' is not defined.";
|
|
3684
3677
|
}
|
|
3685
3678
|
}
|
|
@@ -3689,11 +3682,11 @@ $_imported: () !default;
|
|
|
3689
3682
|
@mixin verify-rendered() {
|
|
3690
3683
|
@each $component in $kendo-components {
|
|
3691
3684
|
@if (k-list-index( $_imported, $component ) == null) {
|
|
3692
|
-
// sass-lint:disable-block no-warn
|
|
3693
3685
|
@error "Module '#{$component}' has not been rendered.";
|
|
3694
3686
|
}
|
|
3695
3687
|
}
|
|
3696
3688
|
}
|
|
3689
|
+
// stylelint-enable scss/at-if-no-null
|
|
3697
3690
|
|
|
3698
3691
|
// #endregion
|
|
3699
3692
|
// #region @import "./styles/index.import.scss"; -> scss/styles/index.import.scss
|
|
@@ -3725,7 +3718,7 @@ $_imported: () !default;
|
|
|
3725
3718
|
}
|
|
3726
3719
|
|
|
3727
3720
|
// #endregion
|
|
3728
|
-
// #region @import "./_layout"; -> scss/styles/_layout.scss
|
|
3721
|
+
// #region @import "./_layout.scss"; -> scss/styles/_layout.scss
|
|
3729
3722
|
@mixin kendo-core--styles--layout() {
|
|
3730
3723
|
|
|
3731
3724
|
// Basic layout
|
|
@@ -3779,8 +3772,8 @@ $_imported: () !default;
|
|
|
3779
3772
|
border-style: solid;
|
|
3780
3773
|
border-color: inherit;
|
|
3781
3774
|
display: block;
|
|
3782
|
-
flex-grow: 0 !important; //
|
|
3783
|
-
flex-shrink: 0 !important; //
|
|
3775
|
+
flex-grow: 0 !important; // stylelint-disable-line declaration-no-important
|
|
3776
|
+
flex-shrink: 0 !important; // stylelint-disable-line declaration-no-important
|
|
3784
3777
|
align-self: stretch;
|
|
3785
3778
|
}
|
|
3786
3779
|
.k-separator-horizontal,
|
|
@@ -3804,7 +3797,7 @@ $_imported: () !default;
|
|
|
3804
3797
|
|
|
3805
3798
|
// Hidden
|
|
3806
3799
|
.k-hidden {
|
|
3807
|
-
display: none !important; //
|
|
3800
|
+
display: none !important; // stylelint-disable-line declaration-no-important
|
|
3808
3801
|
}
|
|
3809
3802
|
|
|
3810
3803
|
|
|
@@ -3828,14 +3821,14 @@ $_imported: () !default;
|
|
|
3828
3821
|
|
|
3829
3822
|
// Hidden attribute
|
|
3830
3823
|
[hidden] {
|
|
3831
|
-
display: none !important; //
|
|
3824
|
+
display: none !important; // stylelint-disable-line declaration-no-important
|
|
3832
3825
|
}
|
|
3833
3826
|
|
|
3834
3827
|
|
|
3835
3828
|
// Hide script tags
|
|
3836
3829
|
// see https://github.com/telerik/kendo-themes/issues/2360
|
|
3837
3830
|
script {
|
|
3838
|
-
display: none !important; //
|
|
3831
|
+
display: none !important; // stylelint-disable-line declaration-no-important
|
|
3839
3832
|
}
|
|
3840
3833
|
|
|
3841
3834
|
}
|