5
5
6
6
/*******************************
7
7
8
- Fomantic-UI integration of FontAwesome :
8
+ Fomantic-UI integration of FontAwesome:
9
9
10
10
// class names are separated
11
11
i.icon.angle-left => i.icon.angle.left
@@ -31,9 +31,9 @@ Icons are order A-Z in their group, Solid, Outline, Thin (Pro only) and Brand
31
31
Icon
32
32
*******************************/
33
33
34
- /*--------------
34
+ /* --------------
35
35
Font Files
36
- ---------------*/
36
+ --------------- */
37
37
38
38
/* Solid Icons */
39
39
@importIcons: true;
@@ -45,158 +45,155 @@ Icons are order A-Z in their group, Solid, Outline, Thin (Pro only) and Brand
45
45
46
46
@fonts: {
47
47
{% if icons .solid .icons .length > 0 -%}
48
- @solid: {
49
- font-family: @fontName;
50
- src: url(" @{fontPath}/@{fontName}.woff2" ) format('woff2')
51
- if(@supportIE, e(',') url(" @{fontPath}/@{fontName}.woff" ) format('woff'));
52
- font-style : normal;
53
- font-weight : @normal;
54
- font-display : block;
55
- font-variant : normal;
56
- text-decoration: inherit;
57
- text-transform : none;
58
- };
48
+ @solid: {
49
+ font-family: @fontName;
50
+ src: url(' @{fontPath}/@{fontName}.woff2' ) format('woff2')
51
+ if(@supportIE, e(',') url(' @{fontPath}/@{fontName}.woff' ) format('woff'));
52
+ font-style : normal;
53
+ font-weight : @normal;
54
+ font-display : block;
55
+ font-variant : normal;
56
+ text-decoration: inherit;
57
+ text-transform: none;
58
+ };
59
59
{%- endif %}
60
60
{% if icons .outline .icons .length > 0 -%}
61
- @outline: {
62
- font-family: @outlineFontName;
63
- src: url(" @{fontPath}/@{outlineFontName}.woff2" ) format('woff2')
64
- if(@supportIE, e(',') url(" @{fontPath}/@{outlineFontName}.woff" ) format('woff'));
65
- font-style : normal;
66
- font-weight : @normal;
67
- font-display : block;
68
- font-variant : normal;
69
- text-decoration: inherit;
70
- text-transform : none;
71
- };
61
+ @outline: {
62
+ font-family: @outlineFontName;
63
+ src: url(' @{fontPath}/@{outlineFontName}.woff2' ) format('woff2')
64
+ if(@supportIE, e(',') url(' @{fontPath}/@{outlineFontName}.woff' ) format('woff'));
65
+ font-style : normal;
66
+ font-weight : @normal;
67
+ font-display : block;
68
+ font-variant : normal;
69
+ text-decoration: inherit;
70
+ text-transform: none;
71
+ };
72
72
{%- endif %}
73
73
{% if icons .thin .icons .length > 0 -%}
74
- @thin: {
75
- font-family: @thinFontName;
76
- src: url(" @{fontPath}/@{thinFontName}.woff2" ) format('woff2')
77
- if(@supportIE, e(',') url(" @{fontPath}/@{thinFontName}.woff" ) format('woff'));
78
- font-style : normal;
79
- font-weight : @normal;
80
- font-display : block;
81
- font-variant : normal;
82
- text-decoration: inherit;
83
- text-transform : none;
84
- };
74
+ @thin: {
75
+ font-family: @thinFontName;
76
+ src: url(' @{fontPath}/@{thinFontName}.woff2' ) format('woff2')
77
+ if(@supportIE, e(',') url(' @{fontPath}/@{thinFontName}.woff' ) format('woff'));
78
+ font-style : normal;
79
+ font-weight : @normal;
80
+ font-display : block;
81
+ font-variant : normal;
82
+ text-decoration: inherit;
83
+ text-transform: none;
84
+ };
85
85
{%- endif %}
86
86
{% if icons .brand .icons .length > 0 -%}
87
- @brand: {
88
- font-family: @brandFontName;
89
- src: url(" @{fontPath}/@{brandFontName}.woff2" ) format('woff2')
90
- if(@supportIE, e(',') url(" @{fontPath}/@{brandFontName}.woff" ) format('woff'));
91
- font-style : normal;
92
- font-weight : @normal;
93
- font-display : block;
94
- font-variant : normal;
95
- text-decoration: inherit;
96
- text-transform : none;
97
- };
87
+ @brand: {
88
+ font-family: @brandFontName;
89
+ src: url(' @{fontPath}/@{brandFontName}.woff2' ) format('woff2')
90
+ if(@supportIE, e(',') url(' @{fontPath}/@{brandFontName}.woff' ) format('woff'));
91
+ font-style : normal;
92
+ font-weight : @normal;
93
+ font-display : block;
94
+ font-variant : normal;
95
+ text-decoration: inherit;
96
+ text-transform: none;
97
+ };
98
98
{%- endif %}
99
99
{% if icons .duotone .icons .length > 0 -%}
100
- @duotone: {
101
- font-family: @duotoneFontName;
102
- src: url(" @{fontPath}/@{duotoneFontName}.woff2" ) format('woff2')
103
- if(@supportIE, e(',') url(" @{fontPath}/@{duotoneFontName}.woff" ) format('woff'));
104
- font-style : normal;
105
- font-weight : @normal;
106
- font-display : block;
107
- font-variant : normal;
108
- text-decoration: inherit;
109
- text-transform : none;
110
- };
100
+ @duotone: {
101
+ font-family: @duotoneFontName;
102
+ src: url(' @{fontPath}/@{duotoneFontName}.woff2' ) format('woff2')
103
+ if(@supportIE, e(',') url(' @{fontPath}/@{duotoneFontName}.woff' ) format('woff'));
104
+ font-style : normal;
105
+ font-weight : @normal;
106
+ font-display : block;
107
+ font-variant : normal;
108
+ text-decoration: inherit;
109
+ text-transform: none;
110
+ };
111
111
{%- endif %}
112
-
113
112
};
114
113
115
-
116
114
// Underscores in map keys will be replaced by dots to separate classnames at compile time
117
115
118
- /* Deprecated * In/Out Naming Conflict) */
116
+ /* Deprecated ( In/Out Naming Conflict) */
119
117
@icon-deprecated-map: {
120
- linkedin_in:\f0e1;
121
- zoom_in: \f00e;
122
- zoom_out: \f010;
123
- sign_in: \f2f6;
124
- in_cart: \f218;
125
- log_out: \f2f5;
126
- sign_out: \f2f5;
118
+ linkedin_in: ' \f0e1' ;
119
+ zoom_in: ' \f00e' ;
120
+ zoom_out: ' \f010' ;
121
+ sign_in: ' \f2f6' ;
122
+ in_cart: ' \f218' ;
123
+ log_out: ' \f2f5' ;
124
+ sign_out: ' \f2f5' ;
127
125
};
128
126
129
127
/* Icons */
130
128
@icon-map: {
131
129
{% for icon in icons .solid .icons -%}
132
- {{ icon .className | replace: "." , "_" }}: {{ icon .unicode }};
130
+ {{ icon .className | replace: "." , "_" }}: ' {{ icon .unicode }}' ;
133
131
{% endfor -%}
134
132
};
135
133
136
134
@icon-aliases-map: {
137
135
{% for icon in icons .solid .aliases -%}
138
- {{ icon .className | replace: "." , "_" }}: {{ icon .unicode }};
136
+ {{ icon .className | replace: "." , "_" }}: ' {{ icon .unicode }}' ;
139
137
{% endfor -%}
140
138
};
141
139
142
140
@icon-outline-map: {
143
141
{% for icon in icons .outline .icons -%}
144
- {{ icon .className | replace: "." , "_" }}: {{ icon .unicode }};
142
+ {{ icon .className | replace: "." , "_" }}: ' {{ icon .unicode }}' ;
145
143
{% endfor -%}
146
144
};
147
145
@icon-outline-aliases-map: {
148
146
{% for icon in icons .outline .aliases -%}
149
- {{ icon .className | replace: "." , "_" }}: {{ icon .unicode }};
147
+ {{ icon .className | replace: "." , "_" }}: ' {{ icon .unicode }}' ;
150
148
{% endfor -%}
151
149
};
152
150
153
151
@icon-thin-map: {
154
152
{% for icon in icons .thin .icons -%}
155
- {{ icon .className | replace: "." , "_" }}: {{ icon .unicode }};
153
+ {{ icon .className | replace: "." , "_" }}: ' {{ icon .unicode }}' ;
156
154
{% endfor -%}
157
155
};
158
156
@icon-thin-aliases-map: {
159
157
{% for icon in icons .thin .aliases -%}
160
- {{ icon .className | replace: "." , "_" }}: {{ icon .unicode }};
158
+ {{ icon .className | replace: "." , "_" }}: ' {{ icon .unicode }}' ;
161
159
{% endfor -%}
162
160
};
163
161
164
162
@icon-brand-map: {
165
163
{% for icon in icons .brand .icons -%}
166
- {{ icon .className | replace: "." , "_" }}: {{ icon .unicode }};
164
+ {{ icon .className | replace: "." , "_" }}: ' {{ icon .unicode }}' ;
167
165
{% endfor -%}
168
166
};
169
167
@icon-brand-aliases-map: {
170
168
{% for icon in icons .brand .aliases -%}
171
- {{ icon .className | replace: "." , "_" }}: {{ icon .unicode }};
169
+ {{ icon .className | replace: "." , "_" }}: ' {{ icon .unicode }}' ;
172
170
{% endfor -%}
173
171
};
174
172
175
173
@icon-duotone-map: {
176
174
{% for icon in icons .duotone .icons -%}
177
- {{ icon .className | replace: "." , "_" }}: {{ icon .unicode }};
175
+ {{ icon .className | replace: "." , "_" }}: ' {{ icon .unicode }}' ;
178
176
{% endfor -%}
179
177
};
180
178
@icon-duotone-secondary-map: {
181
179
{% for icon in icons .duotone .icons -%}
182
- {{ icon .className | replace: "." , "_" }}: {{ icon .secondaryUnicode }};
180
+ {{ icon .className | replace: "." , "_" }}: ' {{ icon .secondaryUnicode }}' ;
183
181
{% endfor -%}
184
182
};
185
183
@icon-duotone-aliases-map: {
186
184
{% for icon in icons .duotone .aliases -%}
187
- {{ icon .className | replace: "." , "_" }}: {{ icon .unicode }};
185
+ {{ icon .className | replace: "." , "_" }}: ' {{ icon .unicode }}' ;
188
186
{% endfor -%}
189
187
};
190
188
@icon-duotone-secondary-aliases-map: {
191
189
{% for icon in icons .duotone .aliases -%}
192
- {{ icon .className | replace: "." , "_" }}: {{ icon .secondaryUnicode }};
190
+ {{ icon .className | replace: "." , "_" }}: ' {{ icon .secondaryUnicode }}' ;
193
191
{% endfor -%}
194
192
};
195
193
196
-
197
- /*--------------
194
+ /* --------------
198
195
Definition
199
- ---------------*/
196
+ --------------- */
200
197
201
198
/* Icon Variables */
202
199
@opacity: 1;
@@ -205,7 +202,6 @@ Icons are order A-Z in their group, Solid, Outline, Thin (Pro only) and Brand
205
202
@distanceFromText: 0.25rem;
206
203
@lineHeight: 1;
207
204
208
-
209
205
/* Variations */
210
206
@linkOpacity: 0.8;
211
207
@linkDuration: 0.3s;
@@ -225,16 +221,16 @@ Icons are order A-Z in their group, Solid, Outline, Thin (Pro only) and Brand
225
221
@cornerIconSize: 0.45em;
226
222
@cornerIconStroke: 1px;
227
223
@cornerIconShadow:
228
- -@cornerIconStroke -@cornerIconStroke 0 @white,
229
- @cornerIconStroke -@cornerIconStroke 0 @white,
230
- -@cornerIconStroke @cornerIconStroke 0 @white,
231
- @cornerIconStroke @cornerIconStroke 0 @white
224
+ -@cornerIconStroke -@cornerIconStroke 0 @white,
225
+ @cornerIconStroke -@cornerIconStroke 0 @white,
226
+ -@cornerIconStroke @cornerIconStroke 0 @white,
227
+ @cornerIconStroke @cornerIconStroke 0 @white
232
228
;
233
229
@cornerIconInvertedShadow:
234
- -@cornerIconStroke -@cornerIconStroke 0 @black,
235
- @cornerIconStroke -@cornerIconStroke 0 @black,
236
- -@cornerIconStroke @cornerIconStroke 0 @black,
237
- @cornerIconStroke @cornerIconStroke 0 @black
230
+ -@cornerIconStroke -@cornerIconStroke 0 @black,
231
+ @cornerIconStroke -@cornerIconStroke 0 @black,
232
+ -@cornerIconStroke @cornerIconStroke 0 @black,
233
+ @cornerIconStroke @cornerIconStroke 0 @black
238
234
;
239
235
240
236
@cornerOffset: 0;
@@ -248,3 +244,9 @@ Icons are order A-Z in their group, Solid, Outline, Thin (Pro only) and Brand
248
244
@big: 2em;
249
245
@huge: 4em;
250
246
@massive: 8em;
247
+
248
+ /* Duotone specifics */
249
+ @duotonePrimaryColor: inherit;
250
+ @duotonePrimaryOpacity: 1;
251
+ @duotoneSecondaryColor: inherit;
252
+ @duotoneSecondaryOpacity: 0.4;
0 commit comments