Created
October 23, 2014 17:14
-
-
Save brycepj/b6fc7e959fb7098120fd to your computer and use it in GitHub Desktop.
current shapes mixins
This file contains hidden or 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
// create something to combine btn and btn-link | |
.left-triangle(@color, @length, @base) { | |
display: block; | |
content: " "; | |
position: absolute; | |
border-style: solid; | |
border-width: @base/2 @length @base/2 0; | |
border-color: transparent @color transparent transparent; | |
width: 0; | |
height: 0; | |
left: -@length; | |
} | |
.top-triangle(@color, @length, @base) { | |
// Caller should specify position, left and/or right | |
display: block; | |
content: " "; | |
position: absolute; | |
border-style: solid; | |
border-width: 0 @base/2 @length @base/2; | |
border-color: transparent transparent @color transparent; | |
height: 0; | |
width: 0; | |
top: -@length; | |
} | |
.circle(@size, @border, @background) { | |
display: inline-block; | |
content: " "; | |
width: 0; | |
height: 0; | |
padding: @size/2; | |
border: @border; | |
border-radius: 100%; | |
background: @background; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment