Using Parametric Mixins in Less CSS

Goud.Kv
Posted by Goud.Kv under CSS 3 category on | Points: 40 | Views : 953
See the below code snippets., Using Parametric Mixins in Less.

In Less Style sheet,
.mycolor(@color: #ff00dc) 
{
color:@color;
}

.welcome
{
.mycolor;
}


In View page,
<div class="welcome">
Welcome Guest
</div>


You can see the Output in given color.

Comments or Responses

Posted by: vireshraj-6687 on: 5/23/2014 Level:Starter | Status: [Member] | Points: 10
Not working
Posted by: Goud.Kv on: 5/23/2014 Level:Gold | Status: [Member] [MVP] | Points: 10
You should add your less Style sheet to your view page..

Login to post response