SASS: Direct Descendent rule?

后端 未结 1 969
梦毁少年i
梦毁少年i 2021-02-05 00:25

How do I represent a direct descendent CSS rule in SASS?

Ex.

body > div { ... }

Couldn\'t seem to find it in the docs: http://sass-l

相关标签:
1条回答
  • 2021-02-05 01:04

    You should just be able to

    body
      >div
        property:value
    

    You may have to escape the > with a backslash \.

    0 讨论(0)
提交回复
热议问题