[Improvement] Icon add 'info' prop (#447)

This commit is contained in:
neverland
2017-12-18 11:37:41 +08:00
committed by GitHub
parent 4c18aca42f
commit a8666591c9
8 changed files with 49 additions and 21 deletions

View File

@@ -1,3 +1,5 @@
@import './common/var.css';
@font-face {
font-style: normal;
font-weight: normal;
@@ -11,6 +13,23 @@
font-size: inherit;
text-rendering: auto;
&__info {
color: #fff;
left: 50%;
top: -.5em;
font-size: .5em;
margin-left: .8em;
padding: 0 .3em;
text-align: center;
min-width: 1.2em;
line-height: 1.2;
position: absolute;
border-radius: .6em;
box-sizing: border-box;
background-color: $red;
font-family: PingFang SC, Helvetica Neue, Arial, sans-serif;
}
&:before {
display: inline-block;
}