Functions:
Less provides a variety of functions which transform colors, manipulate strings and do maths.

@background-color:red;
div{
    width:100px;
    height: 100px;
    background-color: @background-color;
    &:hover{
        background-color: fadeout(@background-color,50%);
    }
}
Advertisements