@progress/kendo-font-icons 1.1.0 → 1.2.0
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/index.css +4 -2
- package/dist/kendo-font-icons.ttf +0 -0
- package/package.json +2 -2
- package/scss/_font.scss +1 -1
- package/scss/_icon-list.scss +1008 -0
- package/scss/_icons.scss +1008 -1006
- package/scss/all.scss +3 -0
- package/scss/index.scss +137 -139
package/scss/all.scss
ADDED
package/scss/index.scss
CHANGED
|
@@ -1,186 +1,184 @@
|
|
|
1
|
-
|
|
2
1
|
@import "_font.scss";
|
|
3
2
|
@import "_variables.scss";
|
|
3
|
+
@import "_icon-list.scss";
|
|
4
|
+
|
|
5
|
+
@mixin kendo-icon-styles() {
|
|
6
|
+
|
|
7
|
+
// Keep this as a root selector, because it doesn't work when nested inside selector
|
|
8
|
+
@at-root {
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: $ki-font-family;
|
|
11
|
+
font-style: normal;
|
|
12
|
+
font-weight: normal;
|
|
13
|
+
src: url( "#{$ki-font-url}" ) format( "truetype" );
|
|
14
|
+
}
|
|
15
|
+
}
|
|
4
16
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
17
|
+
|
|
18
|
+
// Font icon
|
|
19
|
+
.k-icon {
|
|
20
|
+
width: 1em;
|
|
21
|
+
height: 1em;
|
|
22
|
+
outline: 0;
|
|
23
|
+
font-size: $ki-icon-size;
|
|
8
24
|
font-family: $ki-font-family;
|
|
9
25
|
font-style: normal;
|
|
26
|
+
font-variant: normal;
|
|
10
27
|
font-weight: normal;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
// Font icon
|
|
16
|
-
.k-icon {
|
|
17
|
-
width: 1em;
|
|
18
|
-
height: 1em;
|
|
19
|
-
outline: 0;
|
|
20
|
-
font-size: $ki-icon-size;
|
|
21
|
-
font-family: $ki-font-family;
|
|
22
|
-
font-style: normal;
|
|
23
|
-
font-variant: normal;
|
|
24
|
-
font-weight: normal;
|
|
25
|
-
line-height: 1;
|
|
26
|
-
speak: none;
|
|
27
|
-
text-transform: none;
|
|
28
|
-
text-decoration: none;
|
|
29
|
-
flex-shrink: 0;
|
|
30
|
-
display: inline-flex;
|
|
31
|
-
flex-flow: row nowrap;
|
|
32
|
-
align-items: center;
|
|
33
|
-
justify-content: center;
|
|
34
|
-
vertical-align: middle;
|
|
35
|
-
position: relative;
|
|
36
|
-
-moz-osx-font-smoothing: grayscale;
|
|
37
|
-
-webkit-font-smoothing: antialiased;
|
|
38
|
-
|
|
39
|
-
&:hover,
|
|
40
|
-
&:focus {
|
|
28
|
+
line-height: 1;
|
|
29
|
+
speak: none;
|
|
30
|
+
text-transform: none;
|
|
41
31
|
text-decoration: none;
|
|
32
|
+
flex-shrink: 0;
|
|
33
|
+
display: inline-flex;
|
|
34
|
+
flex-flow: row nowrap;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
vertical-align: middle;
|
|
38
|
+
position: relative;
|
|
39
|
+
-moz-osx-font-smoothing: grayscale;
|
|
40
|
+
-webkit-font-smoothing: antialiased;
|
|
41
|
+
|
|
42
|
+
&:hover,
|
|
43
|
+
&:focus {
|
|
44
|
+
text-decoration: none;
|
|
45
|
+
}
|
|
42
46
|
}
|
|
43
|
-
}
|
|
44
47
|
|
|
45
48
|
|
|
46
|
-
// Svg icon
|
|
47
|
-
.k-svg-icon {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
49
|
+
// Svg icon
|
|
50
|
+
.k-svg-icon {
|
|
51
|
+
width: $ki-icon-size;
|
|
52
|
+
height: $ki-icon-size;
|
|
53
|
+
outline: 0;
|
|
54
|
+
line-height: 1;
|
|
55
|
+
display: inline-flex;
|
|
56
|
+
flex-flow: row nowrap;
|
|
57
|
+
align-items: center;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
vertical-align: middle;
|
|
60
|
+
position: relative;
|
|
58
61
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
+
> svg {
|
|
63
|
+
fill: currentColor;
|
|
64
|
+
flex: 1 1 auto;
|
|
65
|
+
}
|
|
62
66
|
}
|
|
63
|
-
}
|
|
64
67
|
|
|
65
68
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
+
// Empty icon
|
|
70
|
+
.k-i-none::before {
|
|
71
|
+
display: none !important; // stylelint-disable-line
|
|
72
|
+
}
|
|
69
73
|
|
|
70
74
|
|
|
71
|
-
// Icon sizes
|
|
72
|
-
.k-icon-xs {
|
|
73
|
-
|
|
75
|
+
// Icon sizes
|
|
76
|
+
.k-icon-xs {
|
|
77
|
+
font-size: $ki-icon-size-xs;
|
|
74
78
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
79
|
+
&.k-svg-icon {
|
|
80
|
+
width: $ki-icon-size-xs;
|
|
81
|
+
height: $ki-icon-size-xs;
|
|
82
|
+
}
|
|
78
83
|
}
|
|
79
|
-
|
|
84
|
+
.k-icon-sm {
|
|
85
|
+
font-size: $ki-icon-size-sm;
|
|
80
86
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
width: $ki-icon-size-sm;
|
|
86
|
-
height: $ki-icon-size-sm;
|
|
87
|
+
&.k-svg-icon {
|
|
88
|
+
width: $ki-icon-size-sm;
|
|
89
|
+
height: $ki-icon-size-sm;
|
|
90
|
+
}
|
|
87
91
|
}
|
|
88
|
-
|
|
92
|
+
.k-icon-md {
|
|
93
|
+
font-size: $ki-icon-size-md;
|
|
89
94
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
width: $ki-icon-size-md;
|
|
95
|
-
height: $ki-icon-size-md;
|
|
95
|
+
&.k-svg-icon {
|
|
96
|
+
width: $ki-icon-size-md;
|
|
97
|
+
height: $ki-icon-size-md;
|
|
98
|
+
}
|
|
96
99
|
}
|
|
97
|
-
|
|
100
|
+
.k-icon-lg {
|
|
101
|
+
font-size: $ki-icon-size-lg;
|
|
98
102
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
width: $ki-icon-size-lg;
|
|
104
|
-
height: $ki-icon-size-lg;
|
|
103
|
+
&.k-svg-icon {
|
|
104
|
+
width: $ki-icon-size-lg;
|
|
105
|
+
height: $ki-icon-size-lg;
|
|
106
|
+
}
|
|
105
107
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
.k-icon-xl {
|
|
109
|
-
font-size: $ki-icon-size-xl;
|
|
108
|
+
.k-icon-xl {
|
|
109
|
+
font-size: $ki-icon-size-xl;
|
|
110
110
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
&.k-svg-icon {
|
|
112
|
+
width: $ki-icon-size-xl;
|
|
113
|
+
height: $ki-icon-size-xl;
|
|
114
|
+
}
|
|
114
115
|
}
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
.k-icon-xxl {
|
|
118
|
-
font-size: $ki-icon-size-xxl;
|
|
116
|
+
.k-icon-xxl {
|
|
117
|
+
font-size: $ki-icon-size-xxl;
|
|
119
118
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
119
|
+
&.k-svg-icon {
|
|
120
|
+
width: $ki-icon-size-xxl;
|
|
121
|
+
height: $ki-icon-size-xxl;
|
|
122
|
+
}
|
|
123
123
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
.k-icon-xxxl {
|
|
127
|
-
font-size: $ki-icon-size-xxxl;
|
|
124
|
+
.k-icon-xxxl {
|
|
125
|
+
font-size: $ki-icon-size-xxxl;
|
|
128
126
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
127
|
+
&.k-svg-icon {
|
|
128
|
+
width: $ki-icon-size-xxxl;
|
|
129
|
+
height: $ki-icon-size-xxxl;
|
|
130
|
+
}
|
|
132
131
|
}
|
|
133
|
-
}
|
|
134
132
|
|
|
135
|
-
// Flip
|
|
136
133
|
|
|
137
|
-
|
|
138
|
-
.k-flip-
|
|
139
|
-
.k-flip-
|
|
140
|
-
|
|
141
|
-
|
|
134
|
+
// Flip
|
|
135
|
+
.k-flip-h,
|
|
136
|
+
.k-flip-v,
|
|
137
|
+
.k-flip-h.k-flip-v {
|
|
138
|
+
&.k-svg-icon {
|
|
139
|
+
transform: none;
|
|
140
|
+
}
|
|
142
141
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
.k-flip-h {
|
|
146
|
-
transform: scaleX( -1 );
|
|
147
|
-
|
|
148
|
-
> svg {
|
|
142
|
+
.k-flip-h {
|
|
149
143
|
transform: scaleX( -1 );
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
.k-flip-v {
|
|
154
|
-
transform: scaleY( -1 );
|
|
155
144
|
|
|
156
|
-
|
|
157
|
-
|
|
145
|
+
> svg {
|
|
146
|
+
transform: scaleX( -1 );
|
|
147
|
+
}
|
|
158
148
|
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
.k-flip-h.k-flip-v {
|
|
162
|
-
transform: scale( -1, -1 );
|
|
149
|
+
.k-flip-v {
|
|
150
|
+
transform: scaleY( -1 );
|
|
163
151
|
|
|
164
|
-
|
|
152
|
+
> svg {
|
|
153
|
+
transform: scaleY( -1 );
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
.k-flip-h.k-flip-v,
|
|
157
|
+
.k-flip-both {
|
|
165
158
|
transform: scale( -1, -1 );
|
|
159
|
+
|
|
160
|
+
> svg {
|
|
161
|
+
transform: scale( -1, -1 );
|
|
162
|
+
}
|
|
166
163
|
}
|
|
167
|
-
}
|
|
168
164
|
|
|
169
|
-
// Rotate
|
|
170
165
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
166
|
+
// Rotate
|
|
167
|
+
@each $index, $rotate in $ki-rotate-map {
|
|
168
|
+
.k-rotate-#{$index} {
|
|
169
|
+
transform: rotate( #{$rotate} );
|
|
174
170
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
171
|
+
&.k-svg-icon {
|
|
172
|
+
transform: none;
|
|
173
|
+
}
|
|
178
174
|
|
|
179
|
-
|
|
180
|
-
|
|
175
|
+
> svg {
|
|
176
|
+
transform: rotate( #{$rotate} );
|
|
177
|
+
}
|
|
181
178
|
}
|
|
182
179
|
}
|
|
183
|
-
}
|
|
184
180
|
|
|
185
181
|
|
|
186
|
-
@
|
|
182
|
+
@include kendo-icon-list();
|
|
183
|
+
|
|
184
|
+
}
|