<html> <head> <link rel="stylesheet" href="style.css" type="text/css" /> <title>Mixin inside mixin</title> </head> <body> <h1>Welcome to Yiibai Yiibai</h1> <div class="myclass"> <p>LESS is a CSS pre-processor that enables customizable, manageable and reusable style sheet for web site.</p> </div> </body> </html>
.outerMixin(@value) { .nestedMixin() { font-size: @value; } } .myclass { .outerMixin(30); .nestedMixin(); }
lessc style.less style.css
.myclass { font-size: 30; }