Skip to content

Commit d8203ea

Browse files
committed
Remove no longer necessary Unicode escaping
1 parent b6cbc11 commit d8203ea

File tree

1 file changed

+22
-28
lines changed

1 file changed

+22
-28
lines changed

src/scss/react-checkbox-tree.scss

Lines changed: 22 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ $rct-outline-radius: 2px;
1010
$rct-outline-size: 2px !default;
1111
$rct-outline-offset: -2px !default;
1212

13-
// Force ASCII output until Sass supports it
14-
// https://github.com/sass/dart-sass/issues/568
15-
@function unicode($str) {
16-
@return unquote('"') + unquote(str-insert($str, "\\", 1)) + unquote('"');
17-
}
18-
1913
.react-checkbox-tree {
2014
display: flex;
2115
flex-direction: row-reverse;
@@ -221,90 +215,90 @@ $rct-outline-offset: -2px !default;
221215
// Font Awesome 4 style
222216
.rct-icons-fa4 {
223217
.rct-icon-expand-close::before {
224-
content: unicode("f054");
218+
content: "\f054";
225219
}
226220

227221
.rct-icon-expand-open::before {
228-
content: unicode("f078");
222+
content: "\f078";
229223
}
230224

231225
.rct-icon-uncheck::before {
232-
content: unicode("f096");
226+
content: "\f096";
233227
}
234228

235229
.rct-icon-check::before {
236-
content: unicode("f046");
230+
content: "\f046";
237231
}
238232

239233
.rct-icon-half-check::before {
240-
content: unicode("f046");
234+
content: "\f046";
241235
opacity: 0.5;
242236
}
243237

244238
.rct-icon-leaf::before {
245-
content: unicode("f016");
239+
content: "\f016";
246240
}
247241

248242
.rct-icon-parent-open::before {
249-
content: unicode("f115");
243+
content: "\f115";
250244
}
251245

252246
.rct-icon-parent-close::before {
253-
content: unicode("f114");
247+
content: "\f114";
254248
}
255249

256250
.rct-icon-expand-all::before {
257-
content: unicode("f0fe");
251+
content: "\f0fe";
258252
}
259253

260254
.rct-icon-collapse-all::before {
261-
content: unicode("f146");
255+
content: "\f146";
262256
}
263257
}
264258

265259
// Font Awesome 5 style
266260
.rct-icons-fa5 {
267261
.rct-icon-expand-close::before {
268262
font-weight: 900;
269-
content: unicode("f054");
263+
content: "\f054";
270264
}
271265

272266
.rct-icon-expand-open::before {
273267
font-weight: 900;
274-
content: unicode("f078");
268+
content: "\f078";
275269
}
276270

277271
.rct-icon-uncheck::before {
278-
content: unicode("f0c8");
272+
content: "\f0c8";
279273
}
280274

281275
.rct-icon-check::before {
282-
content: unicode("f14a");
276+
content: "\f14a";
283277
}
284278

285279
.rct-icon-half-check::before {
286-
content: unicode("f14a");
280+
content: "\f14a";
287281
opacity: 0.5;
288282
}
289283

290284
.rct-icon-leaf::before {
291-
content: unicode("f15b");
285+
content: "\f15b";
292286
}
293287

294288
.rct-icon-parent-open::before {
295-
content: unicode("f07c");
289+
content: "\f07c";
296290
}
297291

298292
.rct-icon-parent-close::before {
299-
content: unicode("f07b");
293+
content: "\f07b";
300294
}
301295

302296
.rct-icon-expand-all::before {
303-
content: unicode("f0fe");
297+
content: "\f0fe";
304298
}
305299

306300
.rct-icon-collapse-all::before {
307-
content: unicode("f146");
301+
content: "\f146";
308302
}
309303
}
310304

@@ -318,10 +312,10 @@ $rct-outline-offset: -2px !default;
318312
}
319313

320314
&.rct-icons-fa4 .rct-icon-expand-close::before {
321-
content: unicode("f105");
315+
content: "\f105";
322316
}
323317

324318
&.rct-icons-fa5 .rct-icon-expand-close::before {
325-
content: unicode("f053");
319+
content: "\f053";
326320
}
327321
}

0 commit comments

Comments
 (0)