mobileCommon.scss 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707
  1. $base-color: #3f84f6;
  2. html {
  3. overflow-y: scroll;
  4. -webkit-text-size-adjust: 100%;
  5. -ms-text-size-adjust: 100%;
  6. font-size: 75px;
  7. }
  8. @media screen and (max-width: 750px){
  9. html{
  10. font-size: calc(100vw / 750 * 100);
  11. height: 100%;
  12. }
  13. ::-webkit-scrollbar {
  14. opacity: 0;
  15. display: none;
  16. }
  17. html * {
  18. outline:none;
  19. -webkit-text-size-adjust: none;
  20. -webkit-tap-highlight-color:rgba(0,0,0,0);
  21. -webkit-overflow-scrolling: touch;
  22. }
  23. /* 内外边距通常让各个浏览器样式的表现位置不同 */
  24. body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fieldset, legend, input, textarea, p, blockquote, th, td, hr, button, article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  25. margin: 0;
  26. padding: 0;
  27. }
  28. input, select, textarea {
  29. font-size: 100%;
  30. }
  31. /* 去掉各 Table cell 的边距并让其边重合 */
  32. table {
  33. border-collapse: collapse;
  34. border-spacing: 0;
  35. }
  36. /* 去除默认边框 */
  37. fieldset, img {
  38. border: 0;
  39. }
  40. /* 去掉 firefox 下此元素的边框 */
  41. abbr, acronym {
  42. border: 0;
  43. font-variant: normal;
  44. }
  45. /* 一致的 del 样式 */
  46. del {
  47. text-decoration: line-through;
  48. }
  49. address, caption, cite, code, dfn, em, th, var {
  50. font-style: normal;
  51. font-weight: 500;
  52. }
  53. /* 去掉列表前的标识, li 会继承 */
  54. ol, ul {
  55. list-style: none;
  56. }
  57. /* 对齐是排版最重要的因素, 别让什么都居中 */
  58. caption, th {
  59. text-align: left;
  60. }
  61. q:before, q:after {
  62. content: '';
  63. }
  64. /* 统一上标和下标 */
  65. sub, sup {
  66. font-size: 75%;
  67. line-height: 0;
  68. position: relative;
  69. vertical-align: baseline;
  70. }
  71. sup {
  72. top: -0.5em;
  73. }
  74. sub {
  75. bottom: -0.25em;
  76. }
  77. /* 正常链接 未访问 */
  78. a:link {
  79. }
  80. /* 鼠标悬停 */
  81. a:hover {
  82. text-decoration: underline;
  83. }
  84. button {
  85. -webkit-appearance: none;
  86. -moz-appearance: none;
  87. appearance: none;
  88. outline: none;
  89. border: none;
  90. -webkit-box-shadow: none;
  91. -moz-box-shadow: none;
  92. box-shadow: none;
  93. }
  94. /* 默认不显示下划线,保持页面简洁 */
  95. ins, a {
  96. text-decoration: none;
  97. }
  98. .link-url {
  99. color: #01a44e;
  100. }
  101. input[type="text"],
  102. input[type="number"],
  103. input[type="tel"]{
  104. -webkit-appearance: none;
  105. -moz-appearance: none;
  106. appearance: none;
  107. outline: none;
  108. -webkit-box-shadow: none;
  109. -moz-box-shadow: none;
  110. box-shadow: none;
  111. border: none;
  112. }
  113. input::-webkit-input-placeholder{
  114. color:#999;
  115. }
  116. input::-moz-placeholder{ /* Mozilla Firefox 19+ */
  117. color:#999;
  118. }
  119. input:-moz-placeholder{ /* Mozilla Firefox 4 to 18 */
  120. color:#999;
  121. }
  122. input:-ms-input-placeholder{ /* Internet Explorer 10-11 */
  123. color:#999;
  124. }
  125. /*search*/
  126. .search-content {
  127. padding-top: .15rem;
  128. input {
  129. width: 6.48rem;
  130. height: .58rem;
  131. line-height: .58rem;
  132. border-radius: .14rem;
  133. margin: 0 0 0 .11rem;
  134. font-size: .26rem;
  135. padding: 0 .71rem 0 .21rem;
  136. }
  137. span {
  138. display: inline-block;
  139. height: .56rem;
  140. line-height: .58rem;
  141. position: relative;
  142. top: 0;
  143. width: .68rem;
  144. color: #376ff3;
  145. border-left: .02rem solid #376ff3;
  146. margin-left: -.68rem;
  147. text-align: center;
  148. i {
  149. font-size: .31rem;
  150. }
  151. }
  152. img {
  153. width: .44rem;
  154. height: .44rem;
  155. float: right;
  156. margin-right: .2rem;
  157. margin-top: .1rem;
  158. }
  159. }
  160. }
  161. .say-price-btn {
  162. display: block;
  163. width: 6.7rem;
  164. height: .74rem;
  165. line-height: .74rem;
  166. text-align: center;
  167. color: #fff !important;
  168. background: #3f84f6;
  169. border-radius: .08rem;
  170. font-size: .32rem;
  171. margin: 0 auto;
  172. }
  173. /*报价info*/
  174. .base-info {
  175. //width: 7.17rem;
  176. margin: 0 auto .18rem;
  177. background: #fff;
  178. padding: 0.1rem .29rem;
  179. .content-line {
  180. height: .46rem;
  181. line-height: .46rem;
  182. font-size: .28rem;
  183. overflow: hidden;
  184. text-overflow: ellipsis;
  185. white-space: nowrap;
  186. span {
  187. color: #666;
  188. }
  189. }
  190. }
  191. /*登录弹窗*/
  192. .mobile-modal {
  193. position: fixed;
  194. top: 0;
  195. bottom: 0;
  196. left: 0;
  197. right: 0;
  198. z-index: 999;
  199. background: rgba(0,0,0,.4);
  200. .mobile-modal-box {
  201. position: absolute;
  202. /*width: 5.92rem;*/
  203. font-size: .28rem;
  204. top: 27%;
  205. left: 11%;
  206. right: 11%;
  207. z-index: 1000;
  208. .mobile-modal-header {
  209. line-height: .96rem;
  210. background: rgb(65,141,246);
  211. color: #fff;
  212. text-align: center;
  213. font-size: .32rem;
  214. position: relative;
  215. border-top-left-radius: .07rem;
  216. border-top-right-radius: .07em;
  217. i {
  218. position: absolute;
  219. right: -.25rem;
  220. font-size: .6rem;
  221. bottom: .46rem;
  222. }
  223. }
  224. .mobile-modal-content {
  225. background: #fff;
  226. color: #333;
  227. padding: 0 .54rem;
  228. border-bottom-left-radius: .07rem;
  229. border-bottom-right-radius: .07rem;
  230. div {
  231. padding: .2rem 0;
  232. line-height: .4rem;
  233. border-bottom: .04rem solid rgb(183,213,254);
  234. text-align: center;
  235. &:last-child {
  236. border-bottom: none;
  237. }
  238. /*&:first-child {
  239. text-align: left;
  240. }*/
  241. }
  242. }
  243. &.mobile-link-en {
  244. top: 50%;
  245. margin-top: -2.14rem;
  246. }
  247. }
  248. .mobile-share-box {
  249. position: fixed;
  250. width: 100%;
  251. font-size: .28rem;
  252. bottom: 0;
  253. left: 0;
  254. z-index: 1000;
  255. background: #fff;
  256. color: #333;
  257. .cancel-share {
  258. height: .98rem;
  259. line-height: .98rem;
  260. font-size: .3rem;
  261. text-align: center;
  262. border-top: .04rem solid #cdcecf;
  263. }
  264. .share-area {
  265. .share-item {
  266. display: inline-block;
  267. width: 1.5rem;
  268. height: 1.52rem;
  269. padding-top: .3rem;
  270. i {
  271. margin: 0 auto;
  272. display: block;
  273. font-size: .55rem;
  274. width: .54rem;
  275. }
  276. span {
  277. display: block;
  278. text-align: center;
  279. margin-top: .1rem;
  280. }
  281. }
  282. }
  283. }
  284. }
  285. //.link-url {
  286. // color: #01a44e;
  287. //}
  288. //::-webkit-scrollbar {
  289. // opacity: 0;
  290. // display: none;
  291. //}
  292. //
  293. //input {
  294. // -webkit-appearance: none;
  295. // -moz-appearance: none;
  296. // appearance: none;
  297. // outline: none;
  298. // -webkit-box-shadow: none;
  299. // -moz-box-shadow: none;
  300. // box-shadow: none;
  301. // border: none;
  302. //}
  303. /*loading优先级*/
  304. .loading {
  305. z-index: 100000 !important;
  306. }
  307. .mobile-content {
  308. padding-top: .88rem !important;
  309. margin-bottom: 1rem;
  310. }
  311. .mobile-content-long {
  312. padding-top: 1.26rem !important;
  313. }
  314. /*求购title*/
  315. .seek-title {
  316. height: .96rem;
  317. line-height: .96rem;
  318. text-align: center;
  319. position: relative;
  320. border-bottom: .02rem solid rgb(219, 219, 219);
  321. background: #fff;
  322. > img {
  323. width: .36rem;
  324. height: .38rem;
  325. margin-right: .16rem;
  326. vertical-align: middle;
  327. margin-bottom: .16rem;
  328. }
  329. > span {
  330. font-size: .35rem;
  331. color: #666;
  332. }
  333. > a {
  334. position: absolute;
  335. right: .1rem;
  336. top: 0;
  337. font-size: .24rem;
  338. color: #999;
  339. margin-right: .1rem;
  340. img {
  341. width: .25rem;
  342. height: .25rem;
  343. margin-bottom: .04rem;
  344. }
  345. }
  346. }
  347. /*空状态*/
  348. .com-none-state{
  349. text-align: center;
  350. padding: 1.5rem .5rem .5rem .5rem;
  351. background: #fff;
  352. margin-top:.1rem;
  353. width:100%;
  354. word-break: break-all;
  355. img{
  356. margin:0 auto;
  357. width: 4.08rem;
  358. height: 2.62rem;
  359. }
  360. p {
  361. font-size: .32rem;
  362. color: #999;
  363. margin-top: .3rem;
  364. }
  365. a {
  366. display: block;
  367. font-size: .28rem;
  368. color: #fff;
  369. width: 1.88rem;
  370. height: .54rem;
  371. line-height: .54rem;
  372. background: #418bf6;
  373. margin: .7rem auto 0;
  374. border-radius: .05rem;
  375. }
  376. }
  377. // 头部
  378. .com-mobile-header {
  379. position: fixed;
  380. top: 0;
  381. z-index: 10;
  382. width:100%;
  383. height:.88rem;
  384. line-height: .88rem;
  385. background: #3e82f5;
  386. padding:0 .2rem 0 .1rem;
  387. color:#fff;
  388. > a {
  389. font-size:.28rem;
  390. color:#fff;
  391. position: absolute;
  392. i {
  393. font-size: .48rem;
  394. margin-right: -.1rem;
  395. }
  396. }
  397. p{
  398. overflow: hidden;
  399. text-overflow: ellipsis;
  400. white-space: nowrap;
  401. font-size:.36rem;
  402. text-align: center;
  403. margin: 0;
  404. width: 6rem;
  405. padding-left: 1rem;
  406. span {
  407. position: absolute;
  408. right: .4rem;
  409. font-size: .28rem;
  410. i {
  411. font-size: .28rem;
  412. }
  413. }
  414. }
  415. }
  416. .mobile-fix-content {
  417. position: fixed !important;
  418. top: .88rem;
  419. bottom: .98rem;
  420. width: 100%;
  421. background: #f1f3f6;
  422. overflow-y: auto;
  423. }
  424. .overflow-hidden {
  425. overflow: hidden !important;
  426. }
  427. /* 公共导航切换 */
  428. .com-switch-item {
  429. text-align: center;
  430. background: #fff;
  431. .mobile-switch-btn {
  432. background: #fff;
  433. color: #666;
  434. display: inline-block;
  435. height: .64rem;
  436. font-size: .34rem;
  437. line-height: .64rem;
  438. width: 1.4rem;
  439. &:first-child {
  440. margin-right: 1.78rem;
  441. }
  442. &.active {
  443. color: #3f84f6;
  444. border-bottom: .04rem solid #3f84f6;
  445. }
  446. }
  447. }
  448. .mobile-center-header {
  449. height: 1.26rem;
  450. line-height: 1.26rem;
  451. p {
  452. line-height: normal;
  453. margin-top: .13rem;
  454. &.en-name {
  455. font-size: .3rem;
  456. margin-top: .06rem;
  457. img {
  458. height: .25rem;
  459. margin-top: -.06rem;
  460. margin-right: .05rem;
  461. }
  462. }
  463. }
  464. }
  465. .mobile-centerfix-content {
  466. top: 1.26rem;
  467. }
  468. $border-color: 1px solid #c5c5c5;
  469. table.com-price-list {
  470. table-layout: fixed;
  471. width: 3rem;
  472. margin: .19rem 0 .21rem .11rem;
  473. border: $border-color;
  474. font-size: .28rem;
  475. &.com-price-listLong {
  476. width: 5rem;
  477. }
  478. thead {
  479. tr th {
  480. background: #f3f3f3;
  481. border-bottom: $border-color;
  482. }
  483. }
  484. th, td {
  485. border-right: $border-color;
  486. text-align: center;
  487. height: .44rem;
  488. padding: 0 .1rem;
  489. &:last-child {
  490. border-right: none;
  491. }
  492. &.date {
  493. color: #e6353d;
  494. }
  495. }
  496. }
  497. /* 报价方式切换 */
  498. .mobile-switch-say {
  499. text-align: center;
  500. font-size: 0;
  501. background: #fff;
  502. margin-bottom: .35rem;
  503. -webkit-box-shadow: 0 2px 4px #ccc;
  504. -moz-box-shadow: 0 2px 4px #ccc;
  505. box-shadow: 0 2px 4px #ccc;
  506. li {
  507. width: 50%;
  508. height: .72rem;
  509. line-height: .72rem;
  510. color: #666;
  511. font-size: .28rem;
  512. text-align: center;
  513. position: relative;
  514. &.active {
  515. color: #3f84f6;
  516. &::after {
  517. content: '';
  518. position: absolute;
  519. width: 1.2rem;
  520. height: .07rem;
  521. background: #3f84f6;
  522. left: 50%;
  523. margin-left: -.6rem;
  524. top: .65rem;
  525. }
  526. }
  527. }
  528. }
  529. // 联系卖家
  530. .com-mobile-link {
  531. float: right;
  532. font-size: .26rem;
  533. color: #3f84f6;
  534. margin-right: .12rem;
  535. width: 1.5rem;
  536. height: .56rem;
  537. text-align: center;
  538. line-height: .5rem;
  539. border: 1px solid #3f84f6;
  540. margin-top: .16rem;
  541. border-radius: .04rem;
  542. i {
  543. margin-right: .02rem;
  544. position: relative;
  545. top: .04rem;
  546. font-size: .34rem;
  547. }
  548. &:hover, &:active {
  549. color: #3f84f6;
  550. }
  551. }
  552. .mobile-cart-check {
  553. min-width: .36rem;
  554. height: .36rem;
  555. background: url('/images/mobile/center/user/car-noChecked.png') no-repeat;
  556. background-size: contain;
  557. &.active {
  558. background-image: url('/images/mobile/center/user/car-checked.png');
  559. }
  560. vertical-align: middle;
  561. margin-bottom: .02rem;
  562. input {
  563. display: none;
  564. }
  565. span {
  566. font-size: .26rem;
  567. position: static;
  568. line-height: normal;
  569. margin-left: .5rem;
  570. vertical-align: top;
  571. font-weight: normal;
  572. }
  573. }
  574. .bottom-modal-check {
  575. &.active {
  576. background-image: url('/images/mobile/center/user/bottom-checked.png');
  577. }
  578. span {
  579. font-size: .32rem;
  580. }
  581. }
  582. .mobile-hover-pager {
  583. position: fixed;
  584. top: 1.26rem;
  585. width: 100%;
  586. bottom: 0;
  587. background: rgb(255, 255, 255);
  588. }
  589. // 头部切换
  590. .com-switch-head {
  591. height: .82rem;
  592. line-height: .82rem;
  593. text-align: center;
  594. background: #fff;
  595. .com-switch-item {
  596. font-size: .28rem;
  597. &:first-child {
  598. margin-right: 1.24rem;
  599. }
  600. &.active {
  601. color: #3f84f6;
  602. border-bottom: 1px solid #3f84f6;
  603. }
  604. }
  605. }
  606. .com-select-wrap {
  607. position: relative;
  608. width: 1.25rem;
  609. height: .5rem;
  610. line-height: .5rem;
  611. font-size: .28rem;
  612. color: #666;
  613. border: 1px solid #bfbfbf;
  614. border-radius: .04rem;
  615. margin: 0 auto;
  616. text-align: left;
  617. padding: 0 .23rem;
  618. background: url('/images/mobile/select-arrow.png')no-repeat;
  619. background-size: .12rem .06rem;
  620. background-position: .94rem .2rem;
  621. .select-list {
  622. position: absolute;
  623. left: -.02rem;
  624. top: .48rem;
  625. border: 1px solid #bfbfbf;
  626. width: 1.25rem;
  627. -webkit-box-shadow: 0 1px 5px 0 #aaa;
  628. -moz-box-shadow: 0 1px 5px 0 #aaa;
  629. box-shadow: 0 1px 5px 0 #aaa;
  630. border-radius: .04rem;
  631. li {
  632. background: #fff;
  633. text-align: left;
  634. padding: 0 .2rem;
  635. font-size: .28rem;
  636. height: .73rem;
  637. line-height: .73rem;
  638. &:active, &:focus {
  639. background: $base-color;
  640. color: #fff;
  641. }
  642. }
  643. }
  644. }
  645. .com-btn-wrap {
  646. text-align: center;
  647. button {
  648. width: 6.59rem;
  649. height: .77rem;
  650. line-height: .77rem;
  651. text-align: center;
  652. background: #3f84f6;
  653. border: 1px solid #3f84f6;
  654. border-radius: .08rem;
  655. color: #fff;
  656. font-size: .32rem;
  657. i {
  658. font-size: .3rem;
  659. margin-right: .08rem;
  660. }
  661. }
  662. }