在less我有以下几点:如何将相同的样式应用于所有直接的儿童课程?
.some-class{
> li{
a{
color: white;
background: @fti-lightgrey;
border-radius: 0px;
padding: 1px 15px;
// a color for the partcular tab that is chosen. (the color for each tab can be set inside mura)
&.orange{
&:hover{ background: @fti-orange; }
&:hover{ color: white; }
}
&.black {
&:hover{ background: black; }
&:hover{ color: white; }
}
&.topaz{
&:hover{ background: @fti-topaz; }
&:hover{ color: white; }
}
}
}
}
如何避免编写&:hover{ color: white; }
多次?
有没有办法将这一行应用到a
标记内某处的所有直系阶段后代?