Skip to content

Instantly share code, notes, and snippets.

@nicooprat
Created December 10, 2013 16:30
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 nicooprat/7893494 to your computer and use it in GitHub Desktop.
Save nicooprat/7893494 to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.10)
// ----
@import "compass"
@mixin arrow( $width, $color, $position )
$opposite: opposite-position($position)
position: absolute
border: $width solid transparent
border-#{$opposite}-color: $color
left: 50%
margin-left: -$width/2
#{$position}: -$width
.test
@include arrow(10px,black,top)
.test {
position: absolute;
border: 10px solid transparent;
border-bottom-color: black;
left: 50%;
margin-left: -5px;
top: -10px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment