index.css 2.9 KB

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