Selector

@col

Cells in the given columns. @x is an alias.

Syntax

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

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

Examples

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

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

See also