Created
September 13, 2012 14:52
-
-
Save eethann/3714812 to your computer and use it in GitHub Desktop.
Sass Mixins
This file contains hidden or 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
/* mixin for background images */ | |
/* from http://remy.bach.me.uk/2011/09/compass-background-image-mixin/ */ | |
/* may also use compass `replace-text-with-dimensions` */ | |
@mixin knockout($_img) { | |
background:url($_img) no-repeat; | |
display:block; | |
height:image-height($_img); | |
overflow:hidden; | |
text-indent:-100%; | |
width:image-width($_img); | |
} | |
/* from http://sachagreif.com/useful-sass-mixins/ */ | |
@mixin hide-text{ | |
overflow:hidden; | |
text-indent:-9000px; | |
display:block; | |
} | |
@mixin box-emboss($opacity, $opacity2){ | |
box-shadow:white($opacity) 0 1px 0, inset black($opacity2) 0 1px 0; | |
} | |
@mixin letterpress($opacity){ | |
text-shadow:white($opacity) 0 1px 0; | |
} | |
@mixin navigation-list { | |
list-style-type:none; | |
padding:0; | |
margin:0; | |
overflow:hidden; | |
> li{ | |
display:block; | |
float:left; | |
&:last-child{ | |
margin-right:0px; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment