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