mirror of
https://github.com/FortAwesome/Font-Awesome.git
synced 2025-01-12 16:20:28 +08:00
Example of using class to hide SVG symbols
This commit is contained in:
parent
1147d199a3
commit
76812f5988
@ -900,7 +900,7 @@ function asSymbol (_ref) {
|
||||
return [{
|
||||
tag: 'svg',
|
||||
attributes: {
|
||||
style: 'display: none;'
|
||||
class: 'svg-symbol--fa'
|
||||
},
|
||||
children: [{
|
||||
tag: 'symbol',
|
||||
|
@ -906,7 +906,7 @@
|
||||
return [{
|
||||
tag: 'svg',
|
||||
attributes: {
|
||||
style: 'display: none;'
|
||||
class: 'svg-symbol--fa'
|
||||
},
|
||||
children: [{
|
||||
tag: 'symbol',
|
||||
|
@ -320,6 +320,9 @@ svg:not(:root).svg-inline--fa {
|
||||
height: 2em;
|
||||
width: 2.5em; }
|
||||
|
||||
.svg-symbol--fa {
|
||||
display: none; }
|
||||
|
||||
.fa-inverse {
|
||||
color: #fff; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user