2015-06-29 11:33:26 +08:00
|
|
|
// icon sizes
|
|
|
|
// --------------------------
|
|
|
|
|
|
|
|
// scale icon size by n
|
|
|
|
.createIconScales(@iterator: 1) when(@iterator <= length(@fa-var-scales)) {
|
|
|
|
@fa-icon-scale-name: extract(extract(@fa-var-scales, @iterator), 1);
|
|
|
|
@fa-icon-scale-name-unquoted: ~"@{fa-icon-scale-name}";
|
|
|
|
@fa-icon-scale: extract(extract(@fa-var-scales, @iterator), 2);
|
|
|
|
|
|
|
|
.@{fa-css-prefix}-@{fa-icon-scale-name-unquoted} {
|
2015-07-03 11:46:11 +08:00
|
|
|
font-size: unit(@fa-icon-scale, em);
|
|
|
|
line-height: unit(@fa-icon-scale * 0.75, em);
|
2015-06-29 11:33:26 +08:00
|
|
|
vertical-align: -15%;
|
|
|
|
}
|
|
|
|
.createIconScales((@iterator + 1));
|
|
|
|
}
|
|
|
|
.createIconScales();
|
|
|
|
|
|
|
|
// multiply icon size by n
|
|
|
|
.createIconMultipliers(@iterator: 1) when(@iterator <= length(@fa-var-multipliers)) {
|
|
|
|
@fa-icon-multiplier-name: extract(extract(@fa-var-multipliers, @iterator), 1);
|
|
|
|
@fa-icon-multiplier-name-unquoted: ~"@{fa-icon-multiplier-name}";
|
|
|
|
@fa-icon-multiplier: extract(extract(@fa-var-multipliers, @iterator), 2);
|
|
|
|
|
|
|
|
.@{fa-css-prefix}-@{fa-icon-multiplier-name-unquoted} {
|
2015-07-03 11:46:11 +08:00
|
|
|
font-size: unit(@fa-icon-multiplier, em);
|
2015-06-29 11:33:26 +08:00
|
|
|
}
|
|
|
|
.createIconMultipliers((@iterator + 1));
|
2013-10-23 03:55:08 +08:00
|
|
|
}
|
2015-06-29 11:33:26 +08:00
|
|
|
.createIconMultipliers();
|