less.js icon indicating copy to clipboard operation
less.js copied to clipboard

@import bypasses namespacing

Open sanford opened this issue 14 years ago • 3 comments

"@import" doesn't respect namespaces.

The only feature that's keeping us from switching from sass to less is the lack of namespacing on @import.

If the following:

.classlabel { @import "foo.less"; }

Acted like sass by prepending the class name to each imported stylesheet rule, we'd be golden.

.classlabel .importedclass { .... } .classlabel .importedclass2 { .... }

etc.

Thoughts?

sanford avatar Feb 01 '12 00:02 sanford

Pls have a look at: https://github.com/cloudhead/less.js/issues/656

marcboeker avatar Feb 27 '12 09:02 marcboeker

Awesome. Thanks!

sanford avatar Feb 27 '12 09:02 sanford

as per #656 - fixed.

lukeapage avatar Jul 22 '12 15:07 lukeapage