@progress/kendo-theme-utils 6.4.0-dev.2 → 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 CHANGED
@@ -6,8 +6,10 @@
6
6
  // #region @import "@progress/kendo-theme-core/scss/functions/index.import.scss"; -> node_modules/@progress/kendo-theme-core/scss/functions/index.import.scss
7
7
  // #region @import "../_variables.scss"; -> node_modules/@progress/kendo-theme-core/scss/_variables.scss
8
8
  // Equilateral triangle variables
9
+ // stylelint-disable number-max-precision
9
10
  $equilateral-index: 1.7320508076 !default;
10
11
  $equilateral-height: .8660254038 !default;
12
+ // stylelint-enable number-max-precision
11
13
 
12
14
  // #endregion
13
15
 
@@ -188,15 +190,13 @@ $equilateral-height: .8660254038 !default;
188
190
 
189
191
  // Precomputed linear color channel values, for use in contrast calculations.
190
192
  // See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
191
- //
192
193
  // Algorithm, for c in 0 to 255:
193
194
  // f(c) {
194
195
  // c = c / 255;
195
196
  // return c < 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);
196
197
  // }
197
- //
198
198
  // This lookup table is needed since there is no `pow` in SASS.
199
- // stylelint-disable-next-line scss/dollar-variable-default
199
+ // stylelint-disable number-max-precision
200
200
  $_linear-channel-values: (
201
201
  0
202
202
  .0003035269835488375
@@ -455,6 +455,7 @@ $_linear-channel-values: (
455
455
  .9911020971138298
456
456
  1
457
457
  );
458
+ // stylelint-enable number-max-precision
458
459
 
459
460
  /// The contrast ratio to reach against white, to determine if color changes from "light" to "dark".
460
461
  /// Acceptable values for WCAG 2.0 are 3, 4.5 and 7.
@@ -499,7 +500,6 @@ $wcag-light: white !default;
499
500
  /// @link https://www.w3.org/TR/WCAG/#dfn-contrast-ratio
500
501
  /// @link https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
501
502
  @function k-color-contrast-ratio( $background, $foreground ) {
502
- // sass-lint:disable-block variable-name-format
503
503
  $backLum: k-color-luminance( $background ) + .05;
504
504
  $foreLum: k-color-luminance( $foreground ) + .05;
505
505
 
@@ -550,7 +550,6 @@ $wcag-light: white !default;
550
550
  }
551
551
  }
552
552
 
553
- // sass-lint:disable-block no-warn
554
553
  @warn "Found no color leading to #{$min-ratio}:1 contrast ratio against #{$background}...";
555
554
 
556
555
  @return $max-ratio-color;
@@ -734,7 +733,7 @@ $kendo-color-level-step: 8% !default;
734
733
  @return null;
735
734
  }
736
735
 
737
- @if $_prefix == null {
736
+ @if $_prefix == null { // stylelint-disable-line
738
737
  $_prefix: "";
739
738
  }
740
739
 
@@ -927,7 +926,6 @@ $_kendo-escape-class-name: (
927
926
  @return $result;
928
927
  }
929
928
 
930
- // sass-lint:disable-block no-warn
931
929
  @warn "No list passed.";
932
930
  @return $result;
933
931
  }
