Immediate Child selector in LESS

前端 未结 5 1035
天涯浪人
天涯浪人 2020-12-05 03:48

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 {
    .         


        
5条回答
  •  余生分开走
    2020-12-05 04:13

    In case that you need to target more selectors:

    .parent {
        >.first-child,
        >.second-child,
        >.third-child {
        ...
        }
    }
    

提交回复
热议问题