goodsList.scss 8.2 KB

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