storeHeader.scss 15 KB

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