Ho cercato come un matto di ottenere la seguente istruzione LESS per funzionare, ma ora temo che non accadrà:/Quindi mi rivolgo ora a voi ragazzi in la fine per l'aiuto!MENO: Estendi un selettore annidato precedentemente definito
Ho la seguente dichiarazione:
.top{
&-first{
background:black;
&-item{
color:white;
}
}
&-second{
background:green;
&-item:extend(.top-first-item){}
}
}
speravo in più adeguati per svolgere il seguente output:
.top-first {
background: black;
}
.top-first-item,
.top-second-item{
color: white;
}
.top-second {
background: green;
}
Ma purtroppo non si compila questo, ma questo, invece:
.top-first {
background: black;
}
.top-first-item{
color: white;
}
.top-second {
background: green;
}
Finora questo dovrà fare! Ma il problema https://github.com/less/less.js/issues/1597 qui dovrebbe essere risolto! – Johns3n