Created
May 18, 2017 15:00
-
-
Save komplexb/de99050022c90b83f590d87a967823bd to your computer and use it in GitHub Desktop.
svg icon as background
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
&[target="_blank"] { | |
display: flex; | |
align-items: center; | |
&::after { | |
content: ''; | |
background-image: url("data:image/svg+xml,%3Csvg fill='%23cacacb' id='icon-out' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17'%3E%3Cpolygon points='13 9 13 15 2 15 2 4 8 4 8 2 0 2 0 17 15 17 15 9 13 9'/%3E%3Cpolygon points='15 0 10 0 10 2 13.59 2 6.76 8.83 8.17 10.24 15 3.41 15 7 17 7 17 2 17 0 15 0'/%3E%3C/svg%3E "); | |
background-size: contain; | |
background-repeat: no-repeat; | |
margin-left: 7.5px; | |
height: 10px; | |
width: 10px; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment