mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2025-01-16 02:00:28 +08:00
13 lines
482 B
Plaintext
13 lines
482 B
Plaintext
/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
|
|
readers do not read off random characters that represent icons */
|
|
|
|
.createIconClasses(@i: 1) when(@i <= length(@fa-var-glyphs)) {
|
|
@fa-glyph-name: extract(extract(@fa-var-glyphs, @i), 1);
|
|
@fa-glyph-name-unquoted: ~"@{fa-glyph-name}";
|
|
.@{fa-css-prefix}-@{fa-glyph-name-unquoted}:before {
|
|
content: extract(extract(@fa-var-glyphs, @i), 2);
|
|
}
|
|
.createIconClasses((@i + 1));
|
|
}
|
|
.createIconClasses();
|