mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2025-01-16 02:00:28 +08:00
Minor bugfix.
This commit is contained in:
parent
63896ec371
commit
29580eb7c4
@ -1,11 +1,11 @@
|
||||
/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
|
||||
readers do not read off random characters that represent icons */
|
||||
|
||||
.createIconClasses(@iterator: 1) when(@iterator <= length(@fa-icon-glyphs)) {
|
||||
@fa-glyph-name: extract(extract(@fa-icon-glyphs, @iterator), 1);
|
||||
.createIconClasses(@iterator: 1) when(@iterator <= length(@fa-var-glyphs)) {
|
||||
@fa-glyph-name: extract(extract(@fa-var-glyphs, @iterator), 1);
|
||||
@fa-glyph-name-unquoted: ~"@{fa-glyph-name}";
|
||||
.@{fa-css-prefix}-@{fa-glyph-name-unquoted}:before {
|
||||
content: extract(extract(@fa-icon-glyphs, @iterator), 2);
|
||||
content: extract(extract(@fa-var-glyphs, @iterator), 2);
|
||||
}
|
||||
.createIconClasses((@iterator + 1));
|
||||
}
|
||||
|
@ -9,7 +9,7 @@
|
||||
// calculate classes and values for rotation
|
||||
.calculateRotations(@i) when (@i >= 0) {
|
||||
@rotation-selector: ~"@{fa-css-prefix}-rotate-@{i}";
|
||||
.@{rotation-selector} when (mod(@i, @fa-rotate-by) = 0) {
|
||||
.@{rotation-selector} when (mod(@i, @fa-rotation-increment) = 0) {
|
||||
.fa-icon-rotate(@i);
|
||||
}
|
||||
.calculateRotations((@i - 1));
|
||||
|
@ -610,14 +610,14 @@
|
||||
// icon sizes - these scale font size and line height
|
||||
@fa-var-scales:
|
||||
"default" 1.000,
|
||||
"lg": 1.333,
|
||||
"sm": 0.666,
|
||||
"xlg": 1.666,
|
||||
"xsm": 0.333;
|
||||
"lg" 1.333,
|
||||
"sm" 0.666,
|
||||
"xlg" 1.666,
|
||||
"xsm" 0.333;
|
||||
|
||||
// icon size multipliers - these scale font size
|
||||
@fa-var-multipliers:
|
||||
"2x": 2,
|
||||
"3x": 3,
|
||||
"4x": 4,
|
||||
"5x": 5;
|
||||
"2x" 2,
|
||||
"3x" 3,
|
||||
"4x" 4,
|
||||
"5x" 5;
|
||||
|
Loading…
Reference in New Issue
Block a user