common.scss 9.2 KB

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