Selector

@row

Cells in the given rows. @y is an alias.

Syntax

  • @row(<n>, ...) { }
  • @y(<n>, ...) { }
n
A row number from 1, an an+b formula, or odd / even.

Several arguments match any of them. @row not (3) inverts the result.

Examples

@grid: 5 / 60vmin _1px;
@content: @y;

@row(even) {
  background: #000;
  color: #fff;
}
@row(3) {
  background: #e6437d;
  color: #fff;
}

See also