common.scss 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  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: 100px;
  51. border: 1px solid $mainColor;
  52. text-align: center;
  53. line-height: 1;
  54. margin: 0;
  55. &:active {
  56. color: rgb(245, 63, 85);
  57. border-color: rgb(245, 63, 85);
  58. }
  59. }
  60. .button-com.big {
  61. padding-top: 30px;
  62. padding-bottom: 30px;
  63. }
  64. .button-com.red {
  65. color: #fff;
  66. background-color: $mainColor;
  67. &:active {
  68. background-color: rgb(245, 63, 85);
  69. }
  70. }
  71. .button-com.green {
  72. color: #fff;
  73. background-color: #07be0b;
  74. border-color: #07be0b;
  75. &:active {
  76. background-color: rgb(45, 194, 47);
  77. }
  78. }
  79. .button-com.default {
  80. color: $fontColor2;
  81. border-color: #dddddd;
  82. &:active {
  83. background-color: #f5f5f5;
  84. }
  85. }
  86. // ============ 后台 =============
  87. .admin-button-com {
  88. display: inline-block;
  89. color: $mainColor;
  90. font-size: 26px;
  91. padding: 10px 20px;
  92. background-color: #fff;
  93. border-radius: 8px;
  94. border: 1px solid $mainColor;
  95. text-align: center;
  96. line-height: 1;
  97. margin: 0;
  98. &:active {
  99. color: #3876d4;
  100. border-color: #3876d4;
  101. }
  102. }
  103. .admin-button-com.middle {
  104. padding-top: 20px;
  105. padding-bottom: 20px;
  106. font-size: 28px;
  107. }
  108. .admin-button-com.big {
  109. padding-top: 30px;
  110. padding-bottom: 30px;
  111. font-size: 32px;
  112. }
  113. .admin-button-com.blue {
  114. color: #fff;
  115. background-color: $mainColor;
  116. &:active {
  117. background-color: #3876d4;
  118. }
  119. }
  120. .admin-button-com.default {
  121. color: $fontColor2;
  122. border-color: #dddddd;
  123. &:active {
  124. background-color: #f5f5f5;
  125. }
  126. }
  127. // ======================= 输入框公共样式 - start ====================
  128. .input-line-wrap {
  129. // 公共
  130. .line-cell {
  131. .tui-title {
  132. width: 210px;
  133. color: $fontColor2;
  134. }
  135. .tui-input {
  136. width: calc(100% - 210px);
  137. font-size: 28px;
  138. }
  139. .tui-placeholder {
  140. color: #ccc;
  141. }
  142. .phcolor {
  143. color: #ccc;
  144. }
  145. }
  146. .prompt-text {
  147. color: $fontColor3;
  148. margin-top: 20px;
  149. margin-left: 30px;
  150. }
  151. .btn-wrap {
  152. width: calc(100% - 60px);
  153. margin: 60px auto;
  154. .button-com {
  155. width: 100%;
  156. margin: 0 auto;
  157. }
  158. .admin-button-com {
  159. width: 100%;
  160. margin: 0 auto;
  161. }
  162. }
  163. }
  164. // ======================= 输入框公共样式 - end ====================
  165. // ======================= 弹窗输入框公共样式 - start ====================
  166. .app-modal-input-wrap {
  167. width: 100%;
  168. .inp-list-line {
  169. width: 100%;
  170. @include disFlex(center, space-between);
  171. font-size: 32px;
  172. margin-bottom: 20px;
  173. color: $fontColor2;
  174. text-align: left;
  175. &:last-child {
  176. margin-bottom: 0;
  177. }
  178. .line-label {
  179. margin-right: 20px;
  180. flex-shrink: 0;
  181. }
  182. .line-input {
  183. width: 100%;
  184. @include disFlex(center, center);
  185. .inp-input,
  186. .inp-select {
  187. width: 100%;
  188. height: 90px;
  189. border: 2px solid $borderColor;
  190. padding-left: 20px;
  191. border-radius: 4px;
  192. color: #333;
  193. }
  194. .inp-select {
  195. position: relative;
  196. line-height: 90px;
  197. &:active {
  198. background-color: $backColor;
  199. }
  200. &::before {
  201. content: " ";
  202. height: 20px;
  203. width: 20px;
  204. border-width: 2px 2px 0 0;
  205. border-color: #BBBBBB;
  206. border-style: solid;
  207. transform: matrix(0.5, 0.5, -0.5, 0.5, 0, 0);
  208. position: absolute;
  209. top: 50%;
  210. margin-top: -12px;
  211. right: 16px;
  212. }
  213. }
  214. .inp-prompt {
  215. flex-shrink: 0;
  216. margin-left: 20px;
  217. }
  218. }
  219. }
  220. }
  221. // ======================= 弹窗输入框公共样式 - end ====================
  222. // 带统计字数文本域
  223. .textarea_wrap {
  224. position: relative;
  225. textarea {
  226. display: block;
  227. background-color: #fff;
  228. padding: 30px 31px;
  229. border: 0 none;
  230. width: 100%;
  231. height: 270px;
  232. }
  233. .count {
  234. position: absolute;
  235. line-height: 1;
  236. right: 30px;
  237. bottom: 30px;
  238. font-size: 24px;
  239. color: rgba(153, 153, 153, 1);
  240. }
  241. }
  242. /* 超出隐藏 */
  243. .ellipsis_line_com {
  244. overflow: hidden;
  245. white-space: nowrap;
  246. text-overflow: ellipsis;
  247. }
  248. /* 超出两行隐藏 */
  249. .ellipsis_two_line_com {
  250. text-overflow: -o-ellipsis-lastline;
  251. overflow: hidden;
  252. text-overflow: ellipsis;
  253. display: -webkit-box;
  254. -webkit-line-clamp: 2;
  255. line-clamp: 2;
  256. -webkit-box-orient: vertical;
  257. line-height: 1.3;
  258. }
  259. /* 黑色蒙版 */
  260. .black_mask {
  261. position: fixed;
  262. top: 0;
  263. bottom: 0;
  264. left: 0;
  265. right: 0;
  266. width: 100vw;
  267. height: 100vh;
  268. background-color: rgba(0, 0, 0, 0.7);
  269. z-index: 999;
  270. &.center {
  271. display: flex;
  272. justify-content: center;
  273. align-items: center;
  274. }
  275. }
  276. .app-footer {
  277. width: 100%;
  278. max-width: 750px; /*no*/
  279. min-width: 320px; /*no*/
  280. height: 100px;
  281. position: fixed;
  282. text-align: center;
  283. bottom: 0;
  284. background: white;
  285. box-shadow: -4px -4px 6px #eee;
  286. z-index: 100;
  287. // font-size: 32px;
  288. // line-height: 90px;
  289. display: flex;
  290. justify-content: center;
  291. align-items: center;
  292. // letter-spacing: 3px;
  293. & .add {
  294. width: 38px;
  295. height: 38px;
  296. margin-right: 20px;
  297. }
  298. }
  299. .noMore {
  300. color: #969799;
  301. font-size: 24upx;
  302. line-height: 50px;
  303. text-align: center;
  304. padding: 30px 0;
  305. }
  306. li {
  307. list-style: none;
  308. }
  309. // .app-seach-box {
  310. // position: relative;
  311. // z-index: 999;
  312. // & .app-filter_wrap {
  313. // padding-left: 30px;
  314. // display: flex;
  315. // justify-content: center;
  316. // align-items: center;
  317. // position: relative;
  318. // color: #666666;
  319. // border-right: 1px;
  320. // & > view {
  321. // padding: 0 5px;
  322. // }
  323. // &::after {
  324. // content: '';
  325. // height: 60px;
  326. // position: absolute;
  327. // background-color: #dddddd;
  328. // width: 1Px;
  329. // left: 0;
  330. // top: 50%;
  331. // transform: translate(0 ,-50%);
  332. // }
  333. // }
  334. // }
  335. .includecontent p img {
  336. width: 100%;
  337. height: auto;
  338. }
  339. .uni-overflow-hidden {
  340. overflow: hidden;
  341. height: 100vh;
  342. }
  343. .inputTip_box {
  344. position: relative;
  345. width: 100%;
  346. .inputTip {
  347. position: absolute;
  348. top: 50%;
  349. transform: translateY(-50%);
  350. right: 0;
  351. color: #f44;
  352. font-size: 28upx;
  353. }
  354. }
  355. .text-overflow {
  356. overflow: hidden;
  357. text-overflow: ellipsis;
  358. white-space: nowrap;
  359. }