mobileCommon.scss 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316
  1. html {
  2. overflow-y: scroll;
  3. -webkit-text-size-adjust: 100%;
  4. -ms-text-size-adjust: 100%;
  5. }
  6. html * {
  7. outline:none;
  8. -webkit-text-size-adjust: none;
  9. -webkit-tap-highlight-color:rgba(0,0,0,0);
  10. -webkit-overflow-scrolling: touch;
  11. }
  12. /* 内外边距通常让各个浏览器样式的表现位置不同 */
  13. 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 {
  14. margin: 0;
  15. padding: 0;
  16. }
  17. /* 设置顶层fontSize */
  18. html {
  19. font-size: calc(100vw / 750 * 100) !important;
  20. }
  21. input, select, textarea {
  22. font-size: 100%;
  23. }
  24. /* 去掉各 Table cell 的边距并让其边重合 */
  25. table {
  26. border-collapse: collapse;
  27. border-spacing: 0;
  28. }
  29. /* 去除默认边框 */
  30. fieldset, img {
  31. border: 0;
  32. }
  33. /* 去掉 firefox 下此元素的边框 */
  34. abbr, acronym {
  35. border: 0;
  36. font-variant: normal;
  37. }
  38. /* 一致的 del 样式 */
  39. del {
  40. text-decoration: line-through;
  41. }
  42. address, caption, cite, code, dfn, em, th, var {
  43. font-style: normal;
  44. font-weight: 500;
  45. }
  46. /* 去掉列表前的标识, li 会继承 */
  47. ol, ul {
  48. list-style: none;
  49. }
  50. /* 对齐是排版最重要的因素, 别让什么都居中 */
  51. caption, th {
  52. text-align: left;
  53. }
  54. q:before, q:after {
  55. content: '';
  56. }
  57. /* 统一上标和下标 */
  58. sub, sup {
  59. font-size: 75%;
  60. line-height: 0;
  61. position: relative;
  62. vertical-align: baseline;
  63. }
  64. sup {
  65. top: -0.5em;
  66. }
  67. sub {
  68. bottom: -0.25em;
  69. }
  70. /* 正常链接 未访问 */
  71. a:link {
  72. }
  73. /* 鼠标悬停 */
  74. a:hover {
  75. text-decoration: underline;
  76. }
  77. /* 默认不显示下划线,保持页面简洁 */
  78. ins, a {
  79. text-decoration: none;
  80. }
  81. .mobile-modal {
  82. position: fixed;
  83. top: 0;
  84. bottom: 0;
  85. left: 0;
  86. right: 0;
  87. z-index: 999;
  88. background: rgba(0,0,0,.4);
  89. .mobile-modal-box {
  90. position: absolute;
  91. /*width: 5.92rem;*/
  92. font-size: .28rem;
  93. top: 27%;
  94. left: 11%;
  95. right: 11%;
  96. z-index: 1000;
  97. .mobile-modal-header {
  98. line-height: .96rem;
  99. background: rgb(65,141,246);
  100. color: #fff;
  101. text-align: center;
  102. font-size: .32rem;
  103. position: relative;
  104. border-top-left-radius: .07rem;
  105. border-top-right-radius: .07em;
  106. i {
  107. position: absolute;
  108. right: -.25rem;
  109. font-size: .6rem;
  110. bottom: .46rem;
  111. }
  112. }
  113. .mobile-modal-content {
  114. background: #fff;
  115. color: #333;
  116. padding: 0 .54rem;
  117. border-bottom-left-radius: .07rem;
  118. border-bottom-right-radius: .07rem;
  119. div {
  120. padding: .2rem 0;
  121. line-height: .4rem;
  122. border-bottom: .04rem solid rgb(183,213,254);
  123. text-align: center;
  124. &:last-child {
  125. border-bottom: none;
  126. }
  127. &:first-child {
  128. text-align: left;
  129. }
  130. }
  131. }
  132. }
  133. .mobile-share-box {
  134. position: fixed;
  135. width: 100%;
  136. font-size: .28rem;
  137. bottom: 0;
  138. left: 0;
  139. z-index: 1000;
  140. background: #fff;
  141. color: #333;
  142. .cancel-share {
  143. height: .98rem;
  144. line-height: .98rem;
  145. font-size: .3rem;
  146. text-align: center;
  147. border-top: .04rem solid #cdcecf;
  148. }
  149. .share-area {
  150. .share-item {
  151. display: inline-block;
  152. width: 1.5rem;
  153. height: 1.52rem;
  154. padding-top: .3rem;
  155. i {
  156. margin: 0 auto;
  157. display: block;
  158. font-size: .55rem;
  159. width: .54rem;
  160. }
  161. span {
  162. display: block;
  163. text-align: center;
  164. margin-top: .1rem;
  165. }
  166. }
  167. }
  168. }
  169. }
  170. .link-url {
  171. color: #01a44e;
  172. }
  173. ::-webkit-scrollbar {
  174. opacity: 0;
  175. display: none;
  176. }
  177. input {
  178. -webkit-appearance: none;
  179. -moz-appearance: none;
  180. appearance: none;
  181. outline: none;
  182. -webkit-box-shadow: none;
  183. -moz-box-shadow: none;
  184. box-shadow: none;
  185. border: none;
  186. }
  187. /*loading优先级*/
  188. .loading {
  189. z-index: 100000 !important;
  190. }
  191. .mobile-content {
  192. padding-top: .88rem !important;
  193. margin-bottom: 1rem;
  194. }
  195. /*求购title*/
  196. .seek-title {
  197. height: .96rem;
  198. line-height: .96rem;
  199. text-align: center;
  200. position: relative;
  201. border-bottom: .02rem solid rgb(219, 219, 219);
  202. > img {
  203. width: .36rem;
  204. height: .38rem;
  205. margin-right: .16rem;
  206. vertical-align: middle;
  207. margin-bottom: .16rem;
  208. }
  209. > span {
  210. font-size: .35rem;
  211. color: #666;
  212. }
  213. > a {
  214. position: absolute;
  215. right: .1rem;
  216. top: 0;
  217. font-size: .24rem;
  218. color: #999;
  219. margin-right: .1rem;
  220. img {
  221. width: .25rem;
  222. height: .25rem;
  223. margin-bottom: .04rem;
  224. }
  225. }
  226. }
  227. /*search*/
  228. .search-content {
  229. padding-top: .15rem;
  230. input {
  231. width: 6.48rem;
  232. height: .58rem;
  233. line-height: .58rem;
  234. border-radius: .14rem;
  235. margin: 0 0 0 .11rem;
  236. font-size: .26rem;
  237. padding: 0 0 0 .21rem;
  238. }
  239. span {
  240. display: inline-block;
  241. height: .58rem;
  242. line-height: .58rem;
  243. position: relative;
  244. top: .04rem;
  245. width: .68rem;
  246. color: #376ff3;
  247. border-left: .02rem solid #376ff3;
  248. margin-left: -.68rem;
  249. text-align: center;
  250. i {
  251. font-size: .31rem;
  252. }
  253. }
  254. img {
  255. width: .44rem;
  256. height: .44rem;
  257. float: right;
  258. margin-right: .2rem;
  259. margin-top: .1rem;
  260. }
  261. }
  262. /*报价info*/
  263. .base-info {
  264. //width: 7.17rem;
  265. margin: 0 auto .18rem;
  266. background: #fff;
  267. padding: .1rem .29rem;
  268. .content-line {
  269. height: .46rem;
  270. line-height: .46rem;
  271. font-size: .28rem;
  272. overflow: hidden;
  273. text-overflow: ellipsis;
  274. white-space: nowrap;
  275. span {
  276. color: #666;
  277. }
  278. }
  279. }
  280. .say-price-btn {
  281. display: block;
  282. width: 6.7rem;
  283. height: .74rem;
  284. line-height: .74rem;
  285. text-align: center;
  286. color: #fff !important;
  287. background: #3f84f6;
  288. border-radius: .08rem;
  289. font-size: .32rem;
  290. margin: 0 auto;
  291. }