Skip to content

Instantly share code, notes, and snippets.

@thehung2224
Created January 15, 2014 04:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thehung2224/8430660 to your computer and use it in GitHub Desktop.
Save thehung2224/8430660 to your computer and use it in GitHub Desktop.
LESS: Mixins
.round(@radius: 5px){
-webkit-border-radius: @radius;
-moz-border-radius: @radius;
border-radius: @radius;
-webkit-background-clip: padding-box;
-moz-background-clip: padding;
background-clip: padding-box;
}
.transition(@property: color, @duration: .2s){
-webkit-transition: @property @duration ease-out;
-moz-transition: @property @duration ease-out;
-ms-transition: @property @duration ease-out;
-o-transition: @property @duration ease-out;
transition: @property @duration ease-out;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment