common.scss 8.7 KB

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