Last active
August 29, 2015 14:08
-
-
Save joseramonc/1e4d3da4246f9dd7fd89 to your computer and use it in GitHub Desktop.
pseudo element for creating a triangle in sass
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
// triangle | |
&:after { | |
left: 50%; | |
position: relative; | |
display: inline-block; | |
border-right: 6px solid transparent; | |
border-top: 6px solid $blue; // change with border-bottom for triangle pointing up | |
border-left: 6px solid transparent; | |
content: ''; | |
} | |
//circle | |
&:after { | |
border-radius: 1px; | |
width: 10px; | |
height: 10px; | |
position: absolute; | |
background-color: black; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment