Closed chrisblakley closed 4 years ago
Maybe something like this?
<i class="fa nebula-fa" data-src="/whatever.svg"></i>
Here's what I ended up with. Simply add the classes fa
and nebula-fa
to an <img>
tag to make it behave like a Font Awesome icon.
.nebula-fa {text-align: center; width: 1.25em; vertical-align: text-bottom;} //Make an img tag behave similar to a Font Awesome icon
<img class="fa nebula-fa" src="phg-symbol.svg" />
These even work well with Font Awesome modifiers like fa-spin
. Mileage may vary with other modifiers– the main point of this was to be convenient for custom icon consistency.
Consider a helper class in Nebula that allows any svg image to be manipulated like a Font Awesome icon. Could include documentation of how the end-developer would handle that.