mobileCommon.scss 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546
  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 {
  101. -webkit-appearance: none;
  102. -moz-appearance: none;
  103. appearance: none;
  104. outline: none;
  105. -webkit-box-shadow: none;
  106. -moz-box-shadow: none;
  107. box-shadow: none;
  108. border: none;
  109. }
  110. /*search*/
  111. .search-content {
  112. padding-top: .15rem;
  113. input {
  114. width: 6.48rem;
  115. height: .58rem;
  116. line-height: .58rem;
  117. border-radius: .14rem;
  118. margin: 0 0 0 .11rem;
  119. font-size: .26rem;
  120. padding: 0 .71rem 0 .21rem;
  121. }
  122. span {
  123. display: inline-block;
  124. height: .58rem;
  125. line-height: .58rem;
  126. position: relative;
  127. top: .04rem;
  128. width: .68rem;
  129. color: #376ff3;
  130. border-left: .02rem solid #376ff3;
  131. margin-left: -.68rem;
  132. text-align: center;
  133. i {
  134. font-size: .31rem;
  135. }
  136. }
  137. img {
  138. width: .44rem;
  139. height: .44rem;
  140. float: right;
  141. margin-right: .2rem;
  142. margin-top: .1rem;
  143. }
  144. }
  145. }
  146. .say-price-btn {
  147. display: block;
  148. width: 6.7rem;
  149. height: .74rem;
  150. line-height: .74rem;
  151. text-align: center;
  152. color: #fff !important;
  153. background: #3f84f6;
  154. border-radius: .08rem;
  155. font-size: .32rem;
  156. margin: 0 auto;
  157. }
  158. /*报价info*/
  159. .base-info {
  160. //width: 7.17rem;
  161. margin: 0 auto .18rem;
  162. background: #fff;
  163. padding: 0.1rem .29rem;
  164. .content-line {
  165. height: .46rem;
  166. line-height: .46rem;
  167. font-size: .28rem;
  168. overflow: hidden;
  169. text-overflow: ellipsis;
  170. white-space: nowrap;
  171. span {
  172. color: #666;
  173. }
  174. }
  175. }
  176. /*登录弹窗*/
  177. .mobile-modal {
  178. position: fixed;
  179. top: 0;
  180. bottom: 0;
  181. left: 0;
  182. right: 0;
  183. z-index: 999;
  184. background: rgba(0,0,0,.4);
  185. .mobile-modal-box {
  186. position: absolute;
  187. /*width: 5.92rem;*/
  188. font-size: .28rem;
  189. top: 27%;
  190. left: 11%;
  191. right: 11%;
  192. z-index: 1000;
  193. .mobile-modal-header {
  194. line-height: .96rem;
  195. background: rgb(65,141,246);
  196. color: #fff;
  197. text-align: center;
  198. font-size: .32rem;
  199. position: relative;
  200. border-top-left-radius: .07rem;
  201. border-top-right-radius: .07em;
  202. i {
  203. position: absolute;
  204. right: -.25rem;
  205. font-size: .6rem;
  206. bottom: .46rem;
  207. }
  208. }
  209. .mobile-modal-content {
  210. background: #fff;
  211. color: #333;
  212. padding: 0 .54rem;
  213. border-bottom-left-radius: .07rem;
  214. border-bottom-right-radius: .07rem;
  215. div {
  216. padding: .2rem 0;
  217. line-height: .4rem;
  218. border-bottom: .04rem solid rgb(183,213,254);
  219. text-align: center;
  220. &:last-child {
  221. border-bottom: none;
  222. }
  223. /*&:first-child {
  224. text-align: left;
  225. }*/
  226. }
  227. }
  228. &.mobile-link-en {
  229. top: 50%;
  230. margin-top: -1.34rem;
  231. }
  232. }
  233. .mobile-share-box {
  234. position: fixed;
  235. width: 100%;
  236. font-size: .28rem;
  237. bottom: 0;
  238. left: 0;
  239. z-index: 1000;
  240. background: #fff;
  241. color: #333;
  242. .cancel-share {
  243. height: .98rem;
  244. line-height: .98rem;
  245. font-size: .3rem;
  246. text-align: center;
  247. border-top: .04rem solid #cdcecf;
  248. }
  249. .share-area {
  250. .share-item {
  251. display: inline-block;
  252. width: 1.5rem;
  253. height: 1.52rem;
  254. padding-top: .3rem;
  255. i {
  256. margin: 0 auto;
  257. display: block;
  258. font-size: .55rem;
  259. width: .54rem;
  260. }
  261. span {
  262. display: block;
  263. text-align: center;
  264. margin-top: .1rem;
  265. }
  266. }
  267. }
  268. }
  269. }
  270. //.link-url {
  271. // color: #01a44e;
  272. //}
  273. //::-webkit-scrollbar {
  274. // opacity: 0;
  275. // display: none;
  276. //}
  277. //
  278. //input {
  279. // -webkit-appearance: none;
  280. // -moz-appearance: none;
  281. // appearance: none;
  282. // outline: none;
  283. // -webkit-box-shadow: none;
  284. // -moz-box-shadow: none;
  285. // box-shadow: none;
  286. // border: none;
  287. //}
  288. /*loading优先级*/
  289. .loading {
  290. z-index: 100000 !important;
  291. }
  292. .mobile-content {
  293. padding-top: .88rem !important;
  294. margin-bottom: 1rem;
  295. }
  296. /*求购title*/
  297. .seek-title {
  298. height: .96rem;
  299. line-height: .96rem;
  300. text-align: center;
  301. position: relative;
  302. border-bottom: .02rem solid rgb(219, 219, 219);
  303. background: #fff;
  304. > img {
  305. width: .36rem;
  306. height: .38rem;
  307. margin-right: .16rem;
  308. vertical-align: middle;
  309. margin-bottom: .16rem;
  310. }
  311. > span {
  312. font-size: .35rem;
  313. color: #666;
  314. }
  315. > a {
  316. position: absolute;
  317. right: .1rem;
  318. top: 0;
  319. font-size: .24rem;
  320. color: #999;
  321. margin-right: .1rem;
  322. img {
  323. width: .25rem;
  324. height: .25rem;
  325. margin-bottom: .04rem;
  326. }
  327. }
  328. }
  329. /*空状态*/
  330. .com-none-state{
  331. text-align: center;
  332. padding: 1.5rem .5rem .5rem .5rem;
  333. background: #fff;
  334. margin-top:.1rem;
  335. width:100%;
  336. word-break: break-all;
  337. img{
  338. margin:0 auto;
  339. width: 4.08rem;
  340. height: 2.62rem;
  341. }
  342. p {
  343. font-size: .32rem;
  344. color: #999;
  345. margin-top: .3rem;
  346. }
  347. a {
  348. display: block;
  349. font-size: .28rem;
  350. color: #fff;
  351. width: 1.88rem;
  352. height: .54rem;
  353. line-height: .54rem;
  354. background: #418bf6;
  355. margin: .7rem auto 0;
  356. border-radius: .05rem;
  357. }
  358. }
  359. // 头部
  360. .com-mobile-header {
  361. position: fixed;
  362. top: 0;
  363. z-index: 10;
  364. width:100%;
  365. height:.88rem;
  366. line-height: .88rem;
  367. background: #3e82f5;
  368. padding:0 .2rem 0 .1rem;
  369. color:#fff;
  370. > a {
  371. font-size:.28rem;
  372. color:#fff;
  373. position: absolute;
  374. i {
  375. font-size: .48rem;
  376. margin-right: -.1rem;
  377. }
  378. }
  379. p{
  380. overflow: hidden;
  381. text-overflow: ellipsis;
  382. white-space: nowrap;
  383. font-size:.36rem;
  384. text-align: center;
  385. margin: 0;
  386. width: 6rem;
  387. padding-left: 1rem;
  388. span {
  389. position: absolute;
  390. right: .4rem;
  391. font-size: .28rem;
  392. i {
  393. font-size: .28rem;
  394. }
  395. }
  396. }
  397. }
  398. .mobile-fix-content {
  399. position: fixed !important;
  400. top: .88rem;
  401. bottom: .98rem;
  402. width: 100%;
  403. background: #f1f3f6;
  404. overflow-y: auto;
  405. }
  406. .overflow-hidden {
  407. overflow: hidden !important;
  408. }
  409. /* 公共导航切换 */
  410. .com-switch-item {
  411. text-align: center;
  412. background: #fff;
  413. .mobile-switch-btn {
  414. background: #fff;
  415. color: #666;
  416. display: inline-block;
  417. height: .64rem;
  418. font-size: .34rem;
  419. line-height: .64rem;
  420. width: 1.4rem;
  421. &:first-child {
  422. margin-right: 1.78rem;
  423. }
  424. &.active {
  425. color: #3f84f6;
  426. border-bottom: .04rem solid #3f84f6;
  427. }
  428. }
  429. }
  430. .mobile-center-header {
  431. height: 1.26rem;
  432. line-height: 1.26rem;
  433. p {
  434. line-height: normal;
  435. margin-top: .13rem;
  436. &.en-name {
  437. font-size: .3rem;
  438. margin-top: .06rem;
  439. img {
  440. height: .25rem;
  441. margin-top: -.06rem;
  442. margin-right: .05rem;
  443. }
  444. }
  445. }
  446. }
  447. .mobile-centerfix-content {
  448. top: 1.26rem;
  449. }
  450. $border-color: 1px solid #c5c5c5;
  451. table.com-price-list {
  452. table-layout: fixed;
  453. width: 3rem;
  454. margin: .19rem 0 .21rem .11rem;
  455. border: $border-color;
  456. font-size: .28rem;
  457. &.com-price-listLong {
  458. width: 5rem;
  459. }
  460. thead {
  461. tr th {
  462. background: #f3f3f3;
  463. border-bottom: $border-color;
  464. }
  465. }
  466. th, td {
  467. border-right: $border-color;
  468. text-align: center;
  469. height: .44rem;
  470. padding: 0 .1rem;
  471. &:last-child {
  472. border-right: none;
  473. }
  474. &.date {
  475. color: #e6353d;
  476. }
  477. }
  478. }
  479. /* 报价方式切换 */
  480. .mobile-switch-say {
  481. text-align: center;
  482. font-size: 0;
  483. background: #fff;
  484. margin-bottom: .35rem;
  485. -webkit-box-shadow: 0 2px 4px #ccc;
  486. -moz-box-shadow: 0 2px 4px #ccc;
  487. box-shadow: 0 2px 4px #ccc;
  488. li {
  489. width: 50%;
  490. height: .72rem;
  491. line-height: .72rem;
  492. color: #666;
  493. font-size: .28rem;
  494. text-align: center;
  495. position: relative;
  496. &.active {
  497. color: #3f84f6;
  498. &::after {
  499. content: '';
  500. position: absolute;
  501. width: 1.2rem;
  502. height: .07rem;
  503. background: #3f84f6;
  504. left: 50%;
  505. margin-left: -.6rem;
  506. top: .65rem;
  507. }
  508. }
  509. }
  510. }