Created
February 28, 2012 11:26
-
-
Save madr/1932023 to your computer and use it in GitHub Desktop.
Useful 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
/* vertical ruler using pseudo-elements */ | |
@mixin columnseparator { | |
@extend .relative; | |
&:before { | |
content: ''; | |
position: absolute; | |
top: 0; | |
width: 3px; | |
background: #eee; | |
left: 681px; | |
bottom: 0; | |
} | |
} | |
// folded box | |
@mixin folded ($size: 10px, $y: 30px, $background: $grey4) { | |
line-height: $y; | |
height: $y; | |
margin-left: ($size * -1); | |
text-indent: $size; | |
position: relative; | |
&:before { | |
border-left: $size solid $pagebg; | |
border-top: $size solid darken($background, 80%); | |
float: left; | |
content: ''; | |
position: absolute; | |
bottom: ($size * -1); | |
left: 0; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment