Font-Awesome/less/icons.less

13 lines
482 B
Plaintext
Raw Normal View History

/* 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);
2015-06-29 09:43:06 +08:00
@fa-glyph-name-unquoted: ~"@{fa-glyph-name}";
.@{fa-css-prefix}-@{fa-glyph-name-unquoted}:before {
content: extract(extract(@fa-var-glyphs, @i), 2);
2015-06-29 09:43:06 +08:00
}
.createIconClasses((@i + 1));
2015-06-29 09:43:06 +08:00
}
.createIconClasses();