<!doctype html> <head> <title>@arguments Variable</title> <link rel="stylesheet" href="style.css" type="text/css" /> </head> <body> <h2>Example of @arguments Variable</h2> <p class="myclass">Welcome to Yiibai Yiibai...</p> </body> </html>
.box-shadow(@x: 0; @y: 0; @height: 3px; @width: 3px) { -webkit-box-shadow: @arguments; -moz-box-shadow: @arguments; box-shadow: @arguments; } .myclass { .box-shadow(2px; 2px); }
lessc style.less style.css
.myclass { -webkit-box-shadow: 2px 2px 3px 3px; -moz-box-shadow: 2px 2px 3px 3px; box-shadow: 2px 2px 3px 3px; }