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