solitaireGood.wxss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. .spu {
  2. display: flex;
  3. }
  4. .img-class {
  5. width: 160rpx;
  6. height: 160rpx;
  7. border-radius: 10rpx;
  8. overflow: hidden;
  9. }
  10. .item-m {
  11. display: flex;
  12. flex-direction: column;
  13. flex: 2;
  14. margin-left: 20rpx;
  15. width: 0;
  16. }
  17. .item-r {
  18. display: flex;
  19. flex-direction: column;
  20. margin-left: 15rpx;
  21. align-items: flex-end;
  22. justify-content: center;
  23. }
  24. .spu-title {
  25. color: #333;
  26. font-size: 30rpx;
  27. height: 32rpx;
  28. margin-bottom: 12rpx;
  29. margin-top: 10rpx;
  30. font-weight: bold;
  31. position: relative;
  32. }
  33. .spu-title .span {
  34. width: 100%;
  35. height: 40rpx;
  36. position: absolute;
  37. left: 0;
  38. top: -4rpx;
  39. line-height: 40rpx;
  40. overflow: hidden;
  41. text-overflow: ellipsis;
  42. white-space: nowrap;
  43. margin: 0;
  44. }
  45. .spu-desc {
  46. font-size: 26rpx;
  47. line-height: 26rpx;
  48. color: #999;
  49. position: relative;
  50. height: 26rpx;
  51. margin-bottom: 12rpx;
  52. }
  53. .spu-desc .em {
  54. display: block;
  55. width: 100%;
  56. height: 32rpx;
  57. position: absolute;
  58. left: 0;
  59. top: -2rpx;
  60. line-height: 32rpx;
  61. overflow: hidden;
  62. text-overflow: ellipsis;
  63. white-space: nowrap;
  64. }
  65. .spu-price {
  66. font-size: 26rpx;
  67. line-height: 26rpx;
  68. overflow: hidden;
  69. margin-top: auto;
  70. }
  71. .spu-price .sale-price {
  72. color: #ff5344;
  73. margin-right: 12rpx;
  74. }
  75. .spu-price .sale-price .span {
  76. font-size: 40rpx;
  77. line-height: 42rpx;
  78. margin: 0;
  79. font-weight: bold;
  80. }
  81. .spu-price .market-price {
  82. text-decoration: line-through;
  83. color: #999;
  84. margin-top: 10rpx;
  85. }
  86. .btn {
  87. display: inline-block;
  88. color: #fff;
  89. border-radius: 8rpx;
  90. background: linear-gradient(90deg, #ff5041 0%, #ff695c 100%);
  91. padding: 8rpx 30rpx;
  92. font-size: 24rpx;
  93. }
  94. .count {
  95. width: 100%;
  96. font-size: 28rpx;
  97. color: #999;
  98. text-align: right;
  99. }
  100. .addBtn .img {
  101. width: 48rpx;
  102. height: 48rpx;
  103. }
  104. .input-number-text {
  105. font-size: 26rpx!important;
  106. }
  107. .i-flex-center {
  108. display: flex;
  109. align-items: center;
  110. justify-content: center;
  111. }
  112. .cartNum {
  113. position: relative;
  114. text-align: center;
  115. height: 48rpx;
  116. width: 66rpx;
  117. font-size: 26rpx;
  118. line-height: 48rpx;
  119. z-index: 0;
  120. }
  121. .optBtn {
  122. display: inline-block;
  123. color: #fff;
  124. border-radius: 30rpx;
  125. background: linear-gradient(90deg, #ff5041 0%, #ff695c 100%);
  126. padding: 8rpx 30rpx;
  127. font-size: 24rpx;
  128. font-weight: bold;
  129. }
  130. .optBtn.disabled {
  131. background: #ccc;
  132. }
  133. .thumb {
  134. position: relative;
  135. }
  136. .spu .mask {
  137. background: rgba(255, 255, 255, 0.5);
  138. width: 160rpx;
  139. height: 160rpx;
  140. position: absolute;
  141. left: 0;
  142. top: 0;
  143. }
  144. .spu .act-end {
  145. position: absolute;
  146. height: 50rpx;
  147. border-radius: 10rpx;
  148. background: rgba(0, 0, 0, 0.5);
  149. color: #fff;
  150. font-size: 24rpx;
  151. text-align: center;
  152. line-height: 50rpx;
  153. left: 50%;
  154. top: 50%;
  155. width: 100rpx;
  156. transform: translate(-50%, -50%);
  157. }