Permalink
Browse files

mixin cleanup

  • Loading branch information...
1 parent ad85e8e commit acd052130814da897736fdf27d2da1ac6db63302 @tophermade committed Jan 15, 2014
Showing with 21 additions and 12 deletions.
  1. +21 −12 mixins.less
View
@@ -93,12 +93,12 @@
background: linear-gradient(to bottom, @color1 0%,@color1 50%,@color2 51%,@color2 100%);
}
-.transition(@who: all, @length: .5s, @how: ease-out){
- -webkit-transition: @who @length @how;
- -moz-transition: @who @length @how;
- -ms-transition: @who @length @how;
- -o-transition: @who @length @how;
- transition: @who @length @how;
+.transition(@var){
+ -webkit-transition: @var;
+ -moz-transition: @var;
+ -ms-transition: @var;
+ -o-transition: @var;
+ transition: @var;
}
.columns(@count: 2, @width: 200px, @gap: 20px){
@@ -110,6 +110,13 @@
column-gap: @gap;
}
+.animate(@var){
+ -webkit-animation: @var;
+ -moz-animation: @var;
+ -o-animation: @var;
+ animation: @var;
+}
+
/* handy shortcuts */
.true(@height: 20px){
@@ -134,12 +141,14 @@
background: url("../img/@{img}") @method;
}
-.clear{/* for use on :after */
- content: " ";
- display: block;
- height: 0;
- clear: both;
- visibility: hidden;
+.clear{
+ &:after{
+ content: " ";
+ display: block;
+ height: 0;
+ clear: both;
+ visibility: hidden;
+ }
}
.magic-box{

0 comments on commit acd0521

Please sign in to comment.