common.scss 9.6 KB

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