Reusing LESS nested styles

less

Solution

You can't re-use arbitrary class definitions, only mixins (those starting with a dot). In this case you'll need to duplicate it.

Problem

Let's say that I have a style defined using Less: ``` ul.unstyled, ol.unstyled { margin-left: 0; list-style: none; } ``` Later on, I want to re-use the `unstyled` class: ``` .my-list { .unstyled; } ``` This doesn't work, however, and I can't figure out the magic to make it work. Any thoughts?

Original source