common.scss 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448
  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. .tui-placeholder {
  260. color: #ccc;
  261. }
  262. }
  263. }
  264. }
  265. // ======================= 弹窗输入框公共样式 - end ====================
  266. // ======================= admin 操作弹窗 公共 =========================
  267. .operate-icon-wrap {
  268. position: relative;
  269. width: 36px;
  270. height: 36px;
  271. .operate-icon {
  272. position: absolute;
  273. bottom: -18px;
  274. left: -18px;
  275. padding: 20px;
  276. .iconcaozuojihuo {
  277. color: $mainColor !important;
  278. }
  279. }
  280. }
  281. .app-margin-left-20 {
  282. margin-left: 20px;
  283. }
  284. // 带统计字数文本域
  285. .textarea_wrap {
  286. position: relative;
  287. textarea {
  288. display: block;
  289. background-color: #fff;
  290. padding: 30px 31px;
  291. border: 0 none;
  292. width: 100%;
  293. height: 270px;
  294. }
  295. .count {
  296. position: absolute;
  297. line-height: 1;
  298. right: 30px;
  299. bottom: 30px;
  300. font-size: 24px;
  301. color: rgba(153, 153, 153, 1);
  302. }
  303. }
  304. /* 超出隐藏 */
  305. .ellipsis_line_com {
  306. overflow: hidden;
  307. white-space: nowrap;
  308. text-overflow: ellipsis;
  309. }
  310. /* 超出两行隐藏 */
  311. .ellipsis_two_line_com {
  312. text-overflow: -o-ellipsis-lastline;
  313. overflow: hidden;
  314. text-overflow: ellipsis;
  315. display: -webkit-box;
  316. -webkit-line-clamp: 2;
  317. line-clamp: 2;
  318. -webkit-box-orient: vertical;
  319. line-height: 1.3;
  320. }
  321. /* 黑色蒙版 */
  322. .black_mask {
  323. position: fixed;
  324. top: 0;
  325. bottom: 0;
  326. left: 0;
  327. right: 0;
  328. width: 100vw;
  329. height: 100vh;
  330. background-color: rgba(0, 0, 0, 0.7);
  331. z-index: 999;
  332. &.center {
  333. display: flex;
  334. justify-content: center;
  335. align-items: center;
  336. }
  337. }
  338. .app-footer {
  339. width: 100%;
  340. max-width: 750px; /*no*/
  341. min-width: 320px; /*no*/
  342. height: 100px;
  343. position: fixed;
  344. text-align: center;
  345. bottom: 0;
  346. background: white;
  347. box-shadow: -4px -4px 6px #eee;
  348. z-index: 100;
  349. // font-size: 32px;
  350. // line-height: 90px;
  351. display: flex;
  352. justify-content: center;
  353. align-items: center;
  354. // letter-spacing: 3px;
  355. & .add {
  356. width: 38px;
  357. height: 38px;
  358. margin-right: 20px;
  359. }
  360. }
  361. .noMore {
  362. color: #969799;
  363. font-size: 24upx;
  364. line-height: 50px;
  365. text-align: center;
  366. padding: 30px 0;
  367. }
  368. li {
  369. list-style: none;
  370. }
  371. // .app-seach-box {
  372. // position: relative;
  373. // z-index: 999;
  374. // & .app-filter_wrap {
  375. // padding-left: 30px;
  376. // display: flex;
  377. // justify-content: center;
  378. // align-items: center;
  379. // position: relative;
  380. // color: #666666;
  381. // border-right: 1px;
  382. // & > view {
  383. // padding: 0 5px;
  384. // }
  385. // &::after {
  386. // content: '';
  387. // height: 60px;
  388. // position: absolute;
  389. // background-color: #dddddd;
  390. // width: 1Px;
  391. // left: 0;
  392. // top: 50%;
  393. // transform: translate(0 ,-50%);
  394. // }
  395. // }
  396. // }
  397. .includecontent p img {
  398. width: 100%;
  399. height: auto;
  400. }
  401. .uni-overflow-hidden {
  402. overflow: hidden;
  403. height: 100vh;
  404. }
  405. .inputTip_box {
  406. position: relative;
  407. width: 100%;
  408. .inputTip {
  409. position: absolute;
  410. top: 50%;
  411. transform: translateY(-50%);
  412. right: 0;
  413. color: #f44;
  414. font-size: 28upx;
  415. }
  416. }
  417. .text-overflow {
  418. overflow: hidden;
  419. text-overflow: ellipsis;
  420. white-space: nowrap;
  421. }
  422. .animate-open {
  423. transform: rotate(180);
  424. }
  425. .animate-close {
  426. transform: rotate(0);
  427. }