mobileCommon.scss 5.5 KB

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