Skip to content

Commit

Permalink
mixin cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tophermade committed Jan 15, 2014
1 parent ad85e8e commit acd0521
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions mixins.less
Expand Up @@ -93,12 +93,12 @@
background: linear-gradient(to bottom, @color1 0%,@color1 50%,@color2 51%,@color2 100%); background: linear-gradient(to bottom, @color1 0%,@color1 50%,@color2 51%,@color2 100%);
} }


.transition(@who: all, @length: .5s, @how: ease-out){ .transition(@var){
-webkit-transition: @who @length @how; -webkit-transition: @var;
-moz-transition: @who @length @how; -moz-transition: @var;
-ms-transition: @who @length @how; -ms-transition: @var;
-o-transition: @who @length @how; -o-transition: @var;
transition: @who @length @how; transition: @var;
} }


.columns(@count: 2, @width: 200px, @gap: 20px){ .columns(@count: 2, @width: 200px, @gap: 20px){
Expand All @@ -110,6 +110,13 @@
column-gap: @gap; column-gap: @gap;
} }


.animate(@var){
-webkit-animation: @var;
-moz-animation: @var;
-o-animation: @var;
animation: @var;
}



/* handy shortcuts */ /* handy shortcuts */
.true(@height: 20px){ .true(@height: 20px){
Expand All @@ -134,12 +141,14 @@
background: url("../img/@{img}") @method; background: url("../img/@{img}") @method;
} }


.clear{/* for use on :after */ .clear{
content: " "; &:after{
display: block; content: " ";
height: 0; display: block;
clear: both; height: 0;
visibility: hidden; clear: both;
visibility: hidden;
}
} }


.magic-box{ .magic-box{
Expand Down

0 comments on commit acd0521

Please sign in to comment.