goodsList.scss 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683
  1. @import "./theme.scss";
  2. *,
  3. html,
  4. body {
  5. padding: 0;
  6. margin: 0;
  7. }
  8. ul,
  9. ol,
  10. li {
  11. list-style: none;
  12. }
  13. a {
  14. text-decoration: none;
  15. color: #666666;
  16. }
  17. a:hover {
  18. text-decoration: none;
  19. color: #666666;
  20. cursor: pointer;
  21. }
  22. em,
  23. i {
  24. font-style: normal;
  25. }
  26. h3 {
  27. font-size: 14px;
  28. }
  29. body {
  30. font: 12px/150% Arial, Verdana, "\5b8b\4f53";
  31. //font-family: "microsoft yahei";
  32. color: #666;
  33. background: #fff;
  34. }
  35. ul {
  36. margin-bottom: 0;
  37. }
  38. .fl {
  39. float: left;
  40. }
  41. .fr {
  42. float: right;
  43. }
  44. .clearfix {
  45. display: block;
  46. zoom: 1;
  47. }
  48. .goods_list_container {
  49. .level_nav_main {
  50. height: 40px;
  51. background-color: #f2f2f2;
  52. margin-bottom: 15px;
  53. .level_item {
  54. width: 1200px;
  55. margin: 0px auto;
  56. height: 40px;
  57. color: #848484;
  58. line-height: 40px;
  59. //font-family: "microsoft yahei";
  60. position: relative;
  61. .level-right {
  62. float: left;
  63. display: inline-block;
  64. width: 8px;
  65. height: 1px;
  66. background-color: #cecece;
  67. margin: 19px 7px 0;
  68. }
  69. .level_link {
  70. position: relative;
  71. float: left;
  72. font-size: 12px;
  73. color: #848484;
  74. line-height: 26px;
  75. //font-family: "microsoft yahei";
  76. }
  77. .level_nav_item {
  78. font-size: 12px;
  79. height: 40px;
  80. padding: 6px 0 4px;
  81. position: relative;
  82. float: left;
  83. margin-right: 5px;
  84. .menu_drop {
  85. display: inline-block;
  86. height: 24px;
  87. cursor: pointer;
  88. .trigger {
  89. position: relative;
  90. display: inline-block;
  91. height: 26px;
  92. min-width: 89px;
  93. padding: 0 4px 0 8px;
  94. border: 1px solid #e1e1e1;
  95. line-height: 24px;
  96. vertical-align: top;
  97. background-color: #fff;
  98. z-index: 1;
  99. .trigger_name {
  100. display: inline-block;
  101. vertical-align: top;
  102. color: #848484;
  103. }
  104. &.label {
  105. margin-right: 5px;
  106. padding-right: 0;
  107. &:hover {
  108. border: 1px solid $colorMain;
  109. span:nth-child(2) {
  110. background-color: $colorMain;
  111. }
  112. .el-icon-close {
  113. color: #fff;
  114. }
  115. }
  116. span:nth-child(2) {
  117. margin-left: 5px;
  118. display: inline-block;
  119. width: 24px;
  120. height: 24px;
  121. }
  122. }
  123. }
  124. .menu_drop_arrow {
  125. float: right;
  126. display: inline-block;
  127. width: 16px;
  128. height: 16px;
  129. vertical-align: top;
  130. background: url(/search.png) no-repeat 2px 7px;
  131. -moz-transition: background-position 0.15s ease-in-out;
  132. transition: background-position 0.15s ease-in-out;
  133. overflow: hidden;
  134. margin-top: 2px;
  135. margin-left: 5px;
  136. }
  137. .el-icon-close {
  138. float: right;
  139. display: inline-block;
  140. width: 16px;
  141. height: 16px;
  142. vertical-align: top;
  143. background: url(/search.png) no-repeat 2px 7px;
  144. transition: background-position 0.15s ease-in-out;
  145. overflow: hidden;
  146. margin-top: 2px;
  147. margin-right: 5px;
  148. background-position: 2px -123px;
  149. &:before {
  150. font-size: 15px;
  151. }
  152. }
  153. &:hover {
  154. .hasChild {
  155. height: 27px;
  156. border-color: $colorMain;
  157. border-bottom: none;
  158. z-index: 5;
  159. }
  160. .menu_drop_arrow {
  161. background-position: 2px -43px;
  162. }
  163. .menu_drop_main {
  164. display: block;
  165. border-color: $colorMain;
  166. z-index: 1;
  167. }
  168. .el-icon-close{
  169. background-position: 2px -141px;
  170. }
  171. }
  172. .menu_drop_main {
  173. position: relative;
  174. display: none;
  175. width: 360px;
  176. padding: 15px 10px;
  177. position: absolute;
  178. left: 0;
  179. top: 27px;
  180. border: 1px solid #e1e1e1;
  181. background-color: #fff;
  182. z-index: 2;
  183. margin-top: 5px;
  184. .menu_drop_list li {
  185. float: left;
  186. width: 65px;
  187. height: 24px;
  188. overflow: hidden;
  189. line-height: 24px;
  190. margin-right: 5px;
  191. text-overflow: ellipsis;
  192. white-space: nowrap;
  193. margin-bottom: 0;
  194. a {
  195. color: #333;
  196. }
  197. }
  198. }
  199. }
  200. }
  201. .level_right {
  202. display: inline-block;
  203. width: 8px;
  204. height: 1px;
  205. background-color: #cecece;
  206. margin: 11px 5px 4px;
  207. line-height: 26px;
  208. }
  209. }
  210. }
  211. .goods_list_banner {
  212. width: 1200px;
  213. margin: 0 auto;
  214. background: #fff;
  215. }
  216. .goods_list {
  217. width: 1200px;
  218. margin: 0 auto;
  219. margin-top: 10px;
  220. padding-left: 0px;
  221. padding-right: 0px;
  222. background: #fff;
  223. .sld_screen {
  224. -moz-user-select: none; /*火狐*/
  225. -webkit-user-select: none; /*webkit浏览器*/
  226. -ms-user-select: none; /*IE10*/
  227. user-select: none;
  228. padding: 5px 20px;
  229. line-height: 36px;
  230. position: relative;
  231. height: 36px;
  232. background-color: #f7f5f5;
  233. box-sizing: border-box;
  234. .good_type {
  235. p a input {
  236. vertical-align: middle;
  237. margin-top: 3px;
  238. }
  239. }
  240. & > a.btn_sort {
  241. color: $colorMain2;
  242. }
  243. i {
  244. color: #afafaf;
  245. }
  246. & > a {
  247. margin: 0 20px 0 15px;
  248. &:hover {
  249. color: $colorMain2;
  250. i {
  251. color: $colorMain2;
  252. }
  253. }
  254. }
  255. & > a,
  256. & > input,
  257. & > div {
  258. float: left;
  259. line-height: 26px;
  260. }
  261. .sld_goods_num {
  262. float: right;
  263. line-height: 26px;
  264. margin-right: 10px;
  265. }
  266. .sld_price_jt {
  267. position: relative;
  268. &::after,
  269. &::before {
  270. position: absolute;
  271. content: "";
  272. right: -15px;
  273. width: 0;
  274. height: 0;
  275. border-width: 5px;
  276. border-style: solid;
  277. }
  278. &::before {
  279. top: 50%;
  280. transform: translateY(3px);
  281. border-color: #afafaf transparent transparent transparent;
  282. }
  283. &::after {
  284. top: 50%;
  285. -webkit-transform: translateY(-12px);
  286. -moz-transform: translateY(-12px);
  287. -ms-transform: translateY(-12px);
  288. -o-transform: translateY(-12px);
  289. transform: translateY(-12px);
  290. border-color: transparent transparent #afafaf transparent;
  291. }
  292. }
  293. .sld_price_jt_down {
  294. &::before {
  295. border-color: $colorMain2 transparent transparent transparent;
  296. }
  297. }
  298. .sld_price_jt_up {
  299. &::after {
  300. border-color: transparent transparent $colorMain2 transparent;
  301. }
  302. }
  303. .goods_page {
  304. line-height: 26px;
  305. a,
  306. p {
  307. display: inline-block;
  308. em {
  309. color: $colorMain2;
  310. }
  311. }
  312. a {
  313. padding: 0 6px;
  314. i {
  315. font-size: 12px;
  316. color: #666666;
  317. }
  318. i.prev {
  319. display: inline-block;
  320. -webkit-transform: rotate(90deg);
  321. -moz-transform: rotate(90deg);
  322. -ms-transform: rotate(90deg);
  323. -o-transform: rotate(90deg);
  324. transform: rotate(90deg);
  325. }
  326. i.next {
  327. display: inline-block;
  328. -webkit-transform: rotate(-90deg);
  329. -moz-transform: rotate(-90deg);
  330. -ms-transform: rotate(-90deg);
  331. -o-transform: rotate(-90deg);
  332. transform: rotate(-90deg);
  333. }
  334. }
  335. }
  336. }
  337. .sld_goods_list {
  338. width: 1200px;
  339. margin: 15px 0 40px;
  340. &.skeleton_sld_goods_list {
  341. li {
  342. .sld_img {
  343. background: $colorSkeleton;
  344. }
  345. }
  346. .sld_h32_hide {
  347. background: $colorSkeleton;
  348. width: 100%;
  349. }
  350. .sld_goods_price {
  351. display: inline-block;
  352. background: #eee;
  353. width: 70px;
  354. height: 19px;
  355. color: transparent;
  356. }
  357. p.clearfix {
  358. .fr {
  359. color: #999;
  360. width: 55px;
  361. height: 18px;
  362. background: $colorSkeleton;
  363. color: transparent;
  364. }
  365. }
  366. .tag {
  367. .sld_follow {
  368. background: #eee;
  369. width: 60px;
  370. height: 23px;
  371. color: transparent;
  372. cursor: pointer;
  373. }
  374. }
  375. }
  376. li {
  377. float: left;
  378. width: 240px;
  379. // height: 429px; //456px;
  380. padding: 21px 11px 20px 11px;
  381. box-sizing: border-box;
  382. margin: 0 0px 11px 0;
  383. &:hover {
  384. box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  385. }
  386. &:nth-child(5n) {
  387. margin-right: 0;
  388. }
  389. .sld_img {
  390. width: 217px;
  391. height: 217px;
  392. }
  393. }
  394. p.clearfix {
  395. padding: 10px 0;
  396. .fr {
  397. color: #999;
  398. em {
  399. color: #333333;
  400. }
  401. }
  402. }
  403. .sld_goods_price {
  404. color: $colorMain2;
  405. font-size: 14px;
  406. padding: 0px;
  407. height: 38px;
  408. }
  409. a {
  410. color: #606060;
  411. margin-bottom: 4px;
  412. }
  413. .sale_num {
  414. color: #606060;
  415. margin-bottom: 13px;
  416. }
  417. .sld_vendor_name {
  418. font-size: 12px;
  419. //font-family: Microsoft YaHei;
  420. font-weight: 400;
  421. min-height: 18px;
  422. color: #999999;
  423. cursor: pointer;
  424. overflow: hidden;
  425. white-space: nowrap;
  426. text-overflow: ellipsis;
  427. &:hover {
  428. text-decoration: underline;
  429. }
  430. }
  431. .sld_goods_name {
  432. height: 40px;
  433. line-height: 20px;
  434. overflow: hidden;
  435. word-break: break-all;
  436. text-overflow: ellipsis;
  437. display: -webkit-box;
  438. -webkit-box-orient: vertical;
  439. -webkit-line-clamp: 2;
  440. font-size: 16px;
  441. //font-family: MicrosoftYaHei;
  442. }
  443. .tag {
  444. margin: 8px 0;
  445. .is_own {
  446. width: 32px;
  447. height: 18px;
  448. background: linear-gradient(90deg, #00985e, #00985e);
  449. border-radius: 3px;
  450. line-height: 18px;
  451. text-align: center;
  452. font-size: 12px;
  453. //font-family: Microsoft YaHei;
  454. font-weight: 400;
  455. color: #ffffff;
  456. margin-right: 5px;
  457. }
  458. .tag_b {
  459. background: #fff;
  460. border: 1px solid $colorMain;
  461. font-size: 12px;
  462. //font-family: Microsoft YaHei;
  463. font-weight: 400;
  464. margin-right: 5px;
  465. color: $colorMain;
  466. padding: 1px 3px;
  467. border-radius: 3px;
  468. &.tag_b_pre_sale {
  469. border: 1px solid #236ffa !important;
  470. color: #236ffa !important;
  471. }
  472. }
  473. span {
  474. display: inline-block;
  475. line-height: 15px;
  476. padding: 0 3px;
  477. border-radius: 2px;
  478. color: #fff;
  479. margin-right: 2px;
  480. }
  481. .sld_follow {
  482. cursor: pointer;
  483. background-color: transparent;
  484. color: inherit;
  485. border: none;
  486. outline: none;
  487. i {
  488. font-size: 20px;
  489. vertical-align: middle;
  490. margin-right: 6px;
  491. }
  492. &.on {
  493. color: $colorMain2;
  494. }
  495. }
  496. }
  497. .op_but {
  498. margin-top: 20px;
  499. .but_i {
  500. height: 28px;
  501. border: 1px solid #e5e5e5;
  502. font-size: 13px;
  503. color: #999999;
  504. cursor: pointer;
  505. &.first {
  506. width: 96px;
  507. }
  508. &.second {
  509. width: 109px;
  510. color: $colorMain !important;
  511. }
  512. i {
  513. font-size: 16px;
  514. vertical-align: middle;
  515. margin-right: 6px;
  516. }
  517. img {
  518. width: 15px;
  519. height: 15px;
  520. }
  521. .collection {
  522. width: 20px !important;
  523. height: 21px !important;
  524. }
  525. &:last-child {
  526. border-left: none;
  527. }
  528. }
  529. }
  530. }
  531. }
  532. .goods_type {
  533. margin-left: 295px;
  534. p {
  535. display: inline-block;
  536. margin-left: 20px;
  537. }
  538. }
  539. .price_section {
  540. position: absolute;
  541. top: -6px;
  542. left: 138px;
  543. width: 170px;
  544. padding: 6px 6px 0;
  545. border: 1px solid transparent;
  546. .ctrl {
  547. display: none;
  548. padding-top: 8px;
  549. a {
  550. height: 23px;
  551. padding: 0 10px;
  552. &:nth-child(1) {
  553. color: #005aa0;
  554. }
  555. &:nth-child(2) {
  556. color: #333333;
  557. line-height: 21px;
  558. border: 1px solid #cccccc;
  559. }
  560. }
  561. }
  562. .input_box {
  563. position: relative;
  564. margin-top: 6px;
  565. input[type="number"] {
  566. position: relative;
  567. width: 71px;
  568. height: 26px;
  569. line-height: 24px;
  570. border: 1px solid #e5e5e5;
  571. padding-left: 15px;
  572. box-sizing: border-box;
  573. outline: none;
  574. }
  575. .line {
  576. display: inline-block;
  577. width: 4px;
  578. height: 2px;
  579. background-color: #a9a9a9;
  580. margin: 0 1px;
  581. vertical-align: middle;
  582. &::after {
  583. top: 1px;
  584. left: 88px;
  585. position: absolute;
  586. top: 0;
  587. left: 5px;
  588. content: "¥";
  589. font-size: 12px;
  590. color: #a9a9a9;
  591. line-height: 24px;
  592. z-index: 0;
  593. }
  594. }
  595. }
  596. &:hover {
  597. height: 78px;
  598. border-color: #999999;
  599. background-color: #fff;
  600. }
  601. &:hover .ctrl {
  602. display: block;
  603. }
  604. }
  605. }
  606. .search_cate {
  607. font-size: 13px;
  608. width: 1200px;
  609. margin: 0 auto;
  610. .cate,
  611. .brand {
  612. display: flex;
  613. flex-wrap: wrap;
  614. height: 46px;
  615. line-height: 46px;
  616. a {
  617. display: inline-block;
  618. padding-left: 15px;
  619. margin-left: 20px;
  620. }
  621. .see_more {
  622. margin-left: 20px;
  623. }
  624. }
  625. }
  626. .sld_img_center {
  627. position: relative;
  628. width: 214px;
  629. height: 214px;
  630. overflow: hidden;
  631. img {
  632. position: absolute;
  633. top: 50%;
  634. left: 50%;
  635. max-width: 100%;
  636. max-height: 100%;
  637. -webkit-transform: translate(-50%, -50%);
  638. -moz-transform: translate(-50%, -50%);
  639. -ms-transform: translate(-50%, -50%);
  640. -o-transform: translate(-50%, -50%);
  641. transform: translate(-50%, -50%);
  642. }
  643. }
  644. .el-pager li.active {
  645. color: $colorMain;
  646. cursor: default;
  647. }
  648. .el-pager li:hover {
  649. color: $colorMain;
  650. }