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
|
/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
|
||||||
readers do not read off random characters that represent icons */
|
readers do not read off random characters that represent icons */
|
||||||
|
|
||||||
.createIconClasses(@iterator: 1) when(@iterator <= length(@fa-icon-glyphs)) {
|
.createIconClasses(@iterator: 1) when(@iterator <= length(@fa-var-glyphs)) {
|
||||||
@fa-glyph-name: extract(extract(@fa-icon-glyphs, @iterator), 1);
|
@fa-glyph-name: extract(extract(@fa-var-glyphs, @iterator), 1);
|
||||||
@fa-glyph-name-unquoted: ~"@{fa-glyph-name}";
|
@fa-glyph-name-unquoted: ~"@{fa-glyph-name}";
|
||||||
.@{fa-css-prefix}-@{fa-glyph-name-unquoted}:before {
|
.@{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));
|
.createIconClasses((@iterator + 1));
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
// calculate classes and values for rotation
|
// calculate classes and values for rotation
|
||||||
.calculateRotations(@i) when (@i >= 0) {
|
.calculateRotations(@i) when (@i >= 0) {
|
||||||
@rotation-selector: ~"@{fa-css-prefix}-rotate-@{i}";
|
@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);
|
.fa-icon-rotate(@i);
|
||||||
}
|
}
|
||||||
.calculateRotations((@i - 1));
|
.calculateRotations((@i - 1));
|
||||||
|
@ -610,14 +610,14 @@
|
|||||||
// icon sizes - these scale font size and line height
|
// icon sizes - these scale font size and line height
|
||||||
@fa-var-scales:
|
@fa-var-scales:
|
||||||
"default" 1.000,
|
"default" 1.000,
|
||||||
"lg": 1.333,
|
"lg" 1.333,
|
||||||
"sm": 0.666,
|
"sm" 0.666,
|
||||||
"xlg": 1.666,
|
"xlg" 1.666,
|
||||||
"xsm": 0.333;
|
"xsm" 0.333;
|
||||||
|
|
||||||
// icon size multipliers - these scale font size
|
// icon size multipliers - these scale font size
|
||||||
@fa-var-multipliers:
|
@fa-var-multipliers:
|
||||||
"2x": 2,
|
"2x" 2,
|
||||||
"3x": 3,
|
"3x" 3,
|
||||||
"4x": 4,
|
"4x" 4,
|
||||||
"5x": 5;
|
"5x" 5;
|
||||||
|
Loading…
Reference in New Issue
Block a user