Skip to content

Commit 42e4040

Browse files
authored
fix(icon): unify icon font usage in themes
This PR unifies the new icon usage via a LESS maps instead of overrides introduced in 2.9.0 for the default fontawesome icons also for some themes which are using a different icon font (infact it is a bugfix now, because otherwise there were fontaweome icon names also generated even though the different theme did not include such in the icon font file Also some themes were missing woff2 files.
1 parent 63633b2 commit 42e4040

File tree

8 files changed

+1292
-3795
lines changed

8 files changed

+1292
-3795
lines changed
20 KB
Binary file not shown.

src/themes/basic/elements/icon.overrides

Lines changed: 0 additions & 429 deletions
Large diffs are not rendered by default.

src/themes/basic/elements/icon.variables

Lines changed: 139 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,152 @@
77
@fonts: {
88
@solid: {
99
font-family: @fontName;
10-
src: url("@{fontPath}/@{fontName}.woff") format("woff");
10+
src: url("@{fontPath}/@{fontName}.woff2") format("woff2") if(@supportIE, e(",") url("@{fontPath}/@{fontName}.woff") format("woff"));
1111
font-style: normal;
1212
font-weight: @normal;
1313
font-variant: normal;
1414
text-decoration: inherit;
1515
text-transform: none;
1616
};
1717
};
18+
@icon-map: {
19+
circle_attention: "\2757"; /* ❗ */
20+
circle_help: "\e704"; /*  */
21+
circle_info: "\e705"; /*  */
22+
add: "\2795"; /* ➕ */
23+
chart: "\1f4c8"; /* 📈 */
24+
chart_bar: "\1f4ca"; /* 📊 */
25+
chart_pie: "\e7a2"; /*  */
26+
resize_full: "\e744"; /*  */
27+
resize_horizontal: "\2b0d"; /* ⬍ */
28+
resize_small: "\e746"; /*  */
29+
resize_vertical: "\2b0c"; /* ⬌ */
30+
down: "\2193"; /* ↓ */
31+
down_triangle: "\25be"; /* ▾ */
32+
down_arrow: "\e75c"; /*  */
33+
left: "\2190"; /* ← */
34+
left_triangle: "\25c2"; /* ◂ */
35+
left_arrow: "\e75d"; /*  */
36+
right: "\2192"; /* → */
37+
right_triangle: "\25b8"; /* ▸ */
38+
right_arrow: "\e75e"; /*  */
39+
up: "\2191"; /* ↑ */
40+
up_triangle: "\25b4"; /* ▴ */
41+
up_arrow: "\e75f"; /*  */
42+
folder: "\e810"; /*  */
43+
open_folder: "\1f4c2"; /* 📂 */
44+
desk_globe: "\1f310"; /* 🌐 */
45+
star: "\e801"; /*  */
46+
star_empty: "\e800"; /*  */
47+
star_half: "\e701"; /*  */
48+
lock: "\1f512"; /* 🔒 */
49+
unlock: "\1f513"; /* 🔓 */
50+
layout_grid: "\e80c"; /*  */
51+
layout_block: "\e708"; /*  */
52+
layout_list: "\e80b"; /*  */
53+
heart_empty: "\2661"; /* ♡ */
54+
heart: "\2665"; /* ♥ */
55+
asterisk: "\2731"; /* ✱ */
56+
attachment: "\1f4ce"; /* 📎 */
57+
attention: "\26a0"; /* ⚠ */
58+
trophy: "\1f3c9"; /* 🏉 */
59+
barcode: "\e792"; /*  */
60+
cart: "\e813"; /*  */
61+
block: "\1f6ab"; /* 🚫 */
62+
book: "📖";
63+
bookmark: "\1f516"; /* 🔖 */
64+
calendar: "\1f4c5"; /* 📅 */
65+
cancel: "\2716"; /* ✖ */
66+
close: "\e80d"; /*  */
67+
color: "\e794"; /*  */
68+
chat: "\e720"; /*  */
69+
check: "\2611"; /* ☑ */
70+
time: "\1f554"; /* 🕔 */
71+
cloud: "\2601"; /* ☁ */
72+
code: "\e714"; /*  */
73+
email: "\40"; /* @ */
74+
settings: "\26ef"; /* ⛯ */
75+
setting: "\2699"; /* ⚙ */
76+
comment: "\e802"; /*  */
77+
clockwise_counter: "\27f2"; /* ⟲ */
78+
clockwise: "\27f3"; /* ⟳ */
79+
cube: "\e807"; /*  */
80+
direction: "\27a2"; /* ➢ */
81+
doc: "\1f4c4"; /* 📄 */
82+
docs: "\e736"; /*  */
83+
dollar: "\1f4b5"; /* 💵 */
84+
paint: "\e7b5"; /*  */
85+
edit: "\270d"; /* ✍ */
86+
eject: "\2ecf"; /* ⻏ */
87+
export: "\e715"; /*  */
88+
hide: "\e70b"; /*  */
89+
unhide: "\e80f"; /*  */
90+
facebook: "\f301"; /*  */
91+
fast-forward: "\e804"; /*  */
92+
fire: "\1f525"; /* 🔥 */
93+
flag: "\2691"; /* ⚑ */
94+
lightning: "\26a1"; /* ⚡ */
95+
lab: "\68"; /* h */
96+
flight: "\2708"; /* ✈ */
97+
forward: "\27a6"; /* ➦ */
98+
gift: "\1f381"; /* 🎁 */
99+
github: "\f308"; /*  */
100+
globe: "\e817"; /*  */
101+
headphones: "\1f3a7"; /* 🎧 */
102+
question: "\2753"; /* ❓ */
103+
home: "\2302"; /* ⌂ */
104+
i: "\2139"; /* ℹ */
105+
idea: "\1f4a1"; /* 💡 */
106+
open: "\1f517"; /* 🔗 */
107+
content: "\e782"; /*  */
108+
location: "\e724"; /*  */
109+
mail: "\2709"; /* ✉ */
110+
mic: "\1f3a4"; /* 🎤 */
111+
minus: "\2d"; /* - */
112+
money: "\1f4b0"; /* 💰 */
113+
off: "\e78e"; /*  */
114+
pause: "\e808"; /*  */
115+
photos: "\e812"; /*  */
116+
photo: "\1f304"; /* 🌄 */
117+
pin: "\1f4cc"; /* 📌 */
118+
play: "\e809"; /*  */
119+
plus: "\2b"; /* + */
120+
print: "\e716"; /*  */
121+
rss: "\e73a"; /*  */
122+
search: "\1f50d"; /* 🔍 */
123+
shuffle: "\e803"; /*  */
124+
tag: "\e80a"; /*  */
125+
tags: "\e70d"; /*  */
126+
terminal: "\e7ac"; /*  */
127+
thumbs_down: "\1f44e"; /* 👎 */
128+
thumbs_up: "\1f44d"; /* 👍 */
129+
to-end: "\e806"; /*  */
130+
to-start: "\e805"; /*  */
131+
top_list: "\1f3c6"; /* 🏆 */
132+
trash: "\e729"; /*  */
133+
twitter: "\f303"; /*  */
134+
upload: "\e711"; /*  */
135+
user_add: "\e700"; /*  */
136+
user: "\1f464"; /* 👤 */
137+
community: "\e814"; /*  */
138+
users: "\1f465"; /* 👥 */
139+
id: "\e722"; /*  */
140+
url: "\1f517"; /* 🔗 */
141+
zoom_in: "\e750"; /*  */
142+
zoom_out: "\e751"; /*  */
143+
};
144+
@icon-aliases-map: {
145+
delete: "\e80d"; /*  */
146+
dropdown: "\25be"; /* ▾ */
147+
help: "\e704"; /*  */
148+
info: "\e705"; /*  */
149+
error: "\e80d"; /*  */
150+
dislike: "\2661"; /* ♡ */
151+
like: "\2665"; /* ♥ */
152+
eye: "\e80f"; /*  */
153+
eye_hidden: "\e70b"; /*  */
154+
date: "\1f4c5"; /* 📅 */
155+
};
18156
@icon-deprecated-map: {
19157
};
20158
@icon-outline-map: {
13.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)