Immediate Child selector in LESS
Is there anyway to have LESS apply the immediate child selector ( > ) in its output? In my style.less, I want to write something like: .panel { ... > .control { ... } } and have LESS generate something like: .panel > .control { ... } UPDATE Actually, the code in the original question works fine. You can just stick with the > child selector. Found the answer. .panel { ... >.control { ... } } Note the lack of space between ">" and ".", otherwise it won't work. Ricardo Tomasi The official way: .panel { & > .control { ... } } & always refers to the current selector. See http://lesscss.org/features