@import '../style/var'; @import '../style/mixins/ellipsis'; .van-card { position: relative; color: @text-color; font-size: 12px; padding: 5px 15px; box-sizing: border-box; background-color: @background-color-light; &:not(:first-child) { margin-top: 10px; } &--center, &__thumb { align-items: center; justify-content: center; } &__header { display: flex; } &__thumb { position: relative; width: 90px; height: 90px; margin-right: 10px; flex: none; img { border: none; max-width: 100%; max-height: 100%; } } &__content { position: relative; flex: 1; height: 90px; min-width: 0; /* hack for flex box ellipsis */ } &__title, &__desc { word-break: break-all; } &__title { line-height: 16px; max-height: 32px; font-weight: bold; .multi-ellipsis(2); } &__desc { color: @gray-darker; max-height: 20px; line-height: 20px; } &__bottom { position: absolute; bottom: 0; left: 0; width: 100%; line-height: 18px; } &__price { display: inline-block; color: @red; font-weight: bold; } &__origin-price { display: inline-block; margin-left: 5px; font-size: 10px; color: @gray-darker; text-decoration: line-through; } &__num { float: right; } &__tag { position: absolute; top: 2px; left: 0; } &__footer { text-align: right; flex: none; .van-button { margin-left: 5px; } } }