[bug fix] Badge: 修复 badge 纵向对齐问题 (#96)

* 修复 badge 纵向对齐问题

* 更换字体

* 去除字体定义
This commit is contained in:
Yao 2018-01-01 14:10:11 +08:00 committed by GitHub
parent d02404616b
commit cf62caf927
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,22 +3,21 @@
}
.zan-badge__count {
position: absolute;
top: -8px;
top: -16px;
right: 0px;
height: 1.6em;
min-width: 1.6em;
line-height: 1.6;
padding: 0 .4em;
font-size: 10px;
font-family: tahoma;
font-size: 20px;
border-radius: .8em;
background: #FF4444;
color: #fff;
text-align: center;
white-space: nowrap;
transform: translateX(50%);
transform-origin: -10% center;
transform: translateX(50%) scale(0.5);
transform-origin: center;
z-index: 10;
box-shadow: 0 0 0 1px #fff;
box-shadow: 0 0 0 2px #fff;
box-sizing: border-box;
}