common.scss 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. /**
  2. *全局样式,以 App- 前缀命名
  3. */
  4. * {
  5. margin: 0;
  6. padding: 0;
  7. }
  8. page,
  9. body {
  10. font-family: "microsoft yahei";
  11. font-size: 24px;
  12. // height: 100%;
  13. // line-height: 1;
  14. }
  15. .app-wh100 {
  16. width: 100%;
  17. height: 100%;
  18. }
  19. // .App_bg {
  20. // height: 100%;
  21. // }
  22. .App {
  23. // line-height: 1;
  24. min-height: 100vh;
  25. }
  26. .App_gray {
  27. // line-height: 1;
  28. min-height: 100vh;
  29. background-color: $backColor;
  30. }
  31. .App_row {
  32. display: flex;
  33. justify-content: center;
  34. }
  35. .App_col {
  36. display: flex;
  37. align-items: center;
  38. flex-direction: column;
  39. }
  40. .App_border-box * {
  41. box-sizing: border-box;
  42. }
  43. // 按钮公共样式
  44. .button-com {
  45. display: inline-block;
  46. color: $mainColor;
  47. font-size: 28px;
  48. padding: 20px 30px;
  49. background-color: #fff;
  50. border-radius: 60px;
  51. border: 1px solid $mainColor;
  52. text-align: center;
  53. line-height: 1;
  54. margin: 0;
  55. }
  56. .button-com.big {
  57. padding-top: 30px;
  58. padding-bottom: 30px;
  59. }
  60. .button-com.red {
  61. color: #fff;
  62. background-color: $mainColor;
  63. &:active {
  64. background-color: rgb(245, 63, 85);
  65. }
  66. }
  67. .button-com.green {
  68. color: #fff;
  69. background-color: #07be0b;
  70. border-color: #07be0b;
  71. &:active {
  72. background-color: rgb(45, 194, 47);
  73. }
  74. }
  75. .button-com.default {
  76. color: $fontColor2;
  77. border-color: #dddddd;
  78. &:active {
  79. background-color: #f5f5f5;
  80. }
  81. }
  82. // 带统计字数文本域
  83. .textarea_wrap {
  84. position: relative;
  85. textarea {
  86. display: block;
  87. background-color: #fff;
  88. padding: 30px 31px;
  89. border: 0 none;
  90. width: 100%;
  91. height: 270px;
  92. }
  93. .count {
  94. position: absolute;
  95. line-height: 1;
  96. right: 30px;
  97. bottom: 30px;
  98. font-size: 24px;
  99. color: rgba(153, 153, 153, 1);
  100. }
  101. }
  102. /* 超出隐藏 */
  103. .ellipsis_line_com {
  104. overflow: hidden;
  105. white-space: nowrap;
  106. text-overflow: ellipsis;
  107. }
  108. /* 超出两行隐藏 */
  109. .ellipsis_two_line_com {
  110. text-overflow: -o-ellipsis-lastline;
  111. overflow: hidden;
  112. text-overflow: ellipsis;
  113. display: -webkit-box;
  114. -webkit-line-clamp: 2;
  115. line-clamp: 2;
  116. -webkit-box-orient: vertical;
  117. line-height: 1.3;
  118. }
  119. /* 黑色蒙版 */
  120. .black_mask {
  121. position: fixed;
  122. top: 0;
  123. bottom: 0;
  124. left: 0;
  125. right: 0;
  126. width: 100vw;
  127. height: 100vh;
  128. background-color: rgba(0, 0, 0, 0.7);
  129. z-index: 999;
  130. &.center {
  131. display: flex;
  132. justify-content: center;
  133. align-items: center;
  134. }
  135. }
  136. .app-footer {
  137. width: 100%;
  138. max-width: 750px; /*no*/
  139. min-width: 320px; /*no*/
  140. height: 100px;
  141. position: fixed;
  142. text-align: center;
  143. bottom: 0;
  144. background: white;
  145. box-shadow: -4px -4px 6px #eee;
  146. z-index: 100;
  147. // font-size: 32px;
  148. // line-height: 90px;
  149. display: flex;
  150. justify-content: center;
  151. align-items: center;
  152. // letter-spacing: 3px;
  153. & .add {
  154. width: 38px;
  155. height: 38px;
  156. margin-right: 20px;
  157. }
  158. }
  159. .noMore {
  160. color: #969799;
  161. font-size: 24upx;
  162. line-height: 50px;
  163. text-align: center;
  164. padding: 30px 0;
  165. }
  166. li {
  167. list-style: none;
  168. }
  169. // .app-seach-box {
  170. // position: relative;
  171. // z-index: 999;
  172. // & .app-filter_wrap {
  173. // padding-left: 30px;
  174. // display: flex;
  175. // justify-content: center;
  176. // align-items: center;
  177. // position: relative;
  178. // color: #666666;
  179. // border-right: 1px;
  180. // & > view {
  181. // padding: 0 5px;
  182. // }
  183. // &::after {
  184. // content: '';
  185. // height: 60px;
  186. // position: absolute;
  187. // background-color: #dddddd;
  188. // width: 1Px;
  189. // left: 0;
  190. // top: 50%;
  191. // transform: translate(0 ,-50%);
  192. // }
  193. // }
  194. // }
  195. .includecontent p img {
  196. width: 100%;
  197. height: auto;
  198. }
  199. .uni-overflow-hidden {
  200. overflow: hidden;
  201. height: 100vh;
  202. }
  203. .inputTip_box {
  204. position: relative;
  205. width: 100%;
  206. .inputTip {
  207. position: absolute;
  208. top: 50%;
  209. transform: translateY(-50%);
  210. right: 0;
  211. color: #f44;
  212. font-size: 28upx;
  213. }
  214. }
  215. .text-overflow {
  216. overflow: hidden;
  217. text-overflow: ellipsis;
  218. white-space: nowrap;
  219. }