index.acss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. .card-index {
  2. display: block;
  3. height: initial;
  4. }
  5. @import "../common/index.acss";
  6. .card-index .van-card {
  7. position: relative;
  8. box-sizing: border-box;
  9. padding: 8px 16px;
  10. padding: var(--card-padding, 8px 16px);
  11. font-size: 12px;
  12. font-size: var(--card-font-size, 12px);
  13. color: #323233;
  14. color: var(--card-text-color, #323233);
  15. background-color: #fafafa;
  16. background-color: var(--card-background-color, #fafafa);
  17. }
  18. .card-index .van-card__header {
  19. display: -webkit-flex;
  20. display: flex;
  21. }
  22. .card-index .van-card__header--center {
  23. -webkit-align-items: center;
  24. align-items: center;
  25. -webkit-justify-content: center;
  26. justify-content: center;
  27. }
  28. .card-index .van-card__thumb {
  29. position: relative;
  30. -webkit-flex: none;
  31. flex: none;
  32. width: 88px;
  33. width: var(--card-thumb-size, 88px);
  34. height: 88px;
  35. height: var(--card-thumb-size, 88px);
  36. margin-right: 8px;
  37. margin-right: var(--padding-xs, 8px);
  38. }
  39. .card-index .van-card__thumb:empty {
  40. display: none;
  41. }
  42. .card-index .van-card__img {
  43. width: 100%;
  44. height: 100%;
  45. border-radius: 8px;
  46. border-radius: var(--border-radius-lg, 8px);
  47. }
  48. .card-index .van-card__content {
  49. position: relative;
  50. display: -webkit-flex;
  51. display: flex;
  52. -webkit-flex: 1;
  53. flex: 1;
  54. -webkit-flex-direction: column;
  55. flex-direction: column;
  56. -webkit-justify-content: space-between;
  57. justify-content: space-between;
  58. min-width: 0;
  59. min-height: 88px;
  60. min-height: var(--card-thumb-size, 88px);
  61. }
  62. .card-index .van-card__content--center {
  63. -webkit-justify-content: center;
  64. justify-content: center;
  65. }
  66. .card-index .van-card__desc,
  67. .card-index .van-card__title {
  68. word-wrap: break-word;
  69. }
  70. .card-index .van-card__title {
  71. font-weight: 700;
  72. line-height: 16px;
  73. line-height: var(--card-title-line-height, 16px);
  74. }
  75. .card-index .van-card__desc {
  76. line-height: 20px;
  77. line-height: var(--card-desc-line-height, 20px);
  78. color: #646566;
  79. color: var(--card-desc-color, #646566);
  80. }
  81. .card-index .van-card__bottom {
  82. line-height: 20px;
  83. }
  84. .card-index .van-card__price {
  85. display: inline-block;
  86. font-weight: 700;
  87. color: #ee0a24;
  88. color: var(--card-price-color, #ee0a24);
  89. font-size: 12px;
  90. font-size: var(--card-price-font-size, 12px);
  91. }
  92. .card-index .van-card__price-integer {
  93. font-size: 16px;
  94. font-size: var(--card-price-integer-font-size, 16px);
  95. }
  96. .card-index .van-card__price-decimal,
  97. .card-index .van-card__price-integer {
  98. font-family: Avenir-Heavy, PingFang SC, Helvetica Neue, Arial, sans-serif;
  99. font-family: var(
  100. --card-price-font-family,
  101. Avenir-Heavy,
  102. PingFang SC,
  103. Helvetica Neue,
  104. Arial,
  105. sans-serif
  106. );
  107. }
  108. .card-index .van-card__origin-price {
  109. display: inline-block;
  110. margin-left: 5px;
  111. text-decoration: line-through;
  112. font-size: 10px;
  113. font-size: var(--card-origin-price-font-size, 10px);
  114. color: #646566;
  115. color: var(--card-origin-price-color, #646566);
  116. }
  117. .card-index .van-card__num {
  118. float: right;
  119. }
  120. .card-index .van-card__tag {
  121. position: absolute !important;
  122. top: 2px;
  123. left: 0;
  124. }
  125. .card-index .van-card__footer {
  126. -webkit-flex: none;
  127. flex: none;
  128. width: 100%;
  129. text-align: right;
  130. }