Skip to content

Instantly share code, notes, and snippets.

@notslang
Created April 17, 2012 03:11
Show Gist options
  • Save notslang/2403120 to your computer and use it in GitHub Desktop.
Save notslang/2403120 to your computer and use it in GitHub Desktop.
code for arrows in pure LESS
//arrows
@arrowColor: gray;
@arrowSize: 10px;
.arrowUp, .arrowDown, .arrowRight, .arrowLeft {
width: 0;
height: 0;
}
.arrowUp, .arrowDown {
border-left: @arrowSize solid transparent;
border-right: @arrowSize solid transparent;
}
.arrowRight, .arrowLeft {
border-top: @arrowSize solid transparent;
border-bottom: @arrowSize solid transparent;
}
.arrowUp {
border-bottom: @arrowSize solid @arrowColor;
}
.arrowDown {
border-top: @arrowSize solid @arrowColor;
}
.arrowRight {
border-left: @arrowSize solid @arrowColor;
}
.arrowLeft {
border-right:@arrowSize solid @arrowColor;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment