@import '../common/style/var.less'; .van-card { position: relative; padding: 5px 15px; font-size: 12px; color: @text-color; box-sizing: border-box; background-color: @background-color-light; &--center { align-items: center; justify-content: center; } &__header { display: flex; } &__thumb { position: relative; width: 90px; height: 90px; margin-right: 10px; flex: none; &:empty { display: none; } } &__img { width: 100%; height: 100%; } &__content { position: relative; flex: 1; height: 90px; min-width: 0; /* hack for flex box ellipsis */ } &__title, &__desc { word-break: break-all; } &__title { max-height: 32px; line-height: 16px; font-weight: bold; } &__desc { max-height: 20px; line-height: 20px; color: @gray-darker; } &__bottom { position: absolute; bottom: 0; left: 0; width: 100%; line-height: 18px; } &__price { display: inline-block; font-weight: bold; color: @red; } &__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 { width: 100%; text-align: right; flex: none; } }