D
D
Dmitry2017-04-14 14:23:31
Less
Dmitry, 2017-04-14 14:23:31

How to output data from LESS array and make rules?

There are 15 points with absolute positioning. The position is given as a percentage for each point.
Something like that.

.point:nth-of-type(1) {
  bottom: 10%;
  left: 20%;
}
.point:nth-of-type(2) {
  bottom: 15%;
  left: 25%;
}

How can I make an array like
$array:
10 20,
15 25,
12 45;
And then generate the rules as in the example above?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question