tags:

views:

17

answers:

1

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-lang.com/docs/yardoc/file.SASS_REFERENCE.html

A: 

You should just be able to

body
  >div
    property:value

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

atxryan
Huh. Now I feel stupid for not trying that before. Thanks.
neezer