Created
February 6, 2010 03:15
-
-
Save cbfrance/296502 to your computer and use it in GitHub Desktop.
Example of SASS and Compass 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
//this link creates a left-or-right aligned header link, like you might use on a blog post timestamp. | |
=wonky_link(!float = "left", !color="#333") | |
a.wrap | |
:text-decoration none | |
:line-height 15px | |
+columns(3,15) | |
:position absolute | |
:top 10px | |
:left 20px | |
:color #333 | |
:font-weight bold | |
:font-family palatino, georgia, serif | |
:text-transform uppercase | |
@if !float == "right" | |
:left auto | |
:right 0px | |
&:hover | |
+zing!! | |
span.number | |
:padding 5px | |
:display block | |
:text-align= !float | |
+rounded("5px") | |
:font-size= !big | |
span.text | |
:color= !color | |
:font-size= !small |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment