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