mobileCommon.scss 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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, body {
  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. width: 100%;
  85. height: 100%;
  86. z-index: 999;
  87. background: rgba(0,0,0,.3);
  88. .mobile-modal-box {
  89. position: fixed;
  90. width: 5.92rem;
  91. font-size: .28rem;
  92. top: 27%;
  93. left: 11%;
  94. z-index: 1000;
  95. .mobile-modal-header {
  96. line-height: .96rem;
  97. background: rgb(65,141,246);
  98. color: #fff;
  99. text-align: center;
  100. font-size: .32rem;
  101. position: relative;
  102. border-top-left-radius: .1rem;
  103. border-top-right-radius: .1rem;
  104. i {
  105. position: absolute;
  106. right: -.25rem;
  107. font-size: .6rem;
  108. bottom: .46rem;
  109. }
  110. }
  111. .mobile-modal-content {
  112. background: #fff;
  113. color: #333;
  114. padding: 0 .54rem;
  115. border-bottom-left-radius: .1rem;
  116. border-bottom-right-radius: .1rem;
  117. div {
  118. padding: .2rem 0;
  119. line-height: .4rem;
  120. border-bottom: .04rem solid rgb(183,213,254);
  121. text-align: center;
  122. &:last-child {
  123. border-bottom: none;
  124. }
  125. &:first-child {
  126. text-align: left;
  127. }
  128. }
  129. }
  130. }
  131. .mobile-share-box {
  132. position: fixed;
  133. width: 100%;
  134. font-size: .28rem;
  135. bottom: 0;
  136. left: 0;
  137. z-index: 1000;
  138. background: #fff;
  139. color: #333;
  140. .cancel-share {
  141. height: .98rem;
  142. line-height: .98rem;
  143. font-size: .3rem;
  144. text-align: center;
  145. border-top: .04rem solid #cdcecf;
  146. }
  147. .share-area {
  148. .share-item {
  149. display: inline-block;
  150. width: 1.5rem;
  151. height: 1.52rem;
  152. padding-top: .3rem;
  153. i {
  154. margin: 0 auto;
  155. display: block;
  156. font-size: .55rem;
  157. width: .54rem;
  158. }
  159. span {
  160. display: block;
  161. text-align: center;
  162. margin-top: .1rem;
  163. }
  164. }
  165. }
  166. }
  167. }
  168. .link-url {
  169. color: #01a44e;
  170. }
  171. ::-webkit-scrollbar {
  172. opacity: 0;
  173. display: none;
  174. }
  175. input {
  176. -webkit-appearance: none;
  177. -moz-appearance: none;
  178. appearance: none;
  179. }
  180. /*loading优先级*/
  181. .loading {
  182. z-index: 100000 !important;
  183. }
  184. .mobile-content {
  185. padding-top: .88rem !important;
  186. }