Skip to content

Instantly share code, notes, and snippets.

@madr
Created February 28, 2012 11:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madr/1932023 to your computer and use it in GitHub Desktop.
Save madr/1932023 to your computer and use it in GitHub Desktop.
Useful sass mixins
/* 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