commodity.css 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. /* 宝贝样式 */
  2. /* 双排样式 */
  3. .even-commodity {
  4. position: relative;
  5. width: calc(50% - 10px);
  6. display: inline-block;
  7. background: #f7f7f7;
  8. padding: 0;
  9. margin: 16px 0 0 0;
  10. border: none;
  11. border-radius: 6px;
  12. box-sizing: border-box;
  13. }
  14. .commodity-group .even-commodity:nth-child(1), .commodity-group .even-commodity:nth-child(2) {
  15. margin-top: 0;
  16. }
  17. .commodity-group .even-commodity:nth-child(odd) {
  18. margin-right: 10px;
  19. }
  20. .commodity-group .even-commodity:nth-child(even) {
  21. margin-left: 10px;
  22. }
  23. .even-commodity img {
  24. width: 100%;
  25. height: 100%;
  26. border-radius: 6px 6px 0 0;
  27. }
  28. .commodity-details {
  29. padding: 1rem;
  30. }
  31. .details-title {
  32. width: 100%;
  33. line-height: 1;
  34. font-size: 14px;
  35. color: #333333;
  36. text-align: left;
  37. margin-bottom: 1rem;
  38. display: block;
  39. word-wrap: normal;
  40. text-overflow: ellipsis;
  41. white-space: nowrap;
  42. overflow: hidden;
  43. }
  44. .commodity-message {
  45. display: flex;
  46. justify-content: space-between;
  47. }
  48. .message-left {
  49. display: inline-flex;
  50. flex-direction: column;
  51. text-align: left;
  52. }
  53. .message-left > span > span:first-child {
  54. font-size: 14px;
  55. color: #999999;
  56. padding-right: .5rem;
  57. }
  58. .message-left > span > span:last-child {
  59. font-size: 1.8rem;
  60. font-weight: 600;
  61. color: #EF6262;
  62. }
  63. .message-right {
  64. display: inline-flex;
  65. justify-content: space-between;
  66. flex-direction: column;
  67. }
  68. .message-right > span:first-child {
  69. font-size: 14px;
  70. color: #999999;
  71. }
  72. /* 单排样式一 */
  73. .single-content-one {
  74. width: 60%;
  75. margin: 0 auto;
  76. }
  77. .single-info-one {
  78. position: relative;
  79. background: #F7F7F7;
  80. margin-bottom: 16px;
  81. border-radius: 6px;
  82. }
  83. .single-info-one:last-child {
  84. margin-bottom: 0;
  85. }
  86. .single-info-one > img {
  87. width: 100%;
  88. border-radius: 6px 6px 0 0;
  89. display: block;
  90. }
  91. .single-details-one {
  92. padding: 1rem;
  93. }
  94. .single-title-one {
  95. width: 100%;
  96. line-height: 1;
  97. font-size: 14px;
  98. color: #333333;
  99. text-align: left;
  100. padding-bottom: 1rem;
  101. display: block;
  102. word-wrap: normal;
  103. text-overflow: ellipsis;
  104. white-space: nowrap;
  105. overflow: hidden;
  106. }
  107. .single-coupon-one {
  108. display: flex;
  109. align-items: center;
  110. justify-content: space-between;
  111. margin-bottom: 1rem;
  112. }
  113. .single-coupon-one > span:last-child {
  114. font-size: 14px;
  115. color: #999999;
  116. }
  117. .single-message-one {
  118. display: flex;
  119. justify-content: space-between;
  120. }
  121. .single-message-one > span > span:last-child {
  122. font-size: 1.8rem;
  123. font-weight: 600;
  124. color: #EF6262;
  125. }
  126. /* 单排样式二 */
  127. .single-content {
  128. width: 80%;
  129. margin: 0 auto;
  130. }
  131. .single-info {
  132. position: relative;
  133. display: flex;
  134. background: #F7F7F7;
  135. margin-bottom: 16px;
  136. border-radius: 6px;
  137. }
  138. .single-info:last-child {
  139. margin-bottom: 0;
  140. }
  141. .single-info > img {
  142. width: 140px;
  143. height: 140px;
  144. border-radius: 6px 0 0 6px;
  145. }
  146. .single-details-two {
  147. width: calc(100% - 140px);
  148. display: flex;
  149. align-content: space-between;
  150. flex-wrap: wrap;
  151. padding: 1rem;
  152. }
  153. .single-title-two {
  154. width: 100%;
  155. font-size: 14px;
  156. color: #333333;
  157. text-align: left;
  158. display: -webkit-box;
  159. -webkit-line-clamp: 1;
  160. -webkit-box-orient: vertical;
  161. text-overflow: ellipsis;
  162. overflow: hidden;
  163. }
  164. .single-coupon-two {
  165. width: 100%;
  166. font-size: 14px;
  167. display: flex;
  168. align-items: center;
  169. justify-content: space-between;
  170. }
  171. .single-coupon-two > span:last-child {
  172. color: #999999;
  173. }
  174. .single-couponmoney-two {
  175. position: relative;
  176. color: #ffffff;
  177. background: linear-gradient(85deg, #f75f2e 0%, #ef6262 100%);
  178. padding: .2rem 1rem;
  179. border-radius: 4px;
  180. }
  181. .single-message-two {
  182. width: 100%;
  183. text-align: left;
  184. display: flex;
  185. align-items: center;
  186. justify-content: space-between;
  187. }
  188. .single-message-two > span > span:first-child {
  189. font-size: 14px;
  190. color: #999999;
  191. }
  192. .single-message-two > span > span:last-child {
  193. font-size: 2rem;
  194. font-weight: 600;
  195. color: #ef6262;
  196. }
  197. .single-container .single-info:hover .commodity-remove {
  198. display: flex;
  199. }
  200. .adaptive-picture {
  201. position: relative;
  202. width: 100%;
  203. height: 0;
  204. padding-bottom: 100%;
  205. }
  206. .adaptive-picture > img {
  207. position: absolute;
  208. left: 0;
  209. width: 100%;
  210. height: 100%;
  211. }
  212. .coupon-style {
  213. position: relative;
  214. width: 80px;
  215. height: 26px;
  216. line-height: 26px;
  217. font-size: 14px;
  218. color: #ffffff;
  219. background: linear-gradient(85deg, #f75f2e 0%, #ef6262 100%);
  220. padding: 0 .5rem;
  221. display: inline-flex;
  222. border-radius: 4px;
  223. }
  224. .coupon-style::before {
  225. content: "";
  226. position: absolute;
  227. left: -6px;
  228. top: calc(50% - 6px);
  229. width: 12px;
  230. height: 12px;
  231. background: #f7f7f7;
  232. border-radius: 50%;
  233. }
  234. .coupon-style::after {
  235. content: "";
  236. position: absolute;
  237. right: -6px;
  238. top: calc(50% - 6px);
  239. width: 12px;
  240. height: 12px;
  241. background: #f7f7f7;
  242. border-radius: 50%;
  243. }
  244. .coupon-style > span:first-child {
  245. width: 26px;
  246. display: inline-flex;
  247. justify-content: center;
  248. }
  249. .coupon-style > span:first-child::after {
  250. content: "";
  251. position: absolute;
  252. left: 32px;
  253. top: calc(50% - 7px);
  254. width: 1px;
  255. height: 14px;
  256. background: #ffffff;
  257. }
  258. .coupon-style > span:last-child {
  259. width: calc(100% - 26px);
  260. display: inline-flex;
  261. justify-content: center;
  262. }
  263. @media screen and (max-width: 760px) {
  264. .even-commodity {
  265. width: calc(50% - 5px);
  266. }
  267. .commodity-group .even-commodity:nth-child(odd) {
  268. margin-right: 5px;
  269. }
  270. .commodity-group .even-commodity:nth-child(even) {
  271. margin-left: 5px;
  272. }
  273. .commodity-message {
  274. align-items: center;
  275. margin-bottom: 1rem;
  276. }
  277. .single-content {
  278. width: 100%;
  279. }
  280. }
  281. /* 移动端 */
  282. .coupon-box {
  283. width: 100%;
  284. display: flex;
  285. align-items: center;
  286. justify-content: space-between;
  287. }
  288. .coupon-box .coupon-style {
  289. width: 64px;
  290. }
  291. .commodity-view {
  292. font-size: 12px;
  293. color: #FFFFFF;
  294. background: linear-gradient(90deg, #f75f2e 0%, #ef6262 100%);
  295. padding: 5px 8px;
  296. border-radius: 4px;
  297. cursor: pointer;
  298. }
  299. .mobile-coupon {
  300. font-size: 12px;
  301. color: #999999;
  302. }
  303. .mobile-price {
  304. font-size: 14px;
  305. color: #FF3C00;
  306. }
  307. .mobile-sold {
  308. font-size: 12px;
  309. color: #999999;
  310. }