You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to use less :extend function with column classes that are generated by gridiron (ex: .col-md-6), the extend is ignored and the column declaration in the css doesn't have the element I'm trying to extend it to.
Example Input
/* this class is created by gridrion */
.col-md-6 {
width:50%;
}
div {
&:extend(.col-md-6all)
}
/* Should output this: */
.col-md-6,div {
width:50%;
}
/* Instead it outputs this: */
.col-md-6 {
}
The text was updated successfully, but these errors were encountered:
This seems to be a limitation in LESS (as explained in the references below). Try inverting it as explain here.
.col-md-6:extend(div) {}
The other solution is to compile GridIron first, rename the GridIron file(s) with a .less extension, then import those compiled GridIron files into your project. This is also explained in one of the references.
When I try to use less :extend function with column classes that are generated by gridiron (ex: .col-md-6), the extend is ignored and the column declaration in the css doesn't have the element I'm trying to extend it to.
Example Input
The text was updated successfully, but these errors were encountered: