mobileCommon.scss 11 KB

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