开发者

SASS: Direct Descendent rule?

开发者 https://www.devze.com 2022-12-17 01:23 出处:网络
How 开发者_C百科do I represent a direct descendent CSS rule in SASS? Ex. body > div { ... } Couldn\'t seem to find it in the docs: http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.htmlYou s

How 开发者_C百科do I represent a direct descendent CSS rule in SASS?

Ex.

body > div { ... }

Couldn't seem to find it in the docs: http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html


You should just be able to

body
  >div
    property:value

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

0

精彩评论

暂无评论...
验证码 换一张
取 消