Last active
December 18, 2015 06:09
-
-
Save miguelmota/5737521 to your computer and use it in GitHub Desktop.
Some helper Sass mixins.
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
// Some helper Sass mixins | |
@mixin clear() { | |
&:before, &:after { | |
content: ""; | |
display: block; | |
width: 100%; | |
height: 0; | |
overflow: hidden; | |
} | |
&:after { | |
clear: both; | |
} | |
} | |
@mixin hideText() { | |
font: 0/0 a; | |
text-decoration: none; | |
color: transparent; | |
text-shadow: none; | |
} | |
@mixin vendorize($property, $value) { | |
-webkit-#{$property}: $value; | |
-moz-#{$property}: $value; | |
-ms-#{$property}: $value; | |
-o-#{$property}: $value; | |
#{$property}: $value; | |
} | |
@mixin hoverActiveFocus($property, $value) { | |
&:hover, &:active, &:focus, &:visited { | |
#{$property}: $value; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment