card component

This commit is contained in:
cookfront
2017-02-26 18:50:34 +08:00
parent 17dc5b391c
commit 9ee6c4bf59
25 changed files with 312 additions and 20 deletions
+82
View File
@@ -0,0 +1,82 @@
@import "./mixins/ellipsis.css";
@component-namespace z {
@b card {
padding: 5px 15px;
background: #FAFAFA;
overflow: hidden;
position: relative;
margin-bottom: 10px;
@e img {
float: left;
width: 90px;
height: 90px;
border: 0;
}
@e content {
margin-left: 100px;
display: table;
@when center {
display: table;
height: 90px;
.z-card__info {
display: table-cell;
vertical-align: middle;
}
}
}
@e row {
overflow: hidden;
padding-right: 80px;
position: relative;
}
@e title {
line-height: 20px;
color: #333;
max-height: 40px;
margin-bottom: 5px;
@mixin multi-ellipsis 2;
}
@e desc {
font-size: 12px;
color: #666;
}
@e price {
position: absolute;
top: 0;
right: 0;
width: 80px;
text-align: right;
font-size: 14px;
color: #333;
}
@e num {
position: absolute;
top: 0;
right: 0;
width: 80px;
text-align: right;
font-size: 12px;
color: #666;
}
@e footer {
position: absolute;
right: 15px;
bottom: 5px;
.z-button {
margin-left: 5px;
}
}
}
}