Skip to content

New Feature: Ranges #1481

Closed
Closed
@bizzehdee

Description

@bizzehdee

At the moment, it is possible to do something such as

.container_@{columnCount} {
margin-left: auto;
margin-right: auto;
width: unit(@baseWidth, px);
}

What would it take to have something in LESS that allows you to do:

.container_[1-24] {

or

.container_[1-@{columnCount}] {

which would then cause less to generate

.container_1,
.container_2,
.container_3,
...,
.container_24 {
/code/
}

I am willing to look into adding this myself, but would need pointing in the right direction as i am new to the LESS codebase.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions