3 ms·
Is this possible in LESS? I know LESS mixins "is kind of the same thing", but the way i understand the %placholder is that it doesn't paste code into the class
by dyml 14y ago
Is this possible in LESS?
I know LESS mixins "is kind of the same thing", but the way i understand the %placholder is that it doesn't paste code into the class where you call it. It actually builds a dynamic class containing the code and then add the selectors/classes/ids (thats using the placeholder) to that class. Right? Right.
- ianstormtaylor 14y agoYup you're right. And nope, it's not possible it LESS. Mixins actually aren't the same thing, they are just a way to duplicate code, which is exactly what you're trying to avoid. I'd seriously recommend you try Sass. It's got much more going for it.