common.scss 3.4 KB

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