mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
一些优化 (#15)
* style: badge上标大小改变更加灵活 * style: panel-title的行高跟随字号 * style: 绝对定位的元素width或height为auto,left,right,top,bottom不为auto时,auto的margin将计算为0,同初始值
This commit is contained in:
parent
d9b5d181d1
commit
0f0f269f40
10
dist/badge/index.wxss
vendored
10
dist/badge/index.wxss
vendored
@ -5,13 +5,13 @@
|
||||
position: absolute;
|
||||
top: -8px;
|
||||
right: 0px;
|
||||
height: 16px;
|
||||
min-width: 16px;
|
||||
line-height: 16px;
|
||||
padding: 0 4px;
|
||||
height: 1.6em;
|
||||
min-width: 1.6em;
|
||||
line-height: 1.6;
|
||||
padding: 0 .4em;
|
||||
font-size: 10px;
|
||||
font-family: tahoma;
|
||||
border-radius: 10px;
|
||||
border-radius: .8em;
|
||||
background: #FF4444;
|
||||
color: #fff;
|
||||
text-align: center;
|
||||
|
1
dist/card/index.wxss
vendored
1
dist/card/index.wxss
vendored
@ -20,7 +20,6 @@
|
||||
|
||||
.zan-card__img {
|
||||
position: absolute;
|
||||
margin: auto;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
|
2
dist/panel/index.wxss
vendored
2
dist/panel/index.wxss
vendored
@ -8,7 +8,7 @@
|
||||
|
||||
.zan-panel-title {
|
||||
font-size: 14px;
|
||||
line-height: 14px;
|
||||
line-height: 1;
|
||||
color: #999;
|
||||
padding: 20px 15px 0 15px;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user