Skip to content

Commit 8325551

Browse files
committed
fix: update icon font content format and adjust CSS for better compatibility
1 parent a8be7e0 commit 8325551

File tree

3 files changed

+87
-115
lines changed

3 files changed

+87
-115
lines changed

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
44
"files": {
55
"ignoreUnknown": true,
6-
"includes": ["**", "!**/public/**/*", "!**/*.d.ts", "!**/.vscode/**/*", "!**/jsconfig.json", "!**/.babelrc", "!**/.hintrc"]
6+
"includes": ["**", "!**/*.css", "!**/public/**/*", "!**/*.d.ts", "!**/.vscode/**/*", "!**/jsconfig.json", "!**/.babelrc", "!**/.hintrc"]
77
},
88
"formatter": {
99
"enabled": true,

client/res/icons/acode.ttf

100755100644
688 Bytes
Binary file not shown.

client/res/icons/style.css

100755100644
Lines changed: 86 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@font-face {
22
font-family: "acode";
3-
src: url("acode.ttf?w5ytek") format("truetype");
3+
src: url("acode.ttf?gc6nhk#iefix");
44
font-weight: normal;
55
font-style: normal;
66
font-display: block;
@@ -9,6 +9,7 @@
99
.icon {
1010
/* use !important to prevent issues with browser extensions that change fonts */
1111
font-family: "acode" !important;
12+
speak: never;
1213
font-style: normal;
1314
font-weight: normal;
1415
font-variant: normal;
@@ -20,156 +21,127 @@
2021
-moz-osx-font-smoothing: grayscale;
2122
}
2223

23-
.icon.certificate:before {
24-
content: "e90d";
24+
.certificate:before {
25+
content: "\e90d";
2526
}
26-
27-
.icon.bitcoin:before {
28-
content: "e90c";
27+
.googleplay:before {
28+
content: "\e90f";
29+
color: #607d8b;
30+
}
31+
.f-droid:before {
32+
content: "\e90e";
33+
color: #1976d2;
34+
}
35+
.bitcoin:before {
36+
content: "\e90c";
2937
color: #f7931a;
3038
}
31-
32-
.icon.github:before {
33-
content: "e901";
39+
.github:before {
40+
content: "\e901";
3441
}
35-
36-
.icon.paypal:before {
37-
content: "e905";
42+
.paypal:before {
43+
content: "\e905";
3844
color: #00457c;
3945
}
40-
41-
.icon.navigate_next:before {
42-
content: "e90a";
46+
.navigate_next:before {
47+
content: "\e90a";
4348
}
44-
45-
.icon.navigate_before:before {
46-
content: "e90b";
49+
.navigate_before:before {
50+
content: "\e90b";
4751
}
48-
49-
.icon.chevron_left:before {
50-
content: "e90b";
52+
.chevron_left:before {
53+
content: "\e90b";
5154
}
52-
53-
.icon.verified:before {
54-
content: "e909";
55+
.verified:before {
56+
content: "\e909";
5557
}
56-
57-
.icon.star_outline:before {
58-
content: "e906";
58+
.star_outline:before {
59+
content: "\e906";
5960
}
60-
61-
.icon.star:before {
62-
content: "e907";
61+
.star:before {
62+
content: "\e907";
6363
}
64-
65-
.icon.favorite:before {
66-
content: "e908";
64+
.favorite:before {
65+
content: "\e908";
6766
}
68-
69-
.icon.account_balance:before {
70-
content: "e904";
67+
.account_balance:before {
68+
content: "\e904";
7169
}
72-
73-
.icon.warning:before {
74-
content: "e903";
70+
.warning:before {
71+
content: "\e903";
7572
}
76-
77-
.icon.chat_bubble:before {
78-
content: "e96d";
73+
.chat_bubble:before {
74+
content: "\e96d";
7975
}
80-
81-
.icon.add:before {
82-
content: "e992";
76+
.add:before {
77+
content: "\e992";
8378
}
84-
85-
.icon.clear:before {
86-
content: "e999";
79+
.clear:before {
80+
content: "\e999";
8781
}
88-
89-
.icon.content_copy:before {
90-
content: "e99a";
82+
.content_copy:before {
83+
content: "\e99a";
9184
}
92-
93-
.icon.create:before {
94-
content: "e99d";
85+
.create:before {
86+
content: "\e99d";
9587
}
96-
97-
.icon.flag:before {
98-
content: "e9a0";
88+
.flag:before {
89+
content: "\e9a0";
9990
}
100-
101-
.icon.report:before {
102-
content: "e9ab";
91+
.report:before {
92+
content: "\e9ab";
10393
}
104-
105-
.icon.outlined_flag:before {
106-
content: "e9b9";
94+
.outlined_flag:before {
95+
content: "\e9b9";
10796
}
108-
109-
.icon.access_time:before {
110-
content: "e9c7";
97+
.access_time:before {
98+
content: "\e9c7";
11199
}
112-
113-
.icon.publish:before {
114-
content: "ea26";
100+
.publish:before {
101+
content: "\ea26";
115102
}
116-
117-
.icon.download:before {
118-
content: "ea46";
103+
.download:before {
104+
content: "\ea46";
119105
}
120-
121-
.icon.menu:before {
122-
content: "eb58";
106+
.menu:before {
107+
content: "\eb58";
123108
}
124-
125-
.icon.refresh:before {
126-
content: "eb5b";
109+
.refresh:before {
110+
content: "\eb5b";
127111
}
128-
129-
.icon.person:before {
130-
content: "ebad";
112+
.person:before {
113+
content: "\ebad";
131114
}
132-
133-
.icon.share:before {
134-
content: "ebb3";
115+
.share:before {
116+
content: "\ebb3";
135117
}
136-
137-
.icon.delete:before {
138-
content: "ebe1";
118+
.delete:before {
119+
content: "\ebe1";
139120
}
140-
141-
.icon.done:before {
142-
content: "ebe4";
121+
.done:before {
122+
content: "\ebe4";
143123
}
144-
145-
.icon.done_all:before {
146-
content: "ebe5";
124+
.done_all:before {
125+
content: "\ebe5";
147126
}
148-
149-
.icon.thumb_down:before {
150-
content: "ec34";
127+
.thumb_down:before {
128+
content: "\ec34";
151129
}
152-
153-
.icon.thumb_up:before {
154-
content: "ec35";
130+
.thumb_up:before {
131+
content: "\ec35";
155132
}
156-
157-
.icon.logout:before {
158-
content: "ece8";
133+
.logout:before {
134+
content: "\ece8";
159135
}
160-
161-
.icon.thumb_down_alt:before {
162-
content: "ed07";
136+
.thumb_down_alt:before {
137+
content: "\ed07";
163138
}
164-
165-
.icon.thumb_up_alt:before {
166-
content: "ed08";
139+
.thumb_up_alt:before {
140+
content: "\ed08";
167141
}
168-
169-
.icon.mail:before {
170-
content: "e902";
142+
.mail:before {
143+
content: "\e902";
171144
}
172-
173-
.icon.earth:before {
174-
content: "e900";
145+
.earth:before {
146+
content: "\e900";
175147
}

0 commit comments

Comments
 (0)