@@ -1139,7 +1137,7 @@ $_kendo-escape-class-name: (
1139
1137
  /// @example scss - Usage
1140
1138
  /// @debug k-math-random(); // => 0.123456789
1141
1139
  @function k-math-random( $limit: null ) {
1142
- @if ( $limit == null ) {
1140
+ @if ( $limit == null ) { // stylelint-disable-line
1143
1141
  @return random();
1144
1142
  }
1145
1143
 
@@ -1199,7 +1197,7 @@ $_kendo-escape-class-name: (
1199
1197
  /// @debug k-map-get( ( "foo": "bar" ), "foo" ); // => "bar"
1200
1198
  @function k-map-get( $map, $keys... ) {
1201
1199
  @each $key in $keys {
1202
- $map: map-get( $map, $key );
1200
+ $map: map-get( $map, $key ); // stylelint-disable-line
1203
1201
  }
1204
1202
  @return $map;
1205
1203
  }
@@ -1235,7 +1233,7 @@ $_kendo-escape-class-name: (
1235
1233
  /// @debug k-map-merge( ( "foo": "bar" ), ( "baz": "qux" ) ); // => ( "foo": "bar", "baz": "qux" )
1236
1234
  @function k-map-merge( $map, $args... ) {
1237
1235
  @each $arg in $args {
1238
- $map: map-merge( $map, $arg );
1236
+ $map: map-merge( $map, $arg ); // stylelint-disable-line
1239
1237
  }
1240
1238
  @return $map;
1241
1239
  }
@@ -1674,7 +1672,6 @@ $kendo-theme-colors: () !default;
1674
1672
  $kendo-font-sizes: () !default;
1675
1673
 
1676
1674
  $kendo-spacing: (
1677
- // sass-lint:disable-block leading-zero
1678
1675
  0: 0,
1679
1676
  1px: 1px,
1680
1677
  0.5: .125rem,
@@ -1712,7 +1709,6 @@ $kendo-spacing: (
1712
1709
  ) !default;
1713
1710
 
1714
1711
  $kendo-sizing: k-map-merge( $kendo-spacing, (
1715
- // sass-lint:disable-block indentation
1716
1712
  "auto": auto,
1717
1713
  "1/2": 50%,
1718
1714
  "1/3": 33.333333%,
@@ -1755,8 +1751,6 @@ $kendo-border-radii: (
1755
1751
  full: 9999px
1756
1752
  ) !default;
1757
1753
 
1758
- //
1759
-
1760
1754
  $kendo-utils: (
1761
1755
 
1762
1756
  // Accessibility
@@ -1849,7 +1843,6 @@ $kendo-utils: (
1849
1843
  ),
1850
1844
  "overscroll": (),
1851
1845
  "placement": k-map-merge( $kendo-spacing, (
1852
- // sass-lint:disable-block indentation
1853
1846
  -1: -1px
1854
1847
  )),
1855
1848
  "position": (
@@ -2122,14 +2115,13 @@ $kendo-utils: (
2122
2115
  fr: minmax( 0, 1fr ),
2123
2116
  ),
2124
2117
  "gap": k-map-merge( $kendo-spacing, (
2125
- // sass-lint:disable-block indentation
2126
2118
  // TODO: remove this extension once we fix docs
2127
2119
  xs: k-map-get( $kendo-spacing, 1 ),
2128
2120
  sm: k-map-get( $kendo-spacing, 2 ),
2129
2121
  md: k-map-get( $kendo-spacing, 3 ),
2130
2122
  lg: k-map-get( $kendo-spacing, 4 ),
2131
2123
  xl: k-map-get( $kendo-spacing, 6 ),
2132
- thin: k-map-get( $kendo-spacing, 0.5 ), // sass-lint:disable-line leading-zero
2124
+ thin: k-map-get( $kendo-spacing, 0.5 ),
2133
2125
  hair: k-map-get( $kendo-spacing, 1px )
2134
2126
  )),
2135
2127
  "align-content": (
@@ -2266,33 +2258,30 @@ $kendo-utils: (
2266
2258
  // Spacing
2267
2259
  "margin": k-map-merge( $kendo-spacing,
2268
2260
  k-map-negate( $kendo-spacing), (
2269
- // sass-lint:disable-block indentation
2270
2261
  // TODO: remove this extension once we fix docs
2271
2262
  xs: k-map-get( $kendo-spacing, 1 ),
2272
2263
  sm: k-map-get( $kendo-spacing, 2 ),
2273
2264
  md: k-map-get( $kendo-spacing, 3 ),
2274
2265
  lg: k-map-get( $kendo-spacing, 4 ),
2275
2266
  xl: k-map-get( $kendo-spacing, 6 ),
2276
- thin: k-map-get( $kendo-spacing, 0.5 ), // sass-lint:disable-line leading-zero
2267
+ thin: k-map-get( $kendo-spacing, 0.5 ),
2277
2268
  hair: k-map-get( $kendo-spacing, 1px ),
2278
2269
  auto: auto
2279
2270
  )),
2280
2271
  "padding": k-map-merge( $kendo-spacing, (
2281
- // sass-lint:disable-block indentation
2282
2272
  // TODO: remove this extension once we fix docs
2283
2273
  xs: k-map-get( $kendo-spacing, 1 ),
2284
2274
  sm: k-map-get( $kendo-spacing, 2 ),
2285
2275
  md: k-map-get( $kendo-spacing, 3 ),
2286
2276
  lg: k-map-get( $kendo-spacing, 4 ),
2287
2277
  xl: k-map-get( $kendo-spacing, 6 ),
2288
- thin: k-map-get( $kendo-spacing, 0.5 ), // sass-lint:disable-line leading-zero
2278
+ thin: k-map-get( $kendo-spacing, 0.5 ),
2289
2279
  hair: k-map-get( $kendo-spacing, 1px )
2290
2280
  )),
2291
2281
  "space-between": (),
2292
2282
 
2293
2283
  // Sizing
2294
2284
  "width": k-map-merge( $kendo-sizing, (
2295
- // sass-lint:disable-block indentation
2296
2285
  screen: 100vw
2297
2286
  )),
2298
2287
  "min-width": (
@@ -2313,7 +2302,6 @@ $kendo-utils: (
2313
2302
  fit: fit-content
2314
2303
  ),
2315
2304
  "height": k-map-merge( $kendo-sizing, (
2316
- // sass-lint:disable-block indentation
2317
2305
  screen: 100vh
2318
2306
  )),
2319
2307
  "min-height": (
@@ -2371,7 +2359,6 @@ $kendo-utils: (
2371
2359
  end
2372
2360
  ),
2373
2361
  "text-color": k-map-merge( $kendo-theme-colors, (
2374
- // sass-lint:disable-block indentation
2375
2362
  "inherit": inherit,
2376
2363
  "current": currentColor,
2377
2364
  "transparent": transparent,
@@ -2427,7 +2414,6 @@ $kendo-utils: (
2427
2414
  text: text
2428
2415
  ),
2429
2416
  "background-color": k-map-merge( $kendo-theme-colors, (
2430
- // sass-lint:disable-block indentation
2431
2417
  "inherit": inherit,
2432
2418
  "transparent": transparent,
2433
2419
  "black": black,
@@ -2471,7 +2457,6 @@ $kendo-utils: (
2471
2457
  none
2472
2458
  ),
2473
2459
  "border-color": k-map-merge( $kendo-theme-colors, (
2474
- // sass-lint:disable-block indentation
2475
2460
  "inherit": inherit,
2476
2461
  "current": currentColor,
2477
2462
  "transparent": transparent,
@@ -2498,7 +2483,6 @@ $kendo-utils: (
2498
2483
  none
2499
2484
  ),
2500
2485
  "outline-color": k-map-merge( $kendo-theme-colors, (
2501
- // sass-lint:disable-block indentation
2502
2486
  "inherit": inherit,
2503
2487
  "current": currentColor,
2504
2488
  "transparent": transparent,
@@ -2517,7 +2501,6 @@ $kendo-utils: (
2517
2501
  "box-shadow": (),
2518
2502
  "box-shadow-color": (),
2519
2503
  "opacity": (
2520
- // sass-lint:disable-block leading-zero
2521
2504
  0: 0,
2522
2505
  5: 0.05,
2523
2506
  10: 0.1,
@@ -2556,7 +2539,6 @@ $kendo-utils: (
2556
2539
  // Transform
2557
2540
  "flip": true,
2558
2541
  "scale": (
2559
- // sass-lint:disable-block leading-zero
2560
2542
  0: 0,
2561
2543
  0.25: .25,
2562
2544
  0.5: .5,
@@ -2740,7 +2722,7 @@ $kendo-utils: (
2740
2722
  @if $important {
2741
2723
  .\!#{$_selector} {
2742
2724
  @each $prop in $_props {
2743
- #{$prop}: if( $_fn, k-meta-call($_fn, $_val), $_val ) !important; // sass-lint:disable-line no-important
2725
+ #{$prop}: if( $_fn, k-meta-call($_fn, $_val), $_val ) !important; // stylelint-disable-line declaration-no-important
2744
2726
  }
2745
2727
  }
2746
2728
  }
@@ -3071,9 +3053,9 @@ $kendo-utils: (
3071
3053
  // Legacy aliases
3072
3054
  @include generate-utils( display, display, $kendo-utils-display );
3073
3055
  .#{$kendo-prefix}d-flex-row { @extend .#{$kendo-prefix}d-flex, .#{$kendo-prefix}flex-row !optional; }
3074
- .\!#{$kendo-prefix}d-flex-row { @extend .\!#{$kendo-prefix}d-flex, .\!#{$kendo-prefix}flex-row !optional; } // sass-lint:disable-line class-name-format
3056
+ .\!#{$kendo-prefix}d-flex-row { @extend .\!#{$kendo-prefix}d-flex, .\!#{$kendo-prefix}flex-row !optional; }
3075
3057
  .#{$kendo-prefix}d-flex-col { @extend .#{$kendo-prefix}d-flex, .#{$kendo-prefix}flex-col !optional; }
3076
- .\!#{$kendo-prefix}d-flex-col { @extend .\!#{$kendo-prefix}d-flex, .\!#{$kendo-prefix}flex-row !optional; } // sass-lint:disable-line class-name-format
3058
+ .\!#{$kendo-prefix}d-flex-col { @extend .\!#{$kendo-prefix}d-flex, .\!#{$kendo-prefix}flex-row !optional; }
3077
3059
 
3078
3060
  }
3079
3061
 
@@ -3420,7 +3402,7 @@ $kendo-utils: (
3420
3402
  // placement length utility classes
3421
3403
  @each $side in (top, right, bottom, left) {
3422
3404
  .#{$kendo-prefix}#{$side},
3423
- .#{$kendo-prefix}pos-#{$side} { #{$side}: 0; } // sass-lint:disable-line brace-style
3405
+ .#{$kendo-prefix}pos-#{$side} { #{$side}: 0; }
3424
3406
  }
3425
3407
 
3426
3408
  // Inset utility classes
@@ -4425,8 +4407,8 @@ $kendo-utils: (
4425
4407
 
4426
4408
  // Legacy aliases
4427
4409
  @include generate-utils( colspan, grid-column, $kendo-utils-grid-column-span );
4428
- .#{$kendo-prefix}colspan-all { @extend .#{$kendo-prefix}colspan-full !optional; } // sass-lint:disable-line class-name-format
4429
- .\!#{$kendo-prefix}colspan-all { @extend .\!#{$kendo-prefix}colspan-full !optional; } // sass-lint:disable-line class-name-format
4410
+ .#{$kendo-prefix}colspan-all { @extend .#{$kendo-prefix}colspan-full !optional; }
4411
+ .\!#{$kendo-prefix}colspan-all { @extend .\!#{$kendo-prefix}colspan-full !optional; }
4430
4412
 
4431
4413
  }
4432
4414
 
@@ -4469,8 +4451,8 @@ $kendo-utils: (
4469
4451
 
4470
4452
  // Legacy aliases
4471
4453
  @include generate-utils( rowspan, grid-row, $kendo-utils-grid-row-span );
4472
- .#{$kendo-prefix}rowspan-all { @extend .#{$kendo-prefix}rowspan-full !optional; } // sass-lint:disable-line class-name-format
4473
- .\!#{$kendo-prefix}rowspan-all { @extend .\!#{$kendo-prefix}rowspan-full !optional; } // sass-lint:disable-line class-name-format
4454
+ .#{$kendo-prefix}rowspan-all { @extend .#{$kendo-prefix}rowspan-full !optional; }
4455
+ .\!#{$kendo-prefix}rowspan-all { @extend .\!#{$kendo-prefix}rowspan-full !optional; }
4474
4456
 
4475
4457
  }
4476
4458
 
@@ -4619,7 +4601,7 @@ $kendo-utils: (
4619
4601
 
4620
4602
  // Custom justify-content classes
4621
4603
  .#{$kendo-prefix}justify-content-stretch > * { flex: 1 0 0%; }
4622
- .\!.#{$kendo-prefix}justify-content-stretch > * { flex: 1 0 0% !important; } // sass-lint:disable-line no-important class-name-format
4604
+ .\!.#{$kendo-prefix}justify-content-stretch > * { flex: 1 0 0% !important; } // stylelint-disable-line declaration-no-important
4623
4605
 
4624
4606
  }
4625
4607
 
@@ -6871,9 +6853,9 @@ $kendo-utils: (
6871
6853
  text-overflow: ellipsis;
6872
6854
  }
6873
6855
  .\!#{$kendo-prefix}text-truncate {
6874
- white-space: nowrap !important; // sass-lint:disable-line no-important
6875
- overflow: hidden !important; // sass-lint:disable-line no-important
6876
- text-overflow: ellipsis !important; // sass-lint:disable-line no-important
6856
+ white-space: nowrap !important; // stylelint-disable-line declaration-no-important
6857
+ overflow: hidden !important; // stylelint-disable-line declaration-no-important
6858
+ text-overflow: ellipsis !important; // stylelint-disable-line declaration-no-important
6877
6859
  }
6878
6860
 
6879
6861
  // Legacy aliases
@@ -8433,11 +8415,11 @@ $kendo-utils: (
8433
8415
  $kendo-utils-flip: k-map-get( $kendo-utils, "flip" ) !default;
8434
8416
  @if $kendo-utils-flip {
8435
8417
  .#{$kendo-prefix}flip-h { transform: scaleX( -1 ); }
8436
- .\!#{$kendo-prefix}flip-h { transform: scaleX( -1 ) !important; } // sass-lint:disable-line no-important
8418
+ .\!#{$kendo-prefix}flip-h { transform: scaleX( -1 ) !important; } // stylelint-disable-line declaration-no-important
8437
8419
  .#{$kendo-prefix}flip-v { transform: scaleY( -1 ); }
8438
- .\!#{$kendo-prefix}flip-v { transform: scaleY( -1 ) !important; } // sass-lint:disable-line no-important
8420
+ .\!#{$kendo-prefix}flip-v { transform: scaleY( -1 ) !important; } // stylelint-disable-line declaration-no-important
8439
8421
  .#{$kendo-prefix}flip-h.#{$kendo-prefix}flip-v { transform: scale( -1, -1 ); }
8440
- .\!#{$kendo-prefix}flip-h.\!#{$kendo-prefix}flip-v { transform: scale( -1, -1 ) !important; } // sass-lint:disable-line no-important
8422
+ .\!#{$kendo-prefix}flip-h.\!#{$kendo-prefix}flip-v { transform: scale( -1, -1 ) !important; } // stylelint-disable-line declaration-no-important
8441
8423
 
8442
8424
  // Legacy aliases
8443
8425
  .#{$kendo-prefix}flip-x { @extend .#{$kendo-prefix}flip-h !optional; }
@@ -8562,11 +8544,11 @@ $kendo-utils: (
8562
8544
  /// @group transform
8563
8545
  /// @contextType css
8564
8546
 
8565
- // sass-lint:disable function-name-format
8547
+ // stylelint-disable scss/at-function-pattern
8566
8548
  @function __rotate( $val ) {
8567
8549
  @return rotate( $val );
8568
8550
  }
8569
- // sass-lint:enable function-name-format
8551
+ // stylelint-enable scss/at-function-pattern
8570
8552
 
8571
8553
  @mixin kendo-utils--transform--rotate() {
8572
8554
 
@@ -8596,7 +8578,7 @@ $kendo-utils: (
8596
8578
  /// @group transform
8597
8579
  /// @contextType css
8598
8580
 
8599
- // sass-lint:disable function-name-format
8581
+ // stylelint-disable scss/at-function-pattern
8600
8582
  @function __scale( $val ) {
8601
8583
  @return scale( $val );
8602
8584
  }
@@ -8606,7 +8588,7 @@ $kendo-utils: (
8606
8588
  @function __scale-y( $val ) {
8607
8589
  @return scaleY( $val );
8608
8590
  }
8609
- // sass-lint:enable function-name-format
8591
+ // stylelint-enable scss/at-function-pattern
8610
8592
 
8611
8593
  @mixin kendo-utils--transform--scale() {
8612
8594
 
@@ -8644,14 +8626,14 @@ $kendo-utils: (
8644
8626
  /// @group skew
8645
8627
  /// @contextType css
8646
8628
 
8647
- // sass-lint:disable function-name-format
8629
+ // stylelint-disable scss/at-function-pattern
8648
8630
  @function __skew-x( $val ) {
8649
8631
  @return skewX( $val );
8650
8632
  }
8651
8633
  @function __skew-y( $val ) {
8652
8634
  @return skewY( $val );
8653
8635
  }
8654
- // sass-lint:enable function-name-format
8636
+ // stylelint-enable scss/at-function-pattern
8655
8637
 
8656
8638
  @mixin kendo-utils--transform--skew() {
8657
8639
 
@@ -8718,7 +8700,7 @@ $kendo-utils: (
8718
8700
  /// @group transform
8719
8701
  /// @contextType css
8720
8702
 
8721
- // sass-lint:disable function-name-format
8703
+ // stylelint-disable scss/at-function-pattern
8722
8704
  @function __translate( $val ) {
8723
8705
  @return translate( $val );
8724
8706
  }
@@ -8728,7 +8710,7 @@ $kendo-utils: (
8728
8710
  @function __translate-y( $val ) {
8729
8711
  @return translateY( $val );
8730
8712
  }
8731
- // sass-lint:enable function-name-format
8713
+ // stylelint-enable scss/at-function-pattern
8732
8714
 
8733
8715
  @mixin kendo-utils--transform--translate() {
8734
8716