@x, @X
@x is the column of the current cell, counted from 1. @X is the number of columns.
Syntax
- @x, @x(<operation>, ...)
- @X, @X(<operation>, ...)
Operations work as for @i: @x(-1), @x(*10%), @X(-@x, +1).
@col is an alias of @x.
Examples
@grid: 5x4 / 60vmin auto _1px;
background: #000;
color: #fff;
@content: @x, @X; A step across the columns:
@grid: 10x4 / 60vmin auto _1px;
background: #000;
opacity: @x(/10);