How to pass a LESS variable into a class name

2k views Asked by At

I have a LESS variable: @columns: 12

I would like to pass this variable into a CSS class name ideally as: .one-{@columns}-inner {}

Is it possible?

1

There are 1 answers

4
pinturic On BEST ANSWER

Simply you can do it this way:

// Using variables
.one-@{columns}-inner {
    color: black;
}