less/less.ruby

Inheriting pseudo elements

Closed this issue · 0 comments

Is it possible to inherit a pseudo element by calling its main class?

The following does not work:

.pseudo-test:before {
content: "hi there"
}

.main-class {
.pseudo-test;
}

http://fiddlesalad.com/less/pseudo-inheritance-in-less

Is this by design? Any plans to have this functionality?

Thanks