common.scss 9.2 KB

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