@progress/kendo-font-icons 4.9.3 → 4.10.0-dev.1

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.
@@ -594,6 +594,7 @@
594
594
  .k-i-x-mark::before { content: "\e181"; }
595
595
  .k-i-x-mark-sm-outline::before { content: "\e182"; }
596
596
  .k-i-zoom-sparkle::before { content: "\e183"; }
597
+ .k-i-repeat::before { content: "\e184"; }
597
598
  .k-i-play::before { content: "\e200"; }
598
599
  .k-i-pause::before { content: "\e201"; }
599
600
  .k-i-stop::before { content: "\e202"; }
@@ -5,13 +5,13 @@ $ki-icon-default-size: md !default;
5
5
  $ki-font-family: "WebComponentsIcons" !default;
6
6
  $ki-icon-size: 16px !default;
7
7
 
8
- $ki-icon-size-xs: calc( #{$ki-icon-size} * .75 ) !default;
9
- $ki-icon-size-sm: calc( #{$ki-icon-size} * .875 ) !default;
10
- $ki-icon-size-md: $ki-icon-size !default;
11
- $ki-icon-size-lg: calc( #{$ki-icon-size} * 1.25 ) !default;
12
- $ki-icon-size-xl: calc( #{$ki-icon-size} * 1.5 ) !default;
13
- $ki-icon-size-xxl: calc( #{$ki-icon-size} * 2 ) !default;
14
- $ki-icon-size-xxxl: calc( #{$ki-icon-size} * 3 ) !default;
8
+ $ki-icon-size-xs: var(--kendo-icon-size-xs, calc( var(--kendo-icon-size, #{$ki-icon-size}) * .75 )) !default;
9
+ $ki-icon-size-sm: var(--kendo-icon-size-sm, calc( var(--kendo-icon-size, #{$ki-icon-size}) * .875 )) !default;
10
+ $ki-icon-size-md: var(--kendo-icon-size-md, var(--kendo-icon-size, #{$ki-icon-size})) !default;
11
+ $ki-icon-size-lg: var(--kendo-icon-size-lg, calc( var(--kendo-icon-size, #{$ki-icon-size}) * 1.25 )) !default;
12
+ $ki-icon-size-xl: var(--kendo-icon-size-xl, calc( var(--kendo-icon-size, #{$ki-icon-size}) * 1.5 )) !default;
13
+ $ki-icon-size-xxl: var(--kendo-icon-size-xxl, calc( var(--kendo-icon-size, #{$ki-icon-size}) * 2 )) !default;
14
+ $ki-icon-size-xxxl: var(--kendo-icon-size-xxxl, calc( var(--kendo-icon-size, #{$ki-icon-size}) * 3 )) !default;
15
15
 
16
16
  $ki-embed-font: false !default;
17
17
  $ki-font-file-url: "kendo-font-icons.ttf" !default;
package/scss/index.scss CHANGED
@@ -16,6 +16,17 @@
16
16
  }
17
17
  }
18
18
 
19
+ :root {
20
+ --kendo-icon-size: #{$ki-icon-size};
21
+ --kendo-icon-size-xs: calc( var(--kendo-icon-size) * .75 );
22
+ --kendo-icon-size-sm: calc( var(--kendo-icon-size) * .875 );
23
+ --kendo-icon-size-md: var(--kendo-icon-size);
24
+ --kendo-icon-size-lg: calc( var(--kendo-icon-size) * 1.25 );
25
+ --kendo-icon-size-xl: calc( var(--kendo-icon-size) * 1.5 );
26
+ --kendo-icon-size-xxl: calc( var(--kendo-icon-size) * 2 );
27
+ --kendo-icon-size-xxxl: calc( var(--kendo-icon-size) * 3 );
28
+ --kendo-icon-rotation: 0deg;
29
+ }
19
30
 
20
31
  // Font icon
21
32
  .k-font-icon {
@@ -39,13 +50,14 @@
39
50
  position: relative;
40
51
  -moz-osx-font-smoothing: grayscale;
41
52
  -webkit-font-smoothing: antialiased;
53
+ transform: rotate( var(--kendo-icon-rotation) );
42
54
 
43
55
  &:hover,
44
56
  &:focus {
45
57
  text-decoration: none;
46
58
  }
47
59
 
48
- // SVG Icon sizes
60
+ // Font Icon sizes
49
61
  @each $size, $value in $ki-icon-sizes {
50
62
  #{if($ki-icon-default-size == $size, "&,", null)}
51
63
  &.k-icon-#{$size} {
@@ -75,7 +87,8 @@
75
87
  // Rotate
76
88
  @each $index, $rotate in $ki-rotate-map {
77
89
  .k-rotate-#{$index} {
78
- transform: rotate( #{$rotate} );
90
+ --kendo-icon-rotation: #{$rotate};
91
+ transform: rotate( var(--kendo-icon-rotation) );
79
92
  }
80
93
  }
81
94
 
Binary file