Created
June 3, 2019 20:53
-
-
Save bultas/7a3414156259061258f980f78215cb87 to your computer and use it in GitHub Desktop.
SVG in CSS
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
--icon-search: url('data:image/svg+xml,\ | |
<svg viewBox="-24 -24 48 48" xmlns="http://www.w3.org/2000/svg">\ | |
<title>Search</title>\ | |
<g transform="translate(-4 -8)">\ | |
<g transform="rotate(45)" fill="none" stroke="black">\ | |
<circle r="14" stroke-width="3"/>\ | |
<line x1="17" x2="30" stroke-width="6" stroke-linecap="round"/>\ | |
</g>\ | |
</g>\ | |
</svg>'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment