CSS LESS class inheritance

Posted by Haradzieniec on Stack Overflow See other posts from Stack Overflow or by Haradzieniec
Published on 2012-09-02T09:22:27Z Indexed on 2012/09/02 9:38 UTC
Read the original article Hit count: 202

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about html

Related posts about css