Less Hover Mixin

Glenn Glenn's Blog 0 Comments

Not redly publicised but ever so simple:-

[css]

/* Button*/
.button {
// Normal CSS Classes
background: @white;
&:hover {
// adding my own hover state for button
background: @black;
}
}

[/css]

Rather than ‘class:hover’ we use &:hover and then add our css / less below.

About the Author
Less Hover Mixin Less Hover Mixin 0da77002febbfe28d15144a57bbcc2c9 s 180 d mm r g

Glenn

A highly experienced WordPress Web Developer, Front-end and Back-end Developer & New Media Specialist with extensive knowledge of a wide spectrum of technologies in the Development and Creative Industries built up over a number of years.

Leave a Reply

Your email address will not be published. Required fields are marked *