align svg to text

This commit is contained in:
HeskeyBaozi 2018-07-19 15:07:31 +08:00
parent 5b87f32cff
commit 768f871176

View File

@ -1,7 +1,7 @@
.iconfont-mixin() {
display: inline-block;
font-style: normal;
vertical-align: baseline;
vertical-align: -0.125em; // for SVG icon, see https://blog.prototypr.io/align-svg-icons-to-text-and-say-goodbye-to-font-icons-d44b3d7b26b4
text-align: center;
text-transform: none;
line-height: 1;