vant-weapp/packages/card/index.pcss
wny 7441e8c39b [refactor] 重构layout和card组件为自定义组件 (#185)
* layout重构

* [refactor] 重构卡片
2018-04-10 20:40:12 +08:00

56 lines
796 B
Plaintext

@import "../color/index.pcss";
@import "../helper/index.pcss";
.zan-card {
display: flex;
margin-left: 0px;
padding: 5px 15px;
overflow: hidden;
position: relative;
font-size: 14px;
}
.zan-card__thumb {
width: 90px;
height: 90px;
position: relative;
margin-left: auto;
margin-right: auto;
overflow: hidden;
background-size: cover;
}
.zan-card__img {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: auto;
height: auto;
max-width: 100%;
max-height: 100%;
}
.zan-card__detail {
flex: 1;
margin-left: 10px;
position: relative;
}
.zan-card__detail-row {
overflow: hidden;
line-height: 20px;
min-height: 20px;
margin-bottom: 3px;
}
.zan-card__right-col {
float: right;
}
.zan-card__left-col {
margin-right: 80px;
}