Skip to content

Instantly share code, notes, and snippets.

@ynonp
Created August 26, 2014 21:07
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 ynonp/29067bbf603619d01fd1 to your computer and use it in GitHub Desktop.
Save ynonp/29067bbf603619d01fd1 to your computer and use it in GitHub Desktop.
@mixin abs-pos($top:auto,$left:auto,$bottom:auto,$right:auto) {
position:absolute;
top: #{$top}px;
bottom:$bottom;
left:$left;
right:$right;
}
.test {
@include abs-pos($top:10,$left:10);
}
@mixin link-color($normal,$hover) {
a {
color:$normal;
}
a:hover,a:focus {
color:$hover;
}
}
@mixin ellipsis {
overflow:hidden;
text-overflow:ellipsis;
white-space: nowrap;
}
.testlink {
@include link-color(#371,#0F0);
}
.test {
@include ellipsis;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment