Y
Y
Yuriy2017-01-24 16:59:59
Less
Yuriy, 2017-01-24 16:59:59

How to go to the parent of the parent in less?

Is it possible to navigate to the parent of the parent in less?

.class1 {
    &-class2 {
       {как здесь указать class1}-class3 {

        }
    }
}

need like this:
.class1 .class1-class2 .class1-class3 {
 ...
}

tag example:
p { /* виден во всем документе */
   p { /* видимость только в p[0] */
       color:blue;
       p { /* видимость только в p[1] */
           color:red;
         }
   }
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zooks, 2017-01-24
@zooks

Советую разобраться в операторах:

.class1 {
    &-class2 {

    }
    &-class3 {

    }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question