common.scss 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437
  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. .button-com.disable {
  87. color: #fff;
  88. background-color: #ccc;
  89. border-color: #ccc;
  90. }
  91. // ============ 后台 =============
  92. .admin-button-com {
  93. display: inline-block;
  94. color: $mainColor;
  95. font-size: 26px;
  96. padding: 10px 20px;
  97. background-color: #fff;
  98. border-radius: 8px;
  99. border: 1px solid $mainColor;
  100. text-align: center;
  101. line-height: 1;
  102. margin: 0;
  103. &:active {
  104. color: #3876d4;
  105. border-color: #3876d4;
  106. }
  107. }
  108. .admin-button-com.middle {
  109. padding-top: 20px;
  110. padding-bottom: 20px;
  111. font-size: 28px;
  112. }
  113. .admin-button-com.big {
  114. padding-top: 30px;
  115. padding-bottom: 30px;
  116. font-size: 32px;
  117. }
  118. .admin-button-com.blue {
  119. color: #fff;
  120. background-color: $mainColor;
  121. &:active {
  122. background-color: #3876d4;
  123. }
  124. }
  125. .admin-button-com.default {
  126. color: $fontColor2;
  127. border-color: #dddddd;
  128. &:active {
  129. background-color: #f5f5f5;
  130. }
  131. }
  132. .admin-button-com.disable {
  133. color: #fff;
  134. background-color: #ccc;
  135. border-color: #ccc;
  136. }
  137. // ======================= 输入框公共样式 - start ====================
  138. .input-line-wrap {
  139. // 是否必填
  140. .required::before {
  141. content: "*";
  142. color: #f04545;
  143. font-size: 28px;
  144. margin-right: 8px;
  145. }
  146. // 公共
  147. .line-cell {
  148. &.between {
  149. justify-content: space-between;
  150. }
  151. // &.switch {
  152. // padding-top: 14px;
  153. // padding-bottom: 14px;
  154. // }
  155. .tui-title {
  156. width: 210px;
  157. color: $fontColor2;
  158. flex-shrink: 0;
  159. }
  160. .tui-input {
  161. width: calc(100% - 210px);
  162. font-size: 28px;
  163. }
  164. .tui-textarea {
  165. width: 100%;
  166. font-size: 28px;
  167. }
  168. .tui-operate {
  169. width: calc(100% - 210px);
  170. font-size: 28px;
  171. }
  172. .tui-placeholder {
  173. color: #ccc;
  174. }
  175. .tui-prompt {
  176. flex-shrink: 0;
  177. color: $fontColor2;
  178. margin-left: 20px;
  179. }
  180. }
  181. .phcolor {
  182. color: #ccc;
  183. }
  184. .prompt-text {
  185. color: $fontColor3;
  186. margin-top: 20px;
  187. margin-left: 30px;
  188. }
  189. .btn-wrap {
  190. width: calc(100% - 60px);
  191. margin: 60px auto;
  192. .button-com {
  193. width: 100%;
  194. margin: 0 auto;
  195. }
  196. .admin-button-com {
  197. width: 100%;
  198. margin: 0 auto;
  199. }
  200. }
  201. }
  202. // ======================= 输入框公共样式 - end ====================
  203. // ======================= 弹窗输入框公共样式 - start ====================
  204. .app-modal-input-wrap {
  205. width: 100%;
  206. .inp-list-line {
  207. width: 100%;
  208. @include disFlex(center, space-between);
  209. font-size: 32px;
  210. margin-bottom: 20px;
  211. color: $fontColor2;
  212. text-align: left;
  213. &:last-child {
  214. margin-bottom: 0;
  215. }
  216. .line-label {
  217. margin-right: 20px;
  218. flex-shrink: 0;
  219. }
  220. .line-input {
  221. width: 100%;
  222. @include disFlex(center, center);
  223. &.flex-strat {
  224. justify-content: flex-start;
  225. }
  226. .inp-input,
  227. .inp-select {
  228. width: 100%;
  229. height: 90px;
  230. border: 2px solid $borderColor;
  231. padding-left: 20px;
  232. border-radius: 4px;
  233. color: #333;
  234. }
  235. .inp-select {
  236. position: relative;
  237. line-height: 90px;
  238. &:active {
  239. background-color: $backColor;
  240. }
  241. &::before {
  242. content: " ";
  243. height: 20px;
  244. width: 20px;
  245. border-width: 2px 2px 0 0;
  246. border-color: #bbbbbb;
  247. border-style: solid;
  248. transform: matrix(0.5, 0.5, -0.5, 0.5, 0, 0);
  249. position: absolute;
  250. top: 50%;
  251. margin-top: -12px;
  252. right: 16px;
  253. }
  254. }
  255. .inp-prompt {
  256. flex-shrink: 0;
  257. margin-left: 20px;
  258. }
  259. }
  260. }
  261. }
  262. // ======================= 弹窗输入框公共样式 - end ====================
  263. // ======================= admin 操作弹窗 公共 =========================
  264. .operate-icon-wrap {
  265. position: relative;
  266. width: 36px;
  267. height: 36px;
  268. .operate-icon {
  269. position: absolute;
  270. bottom: -18px;
  271. left: -18px;
  272. padding: 20px;
  273. .iconcaozuojihuo {
  274. color: $mainColor;
  275. }
  276. }
  277. }
  278. .app-margin-left-20 {
  279. margin-left: 20px;
  280. }
  281. // 带统计字数文本域
  282. .textarea_wrap {
  283. position: relative;
  284. textarea {
  285. display: block;
  286. background-color: #fff;
  287. padding: 30px 31px;
  288. border: 0 none;
  289. width: 100%;
  290. height: 270px;
  291. }
  292. .count {
  293. position: absolute;
  294. line-height: 1;
  295. right: 30px;
  296. bottom: 30px;
  297. font-size: 24px;
  298. color: rgba(153, 153, 153, 1);
  299. }
  300. }
  301. /* 超出隐藏 */
  302. .ellipsis_line_com {
  303. overflow: hidden;
  304. white-space: nowrap;
  305. text-overflow: ellipsis;
  306. }
  307. /* 超出两行隐藏 */
  308. .ellipsis_two_line_com {
  309. text-overflow: -o-ellipsis-lastline;
  310. overflow: hidden;
  311. text-overflow: ellipsis;
  312. display: -webkit-box;
  313. -webkit-line-clamp: 2;
  314. line-clamp: 2;
  315. -webkit-box-orient: vertical;
  316. line-height: 1.3;
  317. }
  318. /* 黑色蒙版 */
  319. .black_mask {
  320. position: fixed;
  321. top: 0;
  322. bottom: 0;
  323. left: 0;
  324. right: 0;
  325. width: 100vw;
  326. height: 100vh;
  327. background-color: rgba(0, 0, 0, 0.7);
  328. z-index: 999;
  329. &.center {
  330. display: flex;
  331. justify-content: center;
  332. align-items: center;
  333. }
  334. }
  335. .app-footer {
  336. width: 100%;
  337. max-width: 750px; /*no*/
  338. min-width: 320px; /*no*/
  339. height: 100px;
  340. position: fixed;
  341. text-align: center;
  342. bottom: 0;
  343. background: white;
  344. box-shadow: -4px -4px 6px #eee;
  345. z-index: 100;
  346. // font-size: 32px;
  347. // line-height: 90px;
  348. display: flex;
  349. justify-content: center;
  350. align-items: center;
  351. // letter-spacing: 3px;
  352. & .add {
  353. width: 38px;
  354. height: 38px;
  355. margin-right: 20px;
  356. }
  357. }
  358. .noMore {
  359. color: #969799;
  360. font-size: 24upx;
  361. line-height: 50px;
  362. text-align: center;
  363. padding: 30px 0;
  364. }
  365. li {
  366. list-style: none;
  367. }
  368. // .app-seach-box {
  369. // position: relative;
  370. // z-index: 999;
  371. // & .app-filter_wrap {
  372. // padding-left: 30px;
  373. // display: flex;
  374. // justify-content: center;
  375. // align-items: center;
  376. // position: relative;
  377. // color: #666666;
  378. // border-right: 1px;
  379. // & > view {
  380. // padding: 0 5px;
  381. // }
  382. // &::after {
  383. // content: '';
  384. // height: 60px;
  385. // position: absolute;
  386. // background-color: #dddddd;
  387. // width: 1Px;
  388. // left: 0;
  389. // top: 50%;
  390. // transform: translate(0 ,-50%);
  391. // }
  392. // }
  393. // }
  394. .includecontent p img {
  395. width: 100%;
  396. height: auto;
  397. }
  398. .uni-overflow-hidden {
  399. overflow: hidden;
  400. height: 100vh;
  401. }
  402. .inputTip_box {
  403. position: relative;
  404. width: 100%;
  405. .inputTip {
  406. position: absolute;
  407. top: 50%;
  408. transform: translateY(-50%);
  409. right: 0;
  410. color: #f44;
  411. font-size: 28upx;
  412. }
  413. }
  414. .text-overflow {
  415. overflow: hidden;
  416. text-overflow: ellipsis;
  417. white-space: nowrap;
  418. }