Created
August 30, 2012 19:05
-
-
Save mmcc/3537807 to your computer and use it in GitHub Desktop.
Common Sass mixins I use.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Mixins | |
@mixin hover-ease($element, $time) { | |
-moz-transition: $element $time + s ease; | |
-o-transition: $element $time + s ease; | |
-webkit-transition: $element $time + s ease; | |
-ms-transition: $element $time + s ease; | |
} | |
@mixin corners($radius) { | |
-webkit-border-radius: $radius; | |
-moz-border-radius: $radius; | |
border-radius: $radius; | |
} | |
@mixin glow($position, $color, $opacity) { | |
box-shadow: $position rgba($color, $opacity); | |
} | |
// Not really a mixin, but close enough. To use: @extend .clearfix | |
.clearfix { | |
zoom:1; | |
&:before, &:after { | |
content: "\0020"; | |
display: block; | |
height: 0; | |
overflow: hidden; | |
} | |
&:after { | |
clear: both; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment