Created
April 17, 2012 03:11
-
-
Save notslang/2403120 to your computer and use it in GitHub Desktop.
code for arrows in pure LESS
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
//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