Last active
September 27, 2019 13:15
-
-
Save Keyes/55b6e79b3531aefcddb18b4feae8edfb to your computer and use it in GitHub Desktop.
Basic css for inline svg's
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
.svg-icon { | |
width: 50px; | |
height: 50px; | |
color: gray; | |
background-color: transparent; | |
display: inline-block; | |
box-sizing: border-box; | |
} | |
.svg-icon svg { | |
display: block; | |
width: 100%; | |
height: 100%; | |
fill: currentColor; | |
box-sizing: border-box; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment