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;
|
position: absolute;
|
||||||
top: -8px;
|
top: -8px;
|
||||||
right: 0px;
|
right: 0px;
|
||||||
height: 16px;
|
height: 1.6em;
|
||||||
min-width: 16px;
|
min-width: 1.6em;
|
||||||
line-height: 16px;
|
line-height: 1.6;
|
||||||
padding: 0 4px;
|
padding: 0 .4em;
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
font-family: tahoma;
|
font-family: tahoma;
|
||||||
border-radius: 10px;
|
border-radius: .8em;
|
||||||
background: #FF4444;
|
background: #FF4444;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
1
dist/card/index.wxss
vendored
1
dist/card/index.wxss
vendored
@ -20,7 +20,6 @@
|
|||||||
|
|
||||||
.zan-card__img {
|
.zan-card__img {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin: auto;
|
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
|
2
dist/panel/index.wxss
vendored
2
dist/panel/index.wxss
vendored
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
.zan-panel-title {
|
.zan-panel-title {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 14px;
|
line-height: 1;
|
||||||
color: #999;
|
color: #999;
|
||||||
padding: 20px 15px 0 15px;
|
padding: 20px 15px 0 15px;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user