app.scss 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. /* 这里是你自己写的全局css样式 */
  2. $u-theme-color: #2080f0; // 全局主题色
  3. $u-sub-color: #2080f0; // 全局辅助色
  4. // 标题字号规范
  5. $u-hd: 68rpx; // 超大标题
  6. $u-h1: 56rpx; // 一级
  7. $u-h2: 44rpx; // 二级
  8. $u-h3: 40rpx; // 三级
  9. // 正文字号规范
  10. $u-p: 32rpx; // 着重
  11. $u-p1: 28rpx; // 正文
  12. $u-p2: 24rpx; // 描述
  13. $u-sub: 20rpx; // 注脚
  14. // 颜色规范
  15. $u-main-color: #303133;
  16. $u-content-color: #606266;
  17. $u-tips-color: #909399;
  18. $u-light-color: #c0c4cc;
  19. $u-border-color: #e4e7ed;
  20. $u-bg-color: #f3f4f6;
  21. $u-type-primary: #2979ff;
  22. $u-type-primary-light: #ecf5ff;
  23. $u-type-primary-disabled: #a0cfff;
  24. $u-type-primary-dark: #2b85e4;
  25. $u-type-warning: #ff9900;
  26. $u-type-warning-disabled: #fcbd71;
  27. $u-type-warning-dark: #f29100;
  28. $u-type-warning-light: #fdf6ec;
  29. $u-type-success: #19be6b;
  30. $u-type-success-disabled: #71d5a1;
  31. $u-type-success-dark: #18b566;
  32. $u-type-success-light: #dbf1e1;
  33. $u-type-error: #fa3534;
  34. $u-type-error-disabled: #fab6b6;
  35. $u-type-error-dark: #dd6161;
  36. $u-type-error-light: #fef0f0;
  37. $u-type-info: #909399;
  38. $u-type-info-disabled: #c8c9cc;
  39. $u-type-info-dark: #82848a;
  40. $u-type-info-light: #f4f4f5;
  41. $u-form-item-height: 70rpx;
  42. $u-form-item-border-color: #dcdfe6;
  43. // 其他自定义
  44. .page {
  45. background-color: $u-bg-color;
  46. padding: 20rpx;
  47. }
  48. .empty-wrap {
  49. margin-top: 200rpx;
  50. width: 100%;
  51. display: flex;
  52. justify-content: center;
  53. align-items: center;
  54. }
  55. .content-page {
  56. min-height: 100vh;
  57. background-color: #fff;
  58. }
  59. .footer {
  60. display: flex;
  61. align-items: center;
  62. color: $u-tips-color;
  63. width: 100%;
  64. padding: 20rpx 0;
  65. justify-content: center;
  66. }
  67. // 阴影
  68. .box-shadow {
  69. box-shadow: 0rpx 2rpx 4rpx 0 rgba(0, 0, 0, 0.2);
  70. }
  71. // flex换行bug。
  72. .flex-empty {
  73. visibility: hidden;
  74. width: 120rpx;
  75. height: 0rpx;
  76. }
  77. //
  78. .bwin-btn-100 {
  79. width: 100%;
  80. }
  81. // popup
  82. .bwin-popup {
  83. display: flex;
  84. flex-direction: column;
  85. width: 100%;
  86. position: relative;
  87. min-height: 100%;
  88. overflow: hidden;
  89. .popup-header {
  90. z-index: 2;
  91. width: 80%;
  92. position: fixed;
  93. padding: 20rpx 0;
  94. text-align: center;
  95. font-size: 32rpx;
  96. color:#fff;
  97. font-weight: bold;
  98. background-color: $u-theme-color;
  99. border-top-left-radius: 20rpx;
  100. border-top-right-radius: 20rpx;
  101. }
  102. .popup-body {
  103. z-index: 1;
  104. position: relative;
  105. top: 90rpx;
  106. margin-bottom: 90rpx;
  107. padding: 20rpx;
  108. font-size: $u-p;
  109. overflow-y: scroll;
  110. }
  111. .popup-footer {
  112. position: relative;
  113. left: 0;
  114. bottom: 20rpx;
  115. width: 100%;
  116. display: flex;
  117. justify-content: space-around;
  118. }
  119. }
  120. /* #ifdef H5 */
  121. .uni-mask,
  122. .uni-modal,
  123. uni-toast,
  124. uni-modal,
  125. .uni-actionsheet {
  126. z-index: 999999 !important;
  127. }
  128. /* #endif */