Skip to content

Commit

Permalink
adjust icon svg align
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Sep 14, 2018
1 parent 26c3ea4 commit 0698c82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions components/style/mixins/iconfont.less
Expand Up @@ -4,13 +4,13 @@
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;
line-height: 0;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;

svg {
display: block;
display: inline-block;
}

&:before {
Expand Down
4 changes: 0 additions & 4 deletions site/theme/static/demo.less
Expand Up @@ -193,10 +193,6 @@
border-radius: 20px;
opacity: 0;

svg {
display: inline-block;
}

&:hover {
color: @site-text-color-secondary;
transform: scale(1.2);
Expand Down

0 comments on commit 0698c82

Please sign in to comment.