mobileCommon.scss 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311
  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. bottom: 0;
  81. left: 0;
  82. right: 0;
  83. z-index: 999;
  84. background: rgba(0,0,0,.4);
  85. .mobile-modal-box {
  86. position: absolute;
  87. /*width: 5.92rem;*/
  88. font-size: .28rem;
  89. top: 27%;
  90. left: 11%;
  91. right: 11%;
  92. z-index: 1000;
  93. .mobile-modal-header {
  94. line-height: .96rem;
  95. background: rgb(65,141,246);
  96. color: #fff;
  97. text-align: center;
  98. font-size: .32rem;
  99. position: relative;
  100. border-top-left-radius: .07rem;
  101. border-top-right-radius: .07em;
  102. i {
  103. position: absolute;
  104. right: -.25rem;
  105. font-size: .6rem;
  106. bottom: .46rem;
  107. }
  108. }
  109. .mobile-modal-content {
  110. background: #fff;
  111. color: #333;
  112. padding: 0 .54rem;
  113. border-bottom-left-radius: .07rem;
  114. border-bottom-right-radius: .07rem;
  115. div {
  116. padding: .2rem 0;
  117. line-height: .4rem;
  118. border-bottom: .04rem solid rgb(183,213,254);
  119. text-align: center;
  120. &:last-child {
  121. border-bottom: none;
  122. }
  123. &:first-child {
  124. text-align: left;
  125. }
  126. }
  127. }
  128. }
  129. .mobile-share-box {
  130. position: fixed;
  131. width: 100%;
  132. font-size: .28rem;
  133. bottom: 0;
  134. left: 0;
  135. z-index: 1000;
  136. background: #fff;
  137. color: #333;
  138. .cancel-share {
  139. height: .98rem;
  140. line-height: .98rem;
  141. font-size: .3rem;
  142. text-align: center;
  143. border-top: .04rem solid #cdcecf;
  144. }
  145. .share-area {
  146. .share-item {
  147. display: inline-block;
  148. width: 1.5rem;
  149. height: 1.52rem;
  150. padding-top: .3rem;
  151. i {
  152. margin: 0 auto;
  153. display: block;
  154. font-size: .55rem;
  155. width: .54rem;
  156. }
  157. span {
  158. display: block;
  159. text-align: center;
  160. margin-top: .1rem;
  161. }
  162. }
  163. }
  164. }
  165. }
  166. .link-url {
  167. color: #01a44e;
  168. }
  169. ::-webkit-scrollbar {
  170. opacity: 0;
  171. display: none;
  172. }
  173. input {
  174. -webkit-appearance: none;
  175. -moz-appearance: none;
  176. appearance: none;
  177. outline: none;
  178. -webkit-box-shadow: none;
  179. -moz-box-shadow: none;
  180. box-shadow: none;
  181. border: none;
  182. }
  183. /*loading优先级*/
  184. .loading {
  185. z-index: 100000 !important;
  186. }
  187. .mobile-content {
  188. padding-top: .88rem !important;
  189. margin-bottom: 1rem;
  190. }
  191. /*求购title*/
  192. .seek-title {
  193. height: .96rem;
  194. line-height: .96rem;
  195. text-align: center;
  196. position: relative;
  197. border-bottom: .02rem solid rgb(219, 219, 219);
  198. > img {
  199. width: .36rem;
  200. height: .38rem;
  201. margin-right: .16rem;
  202. vertical-align: middle;
  203. margin-bottom: .16rem;
  204. }
  205. > span {
  206. font-size: .35rem;
  207. color: #666;
  208. }
  209. > a {
  210. position: absolute;
  211. right: .1rem;
  212. top: 0;
  213. font-size: .24rem;
  214. color: #999;
  215. margin-right: .1rem;
  216. img {
  217. width: .25rem;
  218. height: .25rem;
  219. margin-bottom: .04rem;
  220. }
  221. }
  222. }
  223. /*search*/
  224. .search-content {
  225. padding-top: .15rem;
  226. input {
  227. width: 6.48rem;
  228. height: .58rem;
  229. line-height: .58rem;
  230. border-radius: .14rem;
  231. margin: 0 0 0 .11rem;
  232. font-size: .23rem;
  233. padding: 0 0 0 .21rem;
  234. }
  235. span {
  236. display: inline-block;
  237. height: .58rem;
  238. line-height: .58rem;
  239. position: relative;
  240. top: .04rem;
  241. width: .68rem;
  242. color: #376ff3;
  243. border-left: .02rem solid #376ff3;
  244. margin-left: -.68rem;
  245. text-align: center;
  246. i {
  247. font-size: .31rem;
  248. }
  249. }
  250. img {
  251. width: .44rem;
  252. height: .44rem;
  253. float: right;
  254. margin-right: .2rem;
  255. margin-top: .1rem;
  256. }
  257. }
  258. /*报价info*/
  259. .base-info {
  260. //width: 7.17rem;
  261. margin: 0 auto .18rem;
  262. background: #fff;
  263. padding: 0 .29rem;
  264. .content-line {
  265. height: .5rem;
  266. line-height: .5rem;
  267. font-size: .28rem;
  268. overflow: hidden;
  269. text-overflow: ellipsis;
  270. white-space: nowrap;
  271. span {
  272. color: #666;
  273. }
  274. }
  275. }
  276. .say-price-btn {
  277. display: block;
  278. width: 6.7rem;
  279. height: .74rem;
  280. line-height: .74rem;
  281. text-align: center;
  282. color: #fff !important;
  283. background: #3f84f6;
  284. border-radius: .08rem;
  285. font-size: .32rem;
  286. margin: 0 auto;
  287. }