一些优化 (#15)

* style: badge上标大小改变更加灵活

* style: panel-title的行高跟随字号

* style: 绝对定位的元素width或height为auto,left,right,top,bottom不为auto时,auto的margin将计算为0,同初始值
This commit is contained in:
everywill 2017-03-02 02:10:37 -06:00 committed by Nino
parent d9b5d181d1
commit 0f0f269f40
3 changed files with 6 additions and 7 deletions

10
dist/badge/index.wxss vendored
View File

@ -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;

View File

@ -20,7 +20,6 @@
.zan-card__img {
position: absolute;
margin: auto;
top: 0;
left: 0;
right: 0;

View File

@ -8,7 +8,7 @@
.zan-panel-title {
font-size: 14px;
line-height: 14px;
line-height: 1;
color: #999;
padding: 20px 15px 0 15px;
}