mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[bug fix] Badge: 修复 badge 纵向对齐问题 (#96)
* 修复 badge 纵向对齐问题 * 更换字体 * 去除字体定义
This commit is contained in:
parent
d02404616b
commit
cf62caf927
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user