CSS LESS class inheritance
- by Haradzieniec
Here is a css description of properties for my #myform1 .btn1 class:
#myform1 .btn1
{
...
}
#myform1 .btn1:hover
{
...
}
#myform1 .btn1.active
{
...
}
#myform1 .btn1.disabled
{
...
}
Is it possible to add absolutely the same properties for my #myform2 .btn2 class using LESS (any way is OK) without writing
#myform1 .btn1 ,#myform2 .btn2
{
...
}
#myform1 .btn1:hover, #myform2 .btn2:hover
{
...
}
#myform1 .btn1.active, #myform2 .btn2.active
{
...
}
#myform1 .btn1.disabled, #myform2 .btn2.disabled
{
...
}
Is it possible?