common.scss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574
  1. /**
  2. *全局样式,以 App- 前缀命名
  3. */
  4. * {
  5. margin: 0;
  6. padding: 0;
  7. }
  8. page,
  9. view,
  10. scroll-view,
  11. swiper,
  12. movable-area,
  13. cover-view,
  14. text,
  15. icon,
  16. rich-text,
  17. progress,
  18. button,
  19. checkbox-group,
  20. checkbox,
  21. form,
  22. input,
  23. label,
  24. picker,
  25. picker-view,
  26. radio-group,
  27. slider,
  28. switch,
  29. textarea,
  30. navigator,
  31. audio,
  32. image,
  33. video,
  34. live-player,
  35. live-pusher,
  36. open-data,
  37. web-view {
  38. // font-family: 'Microsoft Yahei';
  39. -webkit-box-sizing: border-box;
  40. -moz-box-sizing: border-box;
  41. box-sizing: border-box;
  42. }
  43. page,
  44. body {
  45. font-family: "microsoft yahei";
  46. font-size: 24upx;
  47. // height: 100%;
  48. // line-height: 1;
  49. }
  50. .clearfix {
  51. }
  52. .clearfix:after {
  53. display: block;
  54. content: '';
  55. clear: both;
  56. }
  57. .overscroll {
  58. overflow-y: auto;
  59. -webkit-overflow-scrolling: touch;
  60. }
  61. .text-line {
  62. word-break: keep-all;
  63. white-space: nowrap;
  64. overflow: hidden;
  65. text-overflow: ellipsis;
  66. }
  67. .app-wh100 {
  68. width: 100%;
  69. height: 100%;
  70. }
  71. // .App_bg {
  72. // height: 100%;
  73. // }
  74. .App {
  75. // line-height: 1;
  76. min-height: 100vh;
  77. }
  78. .App_gray {
  79. // line-height: 1;
  80. min-height: 100vh;
  81. background-color: $backColor;
  82. }
  83. .App_row {
  84. display: flex;
  85. justify-content: center;
  86. }
  87. .App_col {
  88. display: flex;
  89. align-items: center;
  90. flex-direction: column;
  91. }
  92. .App_border-box * {
  93. box-sizing: border-box;
  94. }
  95. // 按钮公共样式
  96. .button-com {
  97. display: inline-block;
  98. color: $mainColor;
  99. font-size: 28upx;
  100. padding: 20upx 30upx;
  101. background-color: #fff;
  102. border-radius: 100upx;
  103. border: 1px solid $mainColor;
  104. text-align: center;
  105. line-height: 1;
  106. margin: 0;
  107. &:active {
  108. color: rgb(245, 63, 85);
  109. border-color: rgb(245, 63, 85);
  110. }
  111. }
  112. .button-com::after{
  113. border: none;
  114. }
  115. .button-com.big {
  116. padding-top: 30upx;
  117. padding-bottom: 30upx;
  118. }
  119. .button-com.red {
  120. color: #fff;
  121. background-color: $mainColor;
  122. &:active {
  123. background-color: rgb(245, 63, 85);
  124. }
  125. }
  126. .button-com.green {
  127. color: #fff;
  128. background-color: #07be0b;
  129. border-color: #07be0b;
  130. &:active {
  131. background-color: rgb(45, 194, 47);
  132. }
  133. }
  134. .button-com.blue {
  135. color: #fff;
  136. background-color: #3385FF;
  137. border-color: #3385FF;
  138. &:active {
  139. background-color: #639cf1;
  140. }
  141. }
  142. .button-com.default {
  143. color: $fontColor2;
  144. border-color: #dddddd;
  145. &:active {
  146. background-color: #f5f5f5;
  147. }
  148. }
  149. .button-com.disable {
  150. color: #fff;
  151. background-color: #ccc;
  152. border-color: #ccc;
  153. }
  154. // ============ 后台 =============
  155. .admin-button-com {
  156. display: inline-block;
  157. color: #09C567;
  158. font-size: 26upx;
  159. padding: 10upx 20upx;
  160. background-color: #fff;
  161. border-radius: 8upx;
  162. border: 1px solid #09C567;
  163. text-align: center;
  164. line-height: 1;
  165. margin: 0;
  166. &:active {
  167. color: #09C567;
  168. border-color: #09C567;
  169. }
  170. }
  171. .admin-button-com::after{
  172. border:none;
  173. }
  174. .admin-button-com.middle {
  175. padding-top: 20upx;
  176. padding-bottom: 20upx;
  177. font-size: 28upx;
  178. }
  179. .admin-button-com.big {
  180. padding-top: 30upx;
  181. padding-bottom: 30upx;
  182. font-size: 32upx;
  183. }
  184. .admin-button-com.blue {
  185. color: #fff;
  186. background-color: #09C567;
  187. &:active {
  188. background-color: #09C567;
  189. }
  190. }
  191. .admin-button-com.default {
  192. color: $fontColor2;
  193. border-color: #dddddd;
  194. &:active {
  195. background-color: #f5f5f5;
  196. }
  197. }
  198. .admin-button-com.disable {
  199. color: #fff;
  200. background-color: #ccc;
  201. border-color: #ccc;
  202. }
  203. // ======================= 输入框公共样式 - start ====================
  204. .input-line-wrap {
  205. // 是否必填
  206. .required::before {
  207. content: "*";
  208. color: #f04545;
  209. font-size: 28upx;
  210. margin-right: 8upx;
  211. }
  212. // 公共
  213. .line-cell {
  214. &.between {
  215. justify-content: space-between;
  216. }
  217. // &.switch {
  218. // padding-top: 14upx;
  219. // padding-bottom: 14upx;
  220. // }
  221. .tui-title {
  222. width: 210upx;
  223. color: $fontColor2;
  224. flex-shrink: 0;
  225. }
  226. .tui-input {
  227. width: calc(100% - 210upx);
  228. font-size: 28upx;
  229. }
  230. .tui-textarea {
  231. width: 100%;
  232. font-size: 28upx;
  233. }
  234. .tui-operate {
  235. width: calc(100% - 210upx);
  236. font-size: 28upx;
  237. }
  238. .tui-placeholder {
  239. color: #ccc;
  240. }
  241. .tui-prompt {
  242. flex-shrink: 0;
  243. color: $fontColor2;
  244. margin-left: 20upx;
  245. }
  246. }
  247. .phcolor {
  248. color: #ccc;
  249. }
  250. .prompt-text {
  251. color: $fontColor3;
  252. margin-top: 20upx;
  253. margin-left: 30upx;
  254. }
  255. .btn-wrap {
  256. width: calc(100% - 60upx);
  257. margin: 60upx auto;
  258. .button-com {
  259. width: 100%;
  260. margin: 0 auto;
  261. }
  262. .admin-button-com {
  263. width: 100%;
  264. margin: 0 auto;
  265. }
  266. }
  267. }
  268. // ======================= 输入框公共样式 - end ====================
  269. // ======================= 弹窗输入框公共样式 - start ====================
  270. .app-modal-input-wrap {
  271. width: 100%;
  272. .inp-list-line {
  273. width: 100%;
  274. @include disFlex(center, space-between);
  275. font-size: 32upx;
  276. margin-bottom: 20upx;
  277. color: $fontColor2;
  278. text-align: left;
  279. &:last-child {
  280. margin-bottom: 0;
  281. }
  282. .line-label {
  283. margin-right: 20upx;
  284. flex-shrink: 0;
  285. }
  286. .line-input {
  287. width: 100%;
  288. @include disFlex(center, center);
  289. &.flex-strat {
  290. justify-content: flex-start;
  291. }
  292. .inp-input,
  293. .inp-select {
  294. width: 100%;
  295. height: 90upx;
  296. border: 2upx solid $borderColor;
  297. padding-left: 20upx;
  298. border-radius: 4upx;
  299. color: #333;
  300. }
  301. .inp-select {
  302. position: relative;
  303. line-height: 90upx;
  304. &:active {
  305. background-color: $backColor;
  306. }
  307. &::before {
  308. content: " ";
  309. height: 20upx;
  310. width: 20upx;
  311. border-width: 2upx 2upx 0 0;
  312. border-color: #bbbbbb;
  313. border-style: solid;
  314. transform: matrix(0.5, 0.5, -0.5, 0.5, 0, 0);
  315. position: absolute;
  316. top: 50%;
  317. margin-top: -12upx;
  318. right: 16upx;
  319. }
  320. }
  321. .inp-prompt {
  322. flex-shrink: 0;
  323. margin-left: 20upx;
  324. }
  325. .tui-placeholder {
  326. color: #ccc;
  327. }
  328. }
  329. }
  330. }
  331. // ======================= 弹窗输入框公共样式 - end ====================
  332. // ======================= admin 操作弹窗 公共 =========================
  333. .operate-icon-wrap {
  334. position: relative;
  335. width: 36upx;
  336. height: 36upx;
  337. .operate-icon {
  338. position: absolute;
  339. bottom: -18upx;
  340. left: -18upx;
  341. padding: 20upx;
  342. .iconcaozuojihuo {
  343. color: $mainColor !important;
  344. }
  345. }
  346. }
  347. .app-margin-left-20 {
  348. margin-left: 20upx;
  349. }
  350. // 带统计字数文本域
  351. .textarea_wrap {
  352. position: relative;
  353. textarea {
  354. display: block;
  355. background-color: #fff;
  356. padding: 30upx 31px;
  357. border: 0 none;
  358. width: 100%;
  359. height: 270upx;
  360. }
  361. .count {
  362. position: absolute;
  363. line-height: 1;
  364. right: 30upx;
  365. bottom: 30upx;
  366. font-size: 24upx;
  367. color: rgba(153, 153, 153, 1);
  368. }
  369. }
  370. /* 超出隐藏 */
  371. .ellipsis_line_com {
  372. overflow: hidden;
  373. white-space: nowrap;
  374. text-overflow: ellipsis;
  375. }
  376. /* 超出两行隐藏 */
  377. .ellipsis_two_line_com {
  378. text-overflow: -o-ellipsis-lastline;
  379. overflow: hidden;
  380. text-overflow: ellipsis;
  381. display: -webkit-box;
  382. -webkit-line-clamp: 2;
  383. line-clamp: 2;
  384. -webkit-box-orient: vertical;
  385. line-height: 1.3;
  386. }
  387. /* 黑色蒙版 */
  388. .black_mask {
  389. position: fixed;
  390. top: 0;
  391. bottom: 0;
  392. left: 0;
  393. right: 0;
  394. width: 100vw;
  395. height: 100vh;
  396. background-color: rgba(0, 0, 0, 0.7);
  397. z-index: 999;
  398. &.center {
  399. display: flex;
  400. justify-content: center;
  401. align-items: center;
  402. }
  403. }
  404. .app-footer {
  405. width: 100%;
  406. max-width: 750upx; /*no*/
  407. min-width: 320upx; /*no*/
  408. height: 100upx;
  409. position: fixed;
  410. text-align: center;
  411. bottom: 0;
  412. background: white;
  413. box-shadow: -4upx -4upx 6upx #eee;
  414. z-index: 100;
  415. display: flex;
  416. justify-content: center;
  417. align-items: center;
  418. & .add {
  419. width: 38upx;
  420. height: 38upx;
  421. margin-right: 20upx;
  422. }
  423. &.open_btn {
  424. justify-content: flex-end;
  425. .admin-button-com {
  426. margin-right: 30upx;
  427. }
  428. }
  429. }
  430. .noMore {
  431. color: #969799;
  432. font-size: 24upx;
  433. line-height: 50upx;
  434. text-align: center;
  435. padding: 30upx 0;
  436. }
  437. li {
  438. list-style: none;
  439. }
  440. // .app-seach-box {
  441. // position: relative;
  442. // z-index: 999;
  443. // & .app-filter_wrap {
  444. // padding-left: 30upx;
  445. // display: flex;
  446. // justify-content: center;
  447. // align-items: center;
  448. // position: relative;
  449. // color: #666666;
  450. // border-right: 1px;
  451. // & > view {
  452. // padding: 0 5upx;
  453. // }
  454. // &::after {
  455. // content: '';
  456. // height: 60upx;
  457. // position: absolute;
  458. // background-color: #dddddd;
  459. // width: 1Px;
  460. // left: 0;
  461. // top: 50%;
  462. // transform: translate(0 ,-50%);
  463. // }
  464. // }
  465. // }
  466. .includecontent p img {
  467. width: 100%;
  468. height: auto;
  469. }
  470. .uni-overflow-hidden {
  471. overflow: hidden;
  472. height: 100vh;
  473. }
  474. .inputTip_box {
  475. position: relative;
  476. width: 100%;
  477. .inputTip {
  478. position: absolute;
  479. top: 50%;
  480. transform: translateY(-50%);
  481. right: 0;
  482. color: #f44;
  483. font-size: 28upx;
  484. }
  485. }
  486. .text-overflow {
  487. overflow: hidden;
  488. text-overflow: ellipsis;
  489. white-space: nowrap;
  490. }
  491. .animate-open {
  492. transform: rotate(180);
  493. }
  494. .animate-close {
  495. transform: rotate(0);
  496. }
  497. //隐藏滚动条
  498. ::-webkit-scrollbar {
  499. width: 0;
  500. height: 0;
  501. color: transparent;
  502. }
  503. // 圆角背景
  504. .app-round_bg {
  505. width: 100%;
  506. position: absolute;
  507. background-color: #3385FF;
  508. height: 299upx;
  509. border-radius: 0upx 0upx 83upx 83upx;
  510. }
  511. .table-view {
  512. .table-header {
  513. display: flex;
  514. padding: 20upx 30upx;
  515. box-shadow: 0upx 1px 0upx 0upx #eeeeee;
  516. color: #999999;
  517. .table-th {
  518. margin:0 10upx;
  519. white-space: nowrap;
  520. }
  521. }
  522. .table-tr {
  523. display: flex;
  524. align-items: center;
  525. padding: 20upx 30upx;
  526. border-bottom: 1px solid #eeeeee;
  527. color: #999999;
  528. .table-td {
  529. margin:0 10upx;
  530. .warn {
  531. color: #ffaf1d;
  532. }
  533. .fail {
  534. color: #f51608;
  535. }
  536. .success {
  537. color: #09bb07;
  538. }
  539. .info {
  540. color: #333;
  541. }
  542. }
  543. }
  544. }