mobileCommon.scss 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  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. /* 默认不显示下划线,保持页面简洁 */
  84. ins, a {
  85. text-decoration: none;
  86. }
  87. .link-url {
  88. color: #01a44e;
  89. }
  90. input {
  91. -webkit-appearance: none;
  92. -moz-appearance: none;
  93. appearance: none;
  94. outline: none;
  95. -webkit-box-shadow: none;
  96. -moz-box-shadow: none;
  97. box-shadow: none;
  98. border: none;
  99. }
  100. /*search*/
  101. .search-content {
  102. padding-top: .15rem;
  103. input {
  104. width: 6.48rem;
  105. height: .58rem;
  106. line-height: .58rem;
  107. border-radius: .14rem;
  108. margin: 0 0 0 .11rem;
  109. font-size: .26rem;
  110. padding: 0 0 0 .21rem;
  111. }
  112. span {
  113. display: inline-block;
  114. height: .58rem;
  115. line-height: .58rem;
  116. position: relative;
  117. top: .04rem;
  118. width: .68rem;
  119. color: #376ff3;
  120. border-left: .02rem solid #376ff3;
  121. margin-left: -.68rem;
  122. text-align: center;
  123. i {
  124. font-size: .31rem;
  125. }
  126. }
  127. img {
  128. width: .44rem;
  129. height: .44rem;
  130. float: right;
  131. margin-right: .2rem;
  132. margin-top: .1rem;
  133. }
  134. }
  135. }
  136. .say-price-btn {
  137. display: block;
  138. width: 6.7rem;
  139. height: .74rem;
  140. line-height: .74rem;
  141. text-align: center;
  142. color: #fff !important;
  143. background: #3f84f6;
  144. border-radius: .08rem;
  145. font-size: .32rem;
  146. margin: 0 auto;
  147. }
  148. /*报价info*/
  149. .base-info {
  150. //width: 7.17rem;
  151. margin: 0 auto .18rem;
  152. background: #fff;
  153. padding: 0.1rem .29rem;
  154. .content-line {
  155. height: .46rem;
  156. line-height: .46rem;
  157. font-size: .28rem;
  158. overflow: hidden;
  159. text-overflow: ellipsis;
  160. white-space: nowrap;
  161. span {
  162. color: #666;
  163. }
  164. }
  165. }
  166. /*登录弹窗*/
  167. .mobile-modal {
  168. position: fixed;
  169. top: 0;
  170. bottom: 0;
  171. left: 0;
  172. right: 0;
  173. z-index: 999;
  174. background: rgba(0,0,0,.4);
  175. .mobile-modal-box {
  176. position: absolute;
  177. /*width: 5.92rem;*/
  178. font-size: .28rem;
  179. top: 27%;
  180. left: 11%;
  181. right: 11%;
  182. z-index: 1000;
  183. .mobile-modal-header {
  184. line-height: .96rem;
  185. background: rgb(65,141,246);
  186. color: #fff;
  187. text-align: center;
  188. font-size: .32rem;
  189. position: relative;
  190. border-top-left-radius: .07rem;
  191. border-top-right-radius: .07em;
  192. i {
  193. position: absolute;
  194. right: -.25rem;
  195. font-size: .6rem;
  196. bottom: .46rem;
  197. }
  198. }
  199. .mobile-modal-content {
  200. background: #fff;
  201. color: #333;
  202. padding: 0 .54rem;
  203. border-bottom-left-radius: .07rem;
  204. border-bottom-right-radius: .07rem;
  205. div {
  206. padding: .2rem 0;
  207. line-height: .4rem;
  208. border-bottom: .04rem solid rgb(183,213,254);
  209. text-align: center;
  210. &:last-child {
  211. border-bottom: none;
  212. }
  213. &:first-child {
  214. text-align: left;
  215. }
  216. }
  217. }
  218. }
  219. .mobile-share-box {
  220. position: fixed;
  221. width: 100%;
  222. font-size: .28rem;
  223. bottom: 0;
  224. left: 0;
  225. z-index: 1000;
  226. background: #fff;
  227. color: #333;
  228. .cancel-share {
  229. height: .98rem;
  230. line-height: .98rem;
  231. font-size: .3rem;
  232. text-align: center;
  233. border-top: .04rem solid #cdcecf;
  234. }
  235. .share-area {
  236. .share-item {
  237. display: inline-block;
  238. width: 1.5rem;
  239. height: 1.52rem;
  240. padding-top: .3rem;
  241. i {
  242. margin: 0 auto;
  243. display: block;
  244. font-size: .55rem;
  245. width: .54rem;
  246. }
  247. span {
  248. display: block;
  249. text-align: center;
  250. margin-top: .1rem;
  251. }
  252. }
  253. }
  254. }
  255. }
  256. //.link-url {
  257. // color: #01a44e;
  258. //}
  259. //::-webkit-scrollbar {
  260. // opacity: 0;
  261. // display: none;
  262. //}
  263. //
  264. //input {
  265. // -webkit-appearance: none;
  266. // -moz-appearance: none;
  267. // appearance: none;
  268. // outline: none;
  269. // -webkit-box-shadow: none;
  270. // -moz-box-shadow: none;
  271. // box-shadow: none;
  272. // border: none;
  273. //}
  274. /*loading优先级*/
  275. .loading {
  276. z-index: 100000 !important;
  277. }
  278. .mobile-content {
  279. padding-top: .88rem !important;
  280. margin-bottom: 1rem;
  281. }
  282. /*求购title*/
  283. .seek-title {
  284. height: .96rem;
  285. line-height: .96rem;
  286. text-align: center;
  287. position: relative;
  288. border-bottom: .02rem solid rgb(219, 219, 219);
  289. background: #fff;
  290. > img {
  291. width: .36rem;
  292. height: .38rem;
  293. margin-right: .16rem;
  294. vertical-align: middle;
  295. margin-bottom: .16rem;
  296. }
  297. > span {
  298. font-size: .35rem;
  299. color: #666;
  300. }
  301. > a {
  302. position: absolute;
  303. right: .1rem;
  304. top: 0;
  305. font-size: .24rem;
  306. color: #999;
  307. margin-right: .1rem;
  308. img {
  309. width: .25rem;
  310. height: .25rem;
  311. margin-bottom: .04rem;
  312. }
  313. }
  314. }
  315. /*空状态*/
  316. .com-none-state{
  317. text-align: center;
  318. padding: 1.5rem .5rem .5rem .5rem;
  319. background: #fff;
  320. margin-top:.1rem;
  321. width:100%;
  322. word-break: break-all;
  323. img{
  324. margin:0 auto;
  325. width: 4.08rem;
  326. height: 2.62rem;
  327. }
  328. p {
  329. font-size: .32rem;
  330. color: #999;
  331. margin-top: .3rem;
  332. }
  333. a {
  334. display: block;
  335. font-size: .28rem;
  336. color: #fff;
  337. width: 1.88rem;
  338. height: .54rem;
  339. line-height: .54rem;
  340. background: #418bf6;
  341. margin: .7rem auto 0;
  342. border-radius: .05rem;
  343. }
  344. }
  345. // 头部
  346. .com-mobile-header {
  347. position: fixed;
  348. top: 0;
  349. z-index: 10;
  350. width:100%;
  351. height:.88rem;
  352. line-height: .88rem;
  353. background: #3e82f5;
  354. padding:0 .2rem 0 .1rem;
  355. color:#fff;
  356. > a {
  357. font-size:.28rem;
  358. color:#fff;
  359. position: absolute;
  360. i {
  361. font-size: .48rem;
  362. margin-right: -.1rem;
  363. }
  364. }
  365. p{
  366. overflow: hidden;
  367. text-overflow: ellipsis;
  368. white-space: nowrap;
  369. font-size:.36rem;
  370. text-align: center;
  371. margin: 0;
  372. width: 6rem;
  373. padding-left: 1rem;
  374. span {
  375. position: absolute;
  376. right: .4rem;
  377. font-size: .28rem;
  378. i {
  379. font-size: .28rem;
  380. }
  381. }
  382. }
  383. }
  384. .mobile-fix-content {
  385. position: absolute;
  386. top: .88rem;
  387. bottom: .98rem;
  388. width: 100%;
  389. background: #f1f3f6;
  390. overflow-y: auto;
  391. }
  392. .overflow-hidden {
  393. overflow: hidden !important;
  394. }