Function

@y, @Y

@y is the row of the current cell, counted from 1. @Y is the number of rows.

Syntax

  • @y, @y(<operation>, ...)
  • @Y, @Y(<operation>, ...)

Operations work as for @i: @y(-1), @y(*10%), @Y(-@y, +1). @row is an alias of @y.

Examples

@grid: 5x4 / 60vmin auto _1px;
background: #000;
color: #fff;
@content: @y, @Y;

Rows shifted by their number:

@grid: 8 / 60vmin _1px;
background: #000;
translate: @y(*5%);

See also