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