goodsList.scss 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417
  1. @import "../theme.scss";
  2. .clearfix:after {
  3. content: "";
  4. display: block;
  5. height: 0;
  6. clear: both;
  7. visibility: hidden;
  8. }
  9. .clearfix {
  10. *zoom: 1;
  11. }
  12. .sld_store_goods_list {
  13. display: flex;
  14. position: relative;
  15. width: 1440px;
  16. margin: 17px auto 0;
  17. font-size: 12px;
  18. color: #666666;
  19. background:#fff;
  20. &.skeleton_sld_store_goods_list {
  21. .left_cat_wrap {
  22. .store_cat_item {
  23. dd {
  24. a {
  25. color: #ffffff;
  26. &:before {
  27. content: '';
  28. position: absolute;
  29. left: 30px;
  30. top: 50%;
  31. margin-top: -7px;
  32. width: 130px;
  33. height: 14px;
  34. background-color: #f8f8f8;
  35. }
  36. &:hover {
  37. color: #ffffff;
  38. }
  39. }
  40. }
  41. }
  42. }
  43. .right_goods_wrap {
  44. .sld_store_goods_list_wrap {
  45. li {
  46. .sld_goods_img {
  47. background-color: #f8f8f8;
  48. }
  49. .sld_goods_price {
  50. position: relative;
  51. &:before {
  52. content: '';
  53. position: absolute;
  54. left: 20px;
  55. top: 4px;
  56. width: 140px;
  57. height: 16px;
  58. background-color: #f8f8f8;
  59. }
  60. }
  61. .sld_goods_name_wrap {
  62. &:before {
  63. content: '';
  64. position: absolute;
  65. width: 161px;
  66. height: 18px;
  67. background-color: #f8f8f8;
  68. }
  69. }
  70. }
  71. }
  72. }
  73. }
  74. .left_cat_wrap {
  75. width: 338px;
  76. float: left;
  77. margin-right: 10px;
  78. border: 1px solid #dcdcdc;
  79. margin-bottom: 150px;
  80. .store_cat_item {
  81. margin-bottom: 0;
  82. dt {
  83. position: relative;
  84. // width: 219px;
  85. line-height: 40px;
  86. background-color: #f9f9f9;
  87. font-size: 14px;
  88. font-weight: 600;
  89. padding-left: 28px;
  90. box-sizing: border-box;
  91. //font-family: "MicrosoftYaHei-Bold";
  92. a {
  93. color: #666;
  94. cursor: pointer;
  95. }
  96. a:hover {
  97. color: $colorMain;
  98. }
  99. &::after {
  100. background-color: #6d6d6d;
  101. }
  102. }
  103. dd {
  104. padding: 15px 0;
  105. box-sizing: border-box;
  106. a {
  107. display: block;
  108. line-height: 24px;
  109. color: #666;
  110. position: relative;
  111. padding-left: 28px;
  112. cursor: pointer;
  113. &:hover {
  114. color: $colorMain;
  115. }
  116. &::after {
  117. width: 0;
  118. height: 0;
  119. left: 15px;
  120. border-width: 2px;
  121. border-style: solid;
  122. border-color: transparent transparent transparent #ccc;
  123. position: absolute;
  124. top: 50%;
  125. content: "";
  126. transform: translateY(-50%);
  127. }
  128. }
  129. }
  130. dt::after,
  131. .store_cat_item dd a::after {
  132. position: absolute;
  133. top: 50%;
  134. left: 12px;
  135. content: "";
  136. width: 5px;
  137. height: 5px;
  138. transform: translateY(-50%);
  139. }
  140. .grade_one_cat {
  141. i {
  142. position: absolute;
  143. top: 50%;
  144. right: 4px;
  145. display: inline-block;
  146. width: 7px;
  147. height: 8px;
  148. background: url(/shopmore.png) no-repeat center center;
  149. background-size: 7px 8px;
  150. padding: 10px;
  151. transition: all 0.3s;
  152. transform: translateY(-50%);
  153. cursor: pointer;
  154. }
  155. }
  156. &.on .grade_one_cat i {
  157. -webkit-transform: translateY(-50%) rotate(-90deg);
  158. -moz-transform: translateY(-50%) rotate(-90deg);
  159. -ms-transform: translateY(-50%) rotate(-90deg);
  160. -o-transform: translateY(-50%) rotate(-90deg);
  161. transform: translateY(-50%) rotate(-90deg);
  162. }
  163. }
  164. }
  165. .no_cate_goods_wrap {
  166. width: 1210px !important;
  167. }
  168. .right_goods_wrap {
  169. flex: 1;
  170. width: 100%;
  171. overflow: hidden;
  172. zoom: 1;
  173. .store_goods_search_nav {
  174. position: relative;
  175. height: 40px;
  176. background-color: #f7f5f5;
  177. padding: 5px 0;
  178. box-sizing: border-box;
  179. & > span {
  180. margin: 0 20px 0 15px;
  181. color: #666;
  182. float: left;
  183. line-height: 26px;
  184. user-select: none;
  185. -moz-user-select: none;
  186. -webkit-user-select: none;
  187. -ms-user-select: none;
  188. &:hover {
  189. color: $colorMain;
  190. i.iconfont {
  191. color: $colorMain;
  192. }
  193. }
  194. i {
  195. font-size: 12px;
  196. vertical-align: bottom;
  197. color: #c7bfbf;
  198. }
  199. }
  200. & > div {
  201. float: left;
  202. line-height: 26px;
  203. }
  204. .sld_store_goods_total_num {
  205. float: right;
  206. margin-right: 10px;
  207. font-weight: 400;
  208. font-size: 12px;
  209. color: #282E30;
  210. }
  211. span {
  212. &.active {
  213. font-weight: bold;
  214. font-size: 20px;
  215. color: $colorMain;
  216. i {
  217. color: $colorMain;
  218. }
  219. }
  220. }
  221. }
  222. .sld_store_goods_list_wrap {
  223. display: flex;
  224. flex-wrap: wrap;
  225. // justify-content: space-around;
  226. margin: 15px 0 40px;
  227. margin: 10px 0 0 0;
  228. overflow: hidden;
  229. padding-bottom: 10px;
  230. margin: 10px 0 0 0;
  231. overflow: hidden;
  232. padding-bottom: 10px;
  233. li {
  234. border: 1px solid #fff;
  235. display: flex;
  236. flex-direction: column;
  237. justify-content: center;
  238. align-items: center;
  239. width: 24.5%;
  240. padding: 29px 11px 20px 11px;
  241. box-sizing: border-box;
  242. height: 384px;
  243. &:hover {
  244. border-color: rgb(204, 204, 204);
  245. }
  246. &:nth-child(4n) {
  247. margin-right: 0;
  248. }
  249. .sld_goods_img {
  250. position: relative;
  251. width: 214px;
  252. height: 214px;
  253. overflow: hidden;
  254. img {
  255. position: absolute;
  256. top: 50%;
  257. left: 50%;
  258. max-width: 100%;
  259. max-height: 100%;
  260. -webkit-transform: translate(-50%, -50%);
  261. -moz-transform: translate(-50%, -50%);
  262. -ms-transform: translate(-50%, -50%);
  263. -o-transform: translate(-50%, -50%);
  264. transform: translate(-50%, -50%);
  265. }
  266. }
  267. .sld_goods_price {
  268. color: $colorMain;
  269. font-size: 14px;
  270. padding: 0;
  271. em {
  272. padding: 0 5px;
  273. font-size: 12px;
  274. font-style: normal;
  275. overflow: hidden;
  276. word-break: break-all;
  277. text-overflow: ellipsis;
  278. display: -webkit-box;
  279. -webkit-box-orient: vertical;
  280. -webkit-line-clamp: 2;
  281. }
  282. }
  283. .sld_goods_name_wrap {
  284. padding: 0 15px;
  285. margin-top: 10px;
  286. overflow: hidden;
  287. .sld_goods_name {
  288. font-weight: 400;
  289. font-size: 12px;
  290. color: #282E30;
  291. margin-bottom: 4px;
  292. height: 32px;
  293. line-height: 16px;
  294. overflow: hidden;
  295. word-break: break-all;
  296. text-overflow: ellipsis;
  297. display: -webkit-box;
  298. -webkit-box-orient: vertical;
  299. -webkit-line-clamp: 2;
  300. //font-family: MicrosoftYaHei;
  301. }
  302. }
  303. .promotion_tag {
  304. // clear: both;
  305. // overflow: hidden;
  306. width: 100%;
  307. display: flex;
  308. align-items: center;
  309. justify-content: center;
  310. margin: 8px 0;
  311. height: 46px;
  312. background: #DDE1E6;
  313. // .fl {
  314. // margin-top: -3px;
  315. // margin-left: -18px;
  316. // }
  317. .promotion_tag_text {
  318. background: linear-gradient(45deg, #ff6c00, #ffc053);
  319. }
  320. span {
  321. // line-height: 30px;
  322. padding: 2px 3px;
  323. border-radius: 2px;
  324. color: #fff;
  325. margin-right: 3px;
  326. font-size: 12px;
  327. transform: scale(0.5);
  328. -webkit-transform: scale(0.5);
  329. }
  330. .sld_collect_wrap {
  331. background-color: transparent;
  332. border: none;
  333. outline: none;
  334. cursor: pointer;
  335. color: #666;
  336. i {
  337. font-size: 20px;
  338. vertical-align: middle;
  339. margin-right: 6px;
  340. }
  341. }
  342. .collect_active {
  343. color: #ff0e1f !important;
  344. }
  345. }
  346. &:hover {
  347. box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  348. }
  349. p {
  350. &.clearfix {
  351. padding: 8px 0 10px;
  352. .fr {
  353. color: #999;
  354. margin-top: 4px;
  355. em {
  356. color: $colorMain;
  357. font-style: normal;
  358. }
  359. }
  360. }
  361. }
  362. }
  363. }
  364. }
  365. .fr {
  366. float: right;
  367. }
  368. .fl {
  369. float: left;
  370. }
  371. }