mobileCommon.scss 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675
  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. /*search*/
  114. .search-content {
  115. padding-top: .15rem;
  116. input {
  117. width: 6.48rem;
  118. height: .58rem;
  119. line-height: .58rem;
  120. border-radius: .14rem;
  121. margin: 0 0 0 .11rem;
  122. font-size: .26rem;
  123. padding: 0 .71rem 0 .21rem;
  124. }
  125. span {
  126. display: inline-block;
  127. height: .58rem;
  128. line-height: .58rem;
  129. position: relative;
  130. top: .04rem;
  131. width: .68rem;
  132. color: #376ff3;
  133. border-left: .02rem solid #376ff3;
  134. margin-left: -.68rem;
  135. text-align: center;
  136. i {
  137. font-size: .31rem;
  138. }
  139. }
  140. img {
  141. width: .44rem;
  142. height: .44rem;
  143. float: right;
  144. margin-right: .2rem;
  145. margin-top: .1rem;
  146. }
  147. }
  148. }
  149. .say-price-btn {
  150. display: block;
  151. width: 6.7rem;
  152. height: .74rem;
  153. line-height: .74rem;
  154. text-align: center;
  155. color: #fff !important;
  156. background: #3f84f6;
  157. border-radius: .08rem;
  158. font-size: .32rem;
  159. margin: 0 auto;
  160. }
  161. /*报价info*/
  162. .base-info {
  163. //width: 7.17rem;
  164. margin: 0 auto .18rem;
  165. background: #fff;
  166. padding: 0.1rem .29rem;
  167. .content-line {
  168. height: .46rem;
  169. line-height: .46rem;
  170. font-size: .28rem;
  171. overflow: hidden;
  172. text-overflow: ellipsis;
  173. white-space: nowrap;
  174. span {
  175. color: #666;
  176. }
  177. }
  178. }
  179. /*登录弹窗*/
  180. .mobile-modal {
  181. position: fixed;
  182. top: 0;
  183. bottom: 0;
  184. left: 0;
  185. right: 0;
  186. z-index: 999;
  187. background: rgba(0,0,0,.4);
  188. .mobile-modal-box {
  189. position: absolute;
  190. /*width: 5.92rem;*/
  191. font-size: .28rem;
  192. top: 27%;
  193. left: 11%;
  194. right: 11%;
  195. z-index: 1000;
  196. .mobile-modal-header {
  197. line-height: .96rem;
  198. background: rgb(65,141,246);
  199. color: #fff;
  200. text-align: center;
  201. font-size: .32rem;
  202. position: relative;
  203. border-top-left-radius: .07rem;
  204. border-top-right-radius: .07em;
  205. i {
  206. position: absolute;
  207. right: -.25rem;
  208. font-size: .6rem;
  209. bottom: .46rem;
  210. }
  211. }
  212. .mobile-modal-content {
  213. background: #fff;
  214. color: #333;
  215. padding: 0 .54rem;
  216. border-bottom-left-radius: .07rem;
  217. border-bottom-right-radius: .07rem;
  218. div {
  219. padding: .2rem 0;
  220. line-height: .4rem;
  221. border-bottom: .04rem solid rgb(183,213,254);
  222. text-align: center;
  223. &:last-child {
  224. border-bottom: none;
  225. }
  226. /*&:first-child {
  227. text-align: left;
  228. }*/
  229. }
  230. }
  231. &.mobile-link-en {
  232. top: 50%;
  233. margin-top: -2.14rem;
  234. }
  235. }
  236. .mobile-share-box {
  237. position: fixed;
  238. width: 100%;
  239. font-size: .28rem;
  240. bottom: 0;
  241. left: 0;
  242. z-index: 1000;
  243. background: #fff;
  244. color: #333;
  245. .cancel-share {
  246. height: .98rem;
  247. line-height: .98rem;
  248. font-size: .3rem;
  249. text-align: center;
  250. border-top: .04rem solid #cdcecf;
  251. }
  252. .share-area {
  253. .share-item {
  254. display: inline-block;
  255. width: 1.5rem;
  256. height: 1.52rem;
  257. padding-top: .3rem;
  258. i {
  259. margin: 0 auto;
  260. display: block;
  261. font-size: .55rem;
  262. width: .54rem;
  263. }
  264. span {
  265. display: block;
  266. text-align: center;
  267. margin-top: .1rem;
  268. }
  269. }
  270. }
  271. }
  272. }
  273. //.link-url {
  274. // color: #01a44e;
  275. //}
  276. //::-webkit-scrollbar {
  277. // opacity: 0;
  278. // display: none;
  279. //}
  280. //
  281. //input {
  282. // -webkit-appearance: none;
  283. // -moz-appearance: none;
  284. // appearance: none;
  285. // outline: none;
  286. // -webkit-box-shadow: none;
  287. // -moz-box-shadow: none;
  288. // box-shadow: none;
  289. // border: none;
  290. //}
  291. /*loading优先级*/
  292. .loading {
  293. z-index: 100000 !important;
  294. }
  295. .mobile-content {
  296. padding-top: .88rem !important;
  297. margin-bottom: 1rem;
  298. }
  299. .mobile-content-long {
  300. padding-top: 1.26rem !important;
  301. }
  302. /*求购title*/
  303. .seek-title {
  304. height: .96rem;
  305. line-height: .96rem;
  306. text-align: center;
  307. position: relative;
  308. border-bottom: .02rem solid rgb(219, 219, 219);
  309. background: #fff;
  310. > img {
  311. width: .36rem;
  312. height: .38rem;
  313. margin-right: .16rem;
  314. vertical-align: middle;
  315. margin-bottom: .16rem;
  316. }
  317. > span {
  318. font-size: .35rem;
  319. color: #666;
  320. }
  321. > a {
  322. position: absolute;
  323. right: .1rem;
  324. top: 0;
  325. font-size: .24rem;
  326. color: #999;
  327. margin-right: .1rem;
  328. img {
  329. width: .25rem;
  330. height: .25rem;
  331. margin-bottom: .04rem;
  332. }
  333. }
  334. }
  335. /*空状态*/
  336. .com-none-state{
  337. text-align: center;
  338. padding: 1.5rem .5rem .5rem .5rem;
  339. background: #fff;
  340. margin-top:.1rem;
  341. width:100%;
  342. word-break: break-all;
  343. img{
  344. margin:0 auto;
  345. width: 4.08rem;
  346. height: 2.62rem;
  347. }
  348. p {
  349. font-size: .32rem;
  350. color: #999;
  351. margin-top: .3rem;
  352. }
  353. a {
  354. display: block;
  355. font-size: .28rem;
  356. color: #fff;
  357. width: 1.88rem;
  358. height: .54rem;
  359. line-height: .54rem;
  360. background: #418bf6;
  361. margin: .7rem auto 0;
  362. border-radius: .05rem;
  363. }
  364. }
  365. // 头部
  366. .com-mobile-header {
  367. position: fixed;
  368. top: 0;
  369. z-index: 10;
  370. width:100%;
  371. height:.88rem;
  372. line-height: .88rem;
  373. background: #3e82f5;
  374. padding:0 .2rem 0 .1rem;
  375. color:#fff;
  376. > a {
  377. font-size:.28rem;
  378. color:#fff;
  379. position: absolute;
  380. i {
  381. font-size: .48rem;
  382. margin-right: -.1rem;
  383. }
  384. }
  385. p{
  386. overflow: hidden;
  387. text-overflow: ellipsis;
  388. white-space: nowrap;
  389. font-size:.36rem;
  390. text-align: center;
  391. margin: 0;
  392. width: 6rem;
  393. padding-left: 1rem;
  394. span {
  395. position: absolute;
  396. right: .4rem;
  397. font-size: .28rem;
  398. i {
  399. font-size: .28rem;
  400. }
  401. }
  402. }
  403. }
  404. .mobile-fix-content {
  405. position: fixed !important;
  406. top: .88rem;
  407. bottom: .98rem;
  408. width: 100%;
  409. background: #f1f3f6;
  410. overflow-y: auto;
  411. }
  412. .overflow-hidden {
  413. overflow: hidden !important;
  414. }
  415. /* 公共导航切换 */
  416. .com-switch-item {
  417. text-align: center;
  418. background: #fff;
  419. .mobile-switch-btn {
  420. background: #fff;
  421. color: #666;
  422. display: inline-block;
  423. height: .64rem;
  424. font-size: .34rem;
  425. line-height: .64rem;
  426. width: 1.4rem;
  427. &:first-child {
  428. margin-right: 1.78rem;
  429. }
  430. &.active {
  431. color: #3f84f6;
  432. border-bottom: .04rem solid #3f84f6;
  433. }
  434. }
  435. }
  436. .mobile-center-header {
  437. height: 1.26rem;
  438. line-height: 1.26rem;
  439. p {
  440. line-height: normal;
  441. margin-top: .13rem;
  442. &.en-name {
  443. font-size: .3rem;
  444. margin-top: .06rem;
  445. img {
  446. height: .25rem;
  447. margin-top: -.06rem;
  448. margin-right: .05rem;
  449. }
  450. }
  451. }
  452. }
  453. .mobile-centerfix-content {
  454. top: 1.26rem;
  455. }
  456. $border-color: 1px solid #c5c5c5;
  457. table.com-price-list {
  458. table-layout: fixed;
  459. width: 3rem;
  460. margin: .19rem 0 .21rem .11rem;
  461. border: $border-color;
  462. font-size: .28rem;
  463. &.com-price-listLong {
  464. width: 5rem;
  465. }
  466. thead {
  467. tr th {
  468. background: #f3f3f3;
  469. border-bottom: $border-color;
  470. }
  471. }
  472. th, td {
  473. border-right: $border-color;
  474. text-align: center;
  475. height: .44rem;
  476. padding: 0 .1rem;
  477. &:last-child {
  478. border-right: none;
  479. }
  480. &.date {
  481. color: #e6353d;
  482. }
  483. }
  484. }
  485. /* 报价方式切换 */
  486. .mobile-switch-say {
  487. text-align: center;
  488. font-size: 0;
  489. background: #fff;
  490. margin-bottom: .35rem;
  491. -webkit-box-shadow: 0 2px 4px #ccc;
  492. -moz-box-shadow: 0 2px 4px #ccc;
  493. box-shadow: 0 2px 4px #ccc;
  494. li {
  495. width: 50%;
  496. height: .72rem;
  497. line-height: .72rem;
  498. color: #666;
  499. font-size: .28rem;
  500. text-align: center;
  501. position: relative;
  502. &.active {
  503. color: #3f84f6;
  504. &::after {
  505. content: '';
  506. position: absolute;
  507. width: 1.2rem;
  508. height: .07rem;
  509. background: #3f84f6;
  510. left: 50%;
  511. margin-left: -.6rem;
  512. top: .65rem;
  513. }
  514. }
  515. }
  516. }
  517. // 联系卖家
  518. .com-mobile-link {
  519. float: right;
  520. font-size: .26rem;
  521. color: #3f84f6;
  522. margin-right: .12rem;
  523. width: 1.5rem;
  524. height: .56rem;
  525. text-align: center;
  526. line-height: .5rem;
  527. border: 1px solid #3f84f6;
  528. margin-top: .16rem;
  529. border-radius: .04rem;
  530. i {
  531. margin-right: .02rem;
  532. position: relative;
  533. top: .04rem;
  534. font-size: .34rem;
  535. }
  536. &:hover, &:active {
  537. color: #3f84f6;
  538. }
  539. }
  540. .mobile-cart-check {
  541. min-width: .36rem;
  542. height: .36rem;
  543. background: url('/images/mobile/center/user/car-noChecked.png') no-repeat;
  544. background-size: contain;
  545. &.active {
  546. background-image: url('/images/mobile/center/user/car-checked.png');
  547. }
  548. vertical-align: middle;
  549. margin-bottom: .02rem;
  550. input {
  551. display: none;
  552. }
  553. span {
  554. font-size: .26rem;
  555. position: static;
  556. line-height: normal;
  557. margin-left: .5rem;
  558. vertical-align: top;
  559. font-weight: normal;
  560. }
  561. }
  562. .bottom-modal-check {
  563. &.active {
  564. background-image: url('/images/mobile/center/user/bottom-checked.png');
  565. }
  566. span {
  567. font-size: .32rem;
  568. }
  569. }
  570. .mobile-hover-pager {
  571. position: fixed;
  572. top: 1.26rem;
  573. width: 100%;
  574. bottom: 0;
  575. background: rgb(255, 255, 255);
  576. }
  577. // 头部切换
  578. .com-switch-head {
  579. height: .82rem;
  580. line-height: .82rem;
  581. text-align: center;
  582. background: #fff;
  583. .com-switch-item {
  584. font-size: .28rem;
  585. &:first-child {
  586. margin-right: 1.24rem;
  587. }
  588. &.active {
  589. color: #3f84f6;
  590. border-bottom: 1px solid #3f84f6;
  591. }
  592. }
  593. }
  594. .com-select-wrap {
  595. position: relative;
  596. width: 1.25rem;
  597. height: .5rem;
  598. line-height: .5rem;
  599. font-size: .28rem;
  600. color: #666;
  601. border: 1px solid #bfbfbf;
  602. border-radius: .04rem;
  603. margin: 0 auto;
  604. text-align: left;
  605. padding: 0 .23rem;
  606. background: url('/images/mobile/select-arrow.png')no-repeat;
  607. background-size: .12rem .06rem;
  608. background-position: .94rem .2rem;
  609. .select-list {
  610. position: absolute;
  611. left: -.02rem;
  612. top: .48rem;
  613. border: 1px solid #bfbfbf;
  614. width: 1.25rem;
  615. -webkit-box-shadow: 0 1px 5px 0 #aaa;
  616. -moz-box-shadow: 0 1px 5px 0 #aaa;
  617. box-shadow: 0 1px 5px 0 #aaa;
  618. border-radius: .04rem;
  619. li {
  620. background: #fff;
  621. text-align: left;
  622. padding: 0 .2rem;
  623. font-size: .28rem;
  624. height: .53rem;
  625. line-height: .53rem;
  626. &:active, &:focus {
  627. background: $base-color;
  628. color: #fff;
  629. }
  630. }
  631. }
  632. }