storeHeader.scss 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676
  1. @use "../theme.scss" as *;
  2. .sld_store_header {
  3. background: #fff;
  4. .container {
  5. width: 1210px;
  6. margin: 0 auto;
  7. padding-left: 0px;
  8. padding-right: 0px;
  9. height: 99px;
  10. position: relative;
  11. z-index: 12;
  12. &:before {
  13. display: table;
  14. content: " ";
  15. }
  16. .left {
  17. position: relative;
  18. float: left;
  19. width: 385px;
  20. .sld_img_center {
  21. display: block;
  22. width: 115px;
  23. height: 98px;
  24. position: relative;
  25. img {
  26. position: absolute;
  27. top: 50%;
  28. left: 50%;
  29. max-width: 100%;
  30. max-height: 100%;
  31. -webkit-transform: translate(-50%, -50%);
  32. -moz-transform: translate(-50%, -50%);
  33. -ms-transform: translate(-50%, -50%);
  34. -o-transform: translate(-50%, -50%);
  35. transform: translate(-50%, -50%);
  36. }
  37. }
  38. .line {
  39. position: static;
  40. width: 1px;
  41. height: 44px;
  42. background-color: #ebebeb;
  43. margin: 32px 8px 0 8px;
  44. }
  45. .sld_store_rate {
  46. position: relative;
  47. margin-top: 8px;
  48. cursor: pointer;
  49. min-height: 75px;
  50. line-height: 75px;
  51. &:hover {
  52. .sld_store_info_more {
  53. display: block !important;
  54. }
  55. .sld_sjx {
  56. -webkit-transform: translateY(-1px) rotate(180deg);
  57. -moz-transform: translateY(-1px) rotate(180deg);
  58. -ms-transform: translateY(-1px) rotate(180deg);
  59. -o-transform: translateY(-1px) rotate(180deg);
  60. transform: translateY(-1px) rotate(180deg);
  61. }
  62. }
  63. .name {
  64. color: #555555;
  65. font-size: 16px;
  66. font-weight: 600;
  67. margin: 6px 0 6px;
  68. display: flex;
  69. span{
  70. text-overflow: ellipsis;
  71. overflow: hidden;
  72. white-space: nowrap;
  73. width: 160px;
  74. display: inline-block;
  75. }
  76. }
  77. .rate {
  78. color: #555555;
  79. font-size: 13px;
  80. em {
  81. color: $colorMain;
  82. font-style: normal;
  83. }
  84. }
  85. .sld_sjx {
  86. display: inline-block;
  87. width: 0;
  88. height: 0;
  89. border-style: solid;
  90. border-color: $colorMain transparent transparent transparent;
  91. border-width: 6px;
  92. margin-left: 5px;
  93. transition: all 0.2s;
  94. -webkit-transform: translateY(5px);
  95. -moz-transform: translateY(5px);
  96. -ms-transform: translateY(5px);
  97. -o-transform: translateY(5px);
  98. transform: translateY(5px);
  99. position: absolute;
  100. right: -10px;
  101. top: 38px;
  102. }
  103. .sld_store_info_more {
  104. display: none;
  105. position: absolute;
  106. top: 65px;
  107. left: -116px;
  108. width: 362px;
  109. padding: 13px 12px 14px 16px;
  110. box-sizing: border-box;
  111. background-color: #fff;
  112. border: 1px solid #eeeeee;
  113. font-size: 12px;
  114. color: #666;
  115. line-height: 1.5;
  116. z-index: 99;
  117. cursor: auto;
  118. .top {
  119. padding-bottom: 6px;
  120. h4 {
  121. line-height: 1.5;
  122. margin-bottom: 4px;
  123. }
  124. p {
  125. line-height: 1.5;
  126. padding: 2px 0;
  127. display: flex;
  128. align-items: center;
  129. }
  130. .fr {
  131. width: 92px;
  132. height: 92px;
  133. border: 1px solid #eeeeee;
  134. box-sizing: border-box;
  135. position: relative;
  136. overflow: hidden;
  137. img {
  138. max-width: 90px;
  139. max-height: 90px;
  140. // position: absolute;
  141. // top: 50%;
  142. // left: 50%;
  143. // -webkit-transform: translate(-50%, -50%);
  144. // -moz-transform: translate(-50%, -50%);
  145. // -ms-transform: translate(-50%, -50%);
  146. // -o-transform: translate(-50%, -50%);
  147. // transform: translate(-50%, -50%);
  148. }
  149. }
  150. }
  151. .center {
  152. padding: 8px 0;
  153. border-top: 1px dashed #eeeeee;
  154. border-bottom: 1px dashed #eeeeee;
  155. p {
  156. line-height: 1.5;
  157. display: flex;
  158. align-items: center;
  159. word-break: break-all;
  160. a,
  161. i {
  162. color: $colorMain;
  163. cursor: auto;
  164. }
  165. .kefu {
  166. i {
  167. cursor: pointer !important;
  168. }
  169. .iconfont {
  170. font-family: "iconfont" !important;
  171. font-size: 16px;
  172. font-style: normal;
  173. -webkit-font-smoothing: antialiased;
  174. -moz-osx-font-smoothing: grayscale;
  175. }
  176. }
  177. }
  178. }
  179. .bottom {
  180. padding-top: 13px;
  181. .go_store_btn {
  182. display: inline-block;
  183. width: 78px;
  184. height: 28px;
  185. text-align: center;
  186. line-height: 26px;
  187. border: 1px solid #dddddd;
  188. margin-right: 30px;
  189. padding: 0;
  190. font-size: 12px;
  191. color: #666;
  192. border-radius: 0;
  193. cursor: pointer;
  194. }
  195. }
  196. }
  197. }
  198. }
  199. .search_wrap {
  200. width: calc(100% - (585px + 60px));
  201. float: left;
  202. padding-top: 4px;
  203. margin-top: 30px;
  204. margin: 30px 30px 0;
  205. position: relative;
  206. form {
  207. border: 2px solid $colorMain;
  208. width: calc(100% - 103px);
  209. .text {
  210. width: calc(100% - 103px);
  211. -webkit-appearance: none;
  212. -webkit-border-radius: 0;
  213. height: 34px;
  214. padding: 5px 5px 5px 10px;
  215. background-position: 0 -360px;
  216. background-color: #fff;
  217. background-repeat: repeat-x;
  218. line-height: 20px;
  219. font-family: arial, "\5b8b\4f53";
  220. font-size: 12px;
  221. outline: none;
  222. border: none;
  223. }
  224. }
  225. input {
  226. margin: 0;
  227. padding: 0;
  228. height: 34px;
  229. border: 0;
  230. }
  231. .button {
  232. width: 103px;
  233. background: $colorMain;
  234. font-size: 16px;
  235. font-weight: 600;
  236. color: #fff;
  237. float: right;
  238. cursor: pointer;
  239. &.fl {
  240. height: 37px;
  241. }
  242. }
  243. .search_association {
  244. background: #fff;
  245. position: absolute;
  246. top: 43px;
  247. overflow: hidden;
  248. position: absolute;
  249. left: 0;
  250. width: 443px;
  251. border: 1px solid #ccc;
  252. background: #fff;
  253. z-index: 99;
  254. .s_a_item {
  255. display: flex;
  256. justify-content: space-between;
  257. overflow: hidden;
  258. padding: 1px 5px;
  259. line-height: 24px;
  260. cursor: pointer;
  261. font-size: 12px;
  262. -webkit-font-smoothing: antialiased;
  263. color: #666;
  264. div:first-child {
  265. width: 230px;
  266. white-space: nowrap;
  267. text-overflow: ellipsis;
  268. overflow: hidden;
  269. }
  270. div:last-child {
  271. overflow: hidden;
  272. color: #aaa;
  273. }
  274. &:hover {
  275. background-color: rgb(255, 233, 188);
  276. }
  277. }
  278. }
  279. }
  280. }
  281. .sld_store_label_nav_wrap {
  282. .sld_store_label_wrap {
  283. width: 100%;
  284. height: auto;
  285. padding: 0;
  286. position: relative;
  287. box-sizing: border-box;
  288. line-height: 0;
  289. height: 104px;
  290. img {
  291. position: relative;
  292. max-width: 100%;
  293. height: 104px;
  294. margin: 0 auto;
  295. display: block;
  296. }
  297. }
  298. .logo_banner_left{
  299. height: 0;
  300. z-index: 1;
  301. img{
  302. position: absolute;
  303. left: 0;
  304. max-height: 84px;
  305. top: -94px;
  306. }
  307. }
  308. .sld_store_nav {
  309. width: 100%;
  310. height: 38px;
  311. line-height: 38px;
  312. background-color: #080808;
  313. .sld_all_store_cat {
  314. &:hover {
  315. .sld_store_first_cat {
  316. display: block !important;
  317. }
  318. }
  319. }
  320. .sld_store_first_cat {
  321. position: absolute;
  322. top: 38px;
  323. left: 0;
  324. width: 200px;
  325. font-size: 15px;
  326. background-color: #ffffff;
  327. z-index: 119;
  328. display: none;
  329. li {
  330. position: relative;
  331. width: 100%;
  332. height: 40px;
  333. line-height: 40px;
  334. box-sizing: border-box;
  335. border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  336. &:last-child {
  337. border-bottom: none;
  338. }
  339. a {
  340. display: block;
  341. width: 100%;
  342. color: #333333;
  343. text-align: left;
  344. white-space: nowrap;
  345. text-overflow: ellipsis;
  346. overflow: hidden;
  347. span{
  348. text-overflow: ellipsis;
  349. white-space: nowrap;
  350. overflow: hidden;
  351. width: 85%;
  352. float: left;
  353. }
  354. }
  355. i {
  356. font-size: 14px !important;
  357. -webkit-transform: rotate(-90deg);
  358. -moz-transform: rotate(-90deg);
  359. -ms-transform: rotate(-90deg);
  360. -o-transform: rotate(-90deg);
  361. transform: rotate(-90deg);
  362. color: #666666;
  363. }
  364. }
  365. .sld_store_second_cat {
  366. display: none;
  367. position: absolute;
  368. top: 0px;
  369. left: 199px;
  370. width: 180px;
  371. }
  372. }
  373. .sld_store_first_cat > li {
  374. padding: 0 13px 0 17px;
  375. }
  376. .sld_store_first_cat > li:hover > .sld_store_second_cat {
  377. display: block !important;
  378. }
  379. .sld_store_second_cat > li {
  380. width: 200px;
  381. background-color: #ffffff;
  382. box-sizing: border-box;
  383. padding-left: 10px;
  384. }
  385. li {
  386. float: left;
  387. padding: 0 20px;
  388. text-align: center;
  389. height: 38px;
  390. &.sld_all_store_cat {
  391. position: relative;
  392. width: 200px;
  393. background-color: #ffffff;
  394. color: #333333;
  395. font-size: 14px;
  396. padding: 0;
  397. cursor: pointer;
  398. i {
  399. margin-left: 6px;
  400. font-size: 24px;
  401. vertical-align: bottom;
  402. }
  403. }
  404. a {
  405. font-size: 14px;
  406. color: #fff;
  407. }
  408. }
  409. ul {
  410. width: 1210px;
  411. margin: 0 auto;
  412. position: relative;
  413. }
  414. .sld_store_cat_horizontal {
  415. position: absolute;
  416. left: 200px;
  417. width: 735px;
  418. height: 38px;
  419. overflow: hidden;
  420. }
  421. }
  422. }
  423. .sld_cart_wrap {
  424. float: right;
  425. position: relative;
  426. z-index: 99;
  427. width: 200px;
  428. height: 40px;
  429. margin-top: 34px;
  430. text-align: right;
  431. dl {
  432. margin-bottom: 0px;
  433. .cart_goods_num {
  434. font: 11px/16px Verdana;
  435. color: #fff;
  436. background: $colorMain;
  437. text-align: center;
  438. display: inline-block;
  439. height: 16px;
  440. min-width: 16px;
  441. border: none 0;
  442. border-radius: 8px;
  443. margin-left: 10px;
  444. }
  445. dt {
  446. position: absolute;
  447. z-index: 3;
  448. height: 38px;
  449. background-color: #fff;
  450. cursor: pointer;
  451. font-weight: 400;
  452. .iconfont {
  453. margin: 0 8px 0 12px;
  454. color: $colorMain;
  455. font-weight: 600;
  456. vertical-align: bottom;
  457. font-family: "iconfont" !important;
  458. font-size: 17px;
  459. font-style: normal;
  460. -webkit-font-smoothing: antialiased;
  461. -moz-osx-font-smoothing: grayscale;
  462. line-height: 36px;
  463. img{
  464. width: 16px;
  465. position: relative;
  466. top: 2px;
  467. }
  468. }
  469. &.cart_icon_text_wrap {
  470. a {
  471. color: $colorMain;
  472. font-size: 14px;
  473. line-height: 36px;
  474. }
  475. }
  476. }
  477. dd {
  478. .cart_goods {
  479. dl {
  480. padding-top: 8px;
  481. }
  482. dd {
  483. &.cart_goods_price {
  484. position: static;
  485. em {
  486. margin-right: 6px;
  487. width: auto;
  488. color: #666;
  489. &:nth-child(1) {
  490. display: block;
  491. font-weight: 600;
  492. }
  493. &:nth-child(2) {
  494. display: block;
  495. text-align: right;
  496. margin-top: 6px;
  497. }
  498. }
  499. }
  500. }
  501. }
  502. }
  503. }
  504. dd {
  505. position: absolute;
  506. top: 37px;
  507. right: 0;
  508. width: 355px;
  509. border: 1px solid #e3e3e3;
  510. background: #fff;
  511. z-index: 1;
  512. }
  513. &:hover {
  514. .cart_more_view {
  515. display: inline-block;
  516. }
  517. }
  518. .cart_more_view {
  519. display: none;
  520. .empty_cart {
  521. width: 100%;
  522. position: relative;
  523. .empty_cart_line {
  524. position: absolute;
  525. width: 163px;
  526. right: 0;
  527. height: 2px;
  528. top: -2px;
  529. z-index: 999;
  530. background: #fff;
  531. }
  532. .empty_cart_txt {
  533. padding: 10px;
  534. color: #999;
  535. }
  536. }
  537. }
  538. }
  539. .ld {
  540. position: relative;
  541. zoom: 1;
  542. }
  543. .fl {
  544. float: left;
  545. }
  546. .fr {
  547. float: right;
  548. }
  549. .clearfix {
  550. display: block;
  551. zoom: 1;
  552. &:before {
  553. display: table;
  554. content: " ";
  555. }
  556. &:after {
  557. content: ".";
  558. display: block;
  559. height: 0;
  560. clear: both;
  561. visibility: hidden;
  562. }
  563. }
  564. .search_line {
  565. width: 1px;
  566. height: 20px;
  567. border: 1px solid #ffffff;
  568. opacity: 0.5;
  569. position: absolute;
  570. right: 300px;
  571. top: 8px;
  572. }
  573. .search_modle {
  574. width: 282px;
  575. position: absolute;
  576. right: 0;
  577. height: 38px;
  578. .search_input {
  579. width: 100%;
  580. height: 20px;
  581. background: #ffffff;
  582. border-radius: 2px 0 0 2px;
  583. display: block;
  584. border: none;
  585. border: 1px solid #fff;
  586. padding-left: 5px;
  587. }
  588. .search_input_button {
  589. display: block;
  590. width: 72px;
  591. height: 20px;
  592. background: $colorMain;
  593. border-radius: 0 2px 2px 0;
  594. font-size: 12px;
  595. //font-family: Microsoft YaHei;
  596. font-weight: 400;
  597. color: #ffffff;
  598. line-height: 20px;
  599. text-align: center;
  600. cursor: pointer;
  601. }
  602. }
  603. }