-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support each() function (Less.js 3.7.0) #85
Labels
Comments
Did you find a workaround? Same issue here. |
No yet, unfortunately. |
I know it is not the way but cant you change the "each" function with oldschool way?
|
Krinkle
changed the title
FontAwesome 6
Support Less.js 3.7.0 each() function (FontAwesome 6)
Sep 9, 2023
Minimal test case: // https://github.com/FortAwesome/Font-Awesome/blob/6.4.2/less/_variables.less
@fa-css-prefix : fa;
@fa-size-scale-sm : 14;
@fa-size-scale-lg : 20;
@fa-size-scale-xl : 24;
.fa-sizes() {
sm : @fa-size-scale-sm;
lg : @fa-size-scale-lg;
xl : @fa-size-scale-xl;
}
// https://github.com/FortAwesome/Font-Awesome/blob/6.4.2/less/_mixins.less
.fa-size(@font-size) {
line-height: (1 / @font-size) * 1em;
}
each(.fa-sizes(), {
.@{fa-css-prefix}-@{key} {
.fa-size(@value);
}
}); http://ecomfe.github.io/est/fiddle/#version=3.6.0&autoprefix=false&est=false&autorun=false On Less.js 3.6.0:
On Less.js 3.7.0: .fa-sm {
line-height: 0.07142857em;
}
.fa-lg {
line-height: 0.05em;
}
.fa-xl {
line-height: 0.04166667em;
} |
Krinkle
changed the title
Support Less.js 3.7.0 each() function (FontAwesome 6)
Support each() function (Less.js 3.7.0)
Sep 9, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am having a lot of trouble trying to upgrade FontAwesome to the latest version.
I’ve uploaded all the kit for FontAwesome 6 but running the compiler returns errors because of ParseError: Unexpected input in from the FontAwesome less files even though I believe they are syntatically correct (example below).
The text was updated successfully, but these errors were encountered: