ripper234
ripper234

Reputation: 230226

Nesting > (greater than) in Less-CSS

In LESS-CSS, this:

.a {
  .b {
    font-color:red;
  }
}

is equivalent to

.a .b {
  font-color:red;
}

Is there an nested equivalent of > ?

.a > .b {
  font-color:red;
}

Upvotes: 11

Views: 4065

Answers (1)

thirtydot
thirtydot

Reputation: 228232

This does it:

.a {
  > .b {
    font-color:red;
  }
}

Upvotes: 14

Related Questions