@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.
@@ -3,15 +3,13 @@
3
3
 
4
4
  // Precomputed linear color channel values, for use in contrast calculations.
5
5
  // See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
6
- //
7
6
  // Algorithm, for c in 0 to 255:
8
7
  // f(c) {
9
8
  // c = c / 255;
10
9
  // return c < 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);
11
10
  // }
12
- //
13
11
  // This lookup table is needed since there is no `pow` in SASS.
14
- // stylelint-disable-next-line scss/dollar-variable-default
12
+ // stylelint-disable number-max-precision
15
13
  $_linear-channel-values: (
16
14
  0
17
15
  .0003035269835488375
@@ -270,6 +268,7 @@ $_linear-channel-values: (
270
268
  .9911020971138298
271
269
  1
272
270
  );
271
+ // stylelint-enable number-max-precision
273
272
 
274
273
  /// The contrast ratio to reach against white, to determine if color changes from "light" to "dark".
275
274
  /// Acceptable values for WCAG 2.0 are 3, 4.5 and 7.
@@ -314,7 +313,6 @@ $wcag-light: white !default;
314
313
  /// @link https://www.w3.org/TR/WCAG/#dfn-contrast-ratio
315
314
  /// @link https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
316
315
  @function k-color-contrast-ratio( $background, $foreground ) {
317
- // sass-lint:disable-block variable-name-format
318
316
  $backLum: k-color-luminance( $background ) + .05;
319
317
  $foreLum: k-color-luminance( $foreground ) + .05;
320
318
 
@@ -365,7 +363,6 @@ $wcag-light: white !default;
365
363
  }
366
364
  }
367
365
 
368
- // sass-lint:disable-block no-warn
369
366
  @warn "Found no color leading to #{$min-ratio}:1 contrast ratio against #{$background}...";
370
367
 
371
368
  @return $max-ratio-color;
@@ -13,7 +13,7 @@
13
13
  @return null;
14
14
  }
15
15
 
16
- @if $_prefix == null {
16
+ @if $_prefix == null { // stylelint-disable-line
17
17
  $_prefix: "";
18
18
  }
19
19
 
@@ -98,7 +98,6 @@
98
98
  @return $result;
99
99
  }
100
100
 
101
- // sass-lint:disable-block no-warn
102
101
  @warn "No list passed.";
103
102
  @return $result;
104
103
  }
@@ -6,7 +6,7 @@
6
6
  /// @debug k-map-get( ( "foo": "bar" ), "foo" ); // => "bar"
7
7
  @function k-map-get( $map, $keys... ) {
8
8
  @each $key in $keys {
9
- $map: map-get( $map, $key );
9
+ $map: map-get( $map, $key ); // stylelint-disable-line
10
10
  }
11
11
  @return $map;
12
12
  }
@@ -42,7 +42,7 @@
42
42
  /// @debug k-map-merge( ( "foo": "bar" ), ( "baz": "qux" ) ); // => ( "foo": "bar", "baz": "qux" )
43
43
  @function k-map-merge( $map, $args... ) {
44
44
  @each $arg in $args {
45
- $map: map-merge( $map, $arg );
45
+ $map: map-merge( $map, $arg ); // stylelint-disable-line
46
46
  }
47
47
  @return $map;
48
48
  }
@@ -170,7 +170,7 @@
170
170
  /// @example scss - Usage
171
171
  /// @debug k-math-random(); // => 0.123456789
172
172
  @function k-math-random( $limit: null ) {
173
- @if ( $limit == null ) {
173
+ @if ( $limit == null ) { // stylelint-disable-line
174
174
  @return random();
175
175
  }
176
176
 
@@ -9,7 +9,6 @@ $_kendo-data-uris: () !default;
9
9
  /// @require $_kendo-data-uris
10
10
  @mixin register-data-uri( $name, $content ) {
11
11
  @if ( k-map-has-key( $_kendo-data-uris, $name ) ) {
12
- // sass-lint:disable-block no-warn
13
12
  @warn "Attempt to redefine data URI of file `#{$name}`.";
14
13
  }
15
14
 
@@ -17,7 +17,6 @@
17
17
  }
18
18
 
19
19
  @mixin checkerboard-gradient( $primary-color: white, $secondary-color: rgba( black, .09 ), $size: 10px ) {
20
- // sass-lint:disable-block indentation
21
20
  $_position: calc( #{$size} / 2 );
22
21
 
23
22
  background:
@@ -7,7 +7,7 @@ $_kendo-imported-modules: () !default;
7
7
  /// @param {String} $name - The name of the exported module.
8
8
  /// @require $_kendo-imported-modules
9
9
  @mixin exports( $name ) {
10
- @if (k-list-index( $_kendo-imported-modules, $name ) == null) {
10
+ @if (k-list-index( $_kendo-imported-modules, $name ) == null) { // stylelint-disable-line
11
11
  $_kendo-imported-modules: k-list-append( $_kendo-imported-modules, $name ) !global;
12
12
  @content;
13
13
  }
@@ -4,6 +4,7 @@
4
4
  $_deps: () !default;
5
5
  $_imported: () !default;
6
6
 
7
+ // stylelint-disable scss/at-if-no-null
7
8
  @mixin module-register( $name: null, $dependencies: null ) {
8
9
  @if (k-list-index( $kendo-components, $name) != null) {
9
10
  $_deps: k-map-merge( $_deps, ( $name: $dependencies ) );
@@ -11,7 +12,6 @@ $_imported: () !default;
11
12
  @if $dependencies {
12
13
  @each $dep in $dependencies {
13
14
  @if ( k-list-index( $kendo-components, $dep ) == null ) {
14
- // sass-lint:disable-block no-warn
15
15
  @warn "The module \"#{$name}\" depends on module \"#{$dep}\", but the styles will not be loaded!";
16
16
  }
17
17
  }
@@ -25,7 +25,6 @@ $_imported: () !default;
25
25
  @if $dependencies {
26
26
  @each $dep in $dependencies {
27
27
  @if ( k-list-index( $_imported, $dep ) == null ) {
28
- // sass-lint:disable-block no-warn
29
28
  @warn "The module \"#{$name}\" depends on module \"#{$dep}\", but the styles have not been loaded yet!";
30
29
  }
31
30
  }
@@ -40,7 +39,6 @@ $_imported: () !default;
40
39
  @mixin verify-dependencies() {
41
40
  @each $component in $kendo-components {
42
41
  @if (k-map-has-key( $_kendo-dependencies, $component ) == false) {
43
- // sass-lint:disable-block no-warn
44
42
  @error "Module '#{$component}' is not defined.";
45
43
  }
46
44
  }
@@ -50,8 +48,8 @@ $_imported: () !default;
50
48
  @mixin verify-rendered() {
51
49
  @each $component in $kendo-components {
52
50
  @if (k-list-index( $_imported, $component ) == null) {
53
- // sass-lint:disable-block no-warn
54
51
  @error "Module '#{$component}' has not been rendered.";
55
52
  }
56
53
  }
57
54
  }
55
+ // stylelint-enable scss/at-if-no-null
@@ -51,8 +51,8 @@
51
51
  border-style: solid;
52
52
  border-color: inherit;
53
53
  display: block;
54
- flex-grow: 0 !important; // sass-lint:disable-line no-important
55
- flex-shrink: 0 !important; // sass-lint:disable-line no-important
54
+ flex-grow: 0 !important; // stylelint-disable-line declaration-no-important
55
+ flex-shrink: 0 !important; // stylelint-disable-line declaration-no-important
56
56
  align-self: stretch;
57
57
  }
58
58
  .k-separator-horizontal,
@@ -76,7 +76,7 @@
76
76
 
77
77
  // Hidden
78
78
  .k-hidden {
79
- display: none !important; // sass-lint:disable-line no-important
79
+ display: none !important; // stylelint-disable-line declaration-no-important
80
80
  }
81
81
 
82
82
 
@@ -2,14 +2,14 @@
2
2
 
3
3
  // Hidden attribute
4
4
  [hidden] {
5
- display: none !important; // sass-lint:disable-line no-important
5
+ display: none !important; // stylelint-disable-line declaration-no-important
6
6
  }
7
7
 
8
8
 
9
9
  // Hide script tags
10
10
  // see https://github.com/telerik/kendo-themes/issues/2360
11
11
  script {
12
- display: none !important; // sass-lint:disable-line no-important
12
+ display: none !important; // stylelint-disable-line declaration-no-important
13
13
  }
14
14
 
15
15
  }
@@ -1,6 +1,6 @@
1
1
  @import "./_accessibility.scss";
2
2
  @import "./_asp-fallback.scss";
3
- @import "./_layout";
3
+ @import "./_layout.scss";
4
4
  @import "./_normalize.scss";
5
5
 
6
6