mobileCommon.scss 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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: .01rem 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. }