common.scss 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. .clearfix:after {
  2. content: ".";
  3. display: block;
  4. height: 0;
  5. clear: both;
  6. visibility: hidden;
  7. }
  8. .container{
  9. width: 100%;
  10. height: 100%;
  11. }
  12. /*android一像素兼容*/
  13. ::-webkit-scrollbar{
  14. width: 0;
  15. height: 0;
  16. color: transparent;
  17. display:none;
  18. }
  19. button {
  20. display: block;
  21. margin-left: auto;
  22. margin-right: auto;
  23. padding-left: 0;
  24. padding-right: 0;
  25. box-sizing: border-box;
  26. font-size: $font-size-28;
  27. text-align: center;
  28. text-decoration: none;
  29. line-height: 36rpx;
  30. border-radius: 0;
  31. -webkit-tap-highlight-color: transparent;
  32. overflow: hidden;
  33. color: $text-color;
  34. background-color: #FFFFFF;
  35. }
  36. button::after{
  37. border: none;
  38. border-radius: 0;
  39. }
  40. /*输入框样式*/
  41. .text-input{
  42. display: flex;
  43. align-items: center;
  44. position: relative;
  45. width: 654rpx;
  46. height: 40rpx;
  47. padding: 24rpx;
  48. margin: 0 auto;
  49. background: #F7F7F7;
  50. .input{
  51. width: 100%;
  52. height: 100%;
  53. background: #F7F7F7;
  54. font-size: $font-size-28;
  55. line-height: 40rpx;
  56. color: #333333;
  57. }
  58. &.b-b{
  59. margin: 32rpx 0;
  60. }
  61. }
  62. /*空列表显示样式*/
  63. .empty-container {
  64. display: flex;
  65. align-items: center;
  66. justify-content: center;
  67. flex-direction: column;
  68. position: fixed;
  69. left: 0;
  70. top: 0;
  71. right: 0;
  72. bottom: 0;
  73. background: $bg-color;
  74. // padding-bottom: 120rpx;
  75. border-top: 1px solid #EBEBEB;
  76. &-image {
  77. width: 382rpx;
  78. height: 310rpx;
  79. margin-bottom: 10rpx;
  80. margin-top: -120rpx;
  81. }
  82. .error-text{
  83. font-size: $font-size-28;
  84. color: $text-color;
  85. line-height: 88rpx;
  86. }
  87. .txt{
  88. font-size: $font-size-28;
  89. color: $text-color;
  90. line-height: 44rpx;
  91. }
  92. .login-btn{
  93. width: 702rpx;
  94. height: 88rpx;
  95. font-size: $font-size-28;
  96. line-height: 88rpx;
  97. color: #FFFFFF;
  98. margin: 0 auto;
  99. text-align: center;
  100. background: $btn-confirm;
  101. border-radius: 14rpx;
  102. margin-top: 40rpx;
  103. }
  104. }
  105. /*弹窗*/
  106. .model-warp.none{
  107. display: none;
  108. }
  109. .model-warp.show{
  110. display: block;
  111. }
  112. .model-warp{
  113. width: 100%;
  114. height: 100%;
  115. background: rgba(0,0,0,.5);
  116. position: fixed;
  117. top: 0;
  118. left: 0;
  119. z-index: 8888;
  120. transition: all 0.4s;
  121. &.none{
  122. display: none;
  123. }
  124. &.show{
  125. display: block;
  126. }
  127. .model-alert{
  128. width: 518rpx;
  129. height: 316rpx;
  130. position: absolute;
  131. background: $bg-color;
  132. left: 0;
  133. right: 0;
  134. bottom: 0;
  135. top: 0;
  136. margin: auto;
  137. .alert-content{
  138. width: 466rpx;
  139. height: 152rpx;
  140. padding: 40rpx 26rpx;
  141. .t-h1,.t-p{
  142. font-size: $font-size-28;
  143. line-height: 40rpx;
  144. color: #333333;
  145. text-align:justify;
  146. padding: 10rpx;
  147. }
  148. .t-h1{
  149. border-bottom: 1px solid $border-color;
  150. }
  151. }
  152. .model-content{
  153. width: 466rpx;
  154. height: 152rpx;
  155. padding: 40rpx 26rpx;
  156. display: flex;
  157. flex-direction: column;
  158. align-items: center;
  159. .sm{
  160. display: flex;
  161. flex: 1;
  162. line-height: 152rpx;
  163. flex-direction: column;
  164. align-items: center;
  165. text-align: center;
  166. font-size: $font-size-28;
  167. color: #333333;
  168. }
  169. }
  170. .alert-btn{
  171. width: 100%;
  172. height: 88rpx;
  173. display: flex;
  174. .btn{
  175. flex: 1;
  176. line-height: 88rpx;
  177. font-size: $font-size-28;
  178. text-align: center;
  179. color: #FFFFFF;
  180. border-radius: 14rpx;
  181. padding: 0;
  182. &.btn-cancel{
  183. background: $btn-cancel;
  184. }
  185. &.btn-confirm{
  186. background: $btn-confirm;
  187. }
  188. }
  189. }
  190. }
  191. }
  192. /*
  193. *上滑加载更多
  194. */
  195. .load-more {
  196. font-size: $font-size-24;
  197. color: #666;
  198. text-align: center;
  199. width: 100%;
  200. }
  201. /*底部loading*/
  202. .loading-wrapper {
  203. width: 100%;
  204. height: 60rpx;
  205. padding: 25rpx 0;
  206. color: #333;
  207. font-size: 24rpx;
  208. display: flex;
  209. align-items: center;
  210. justify-content: center;
  211. }
  212. .loading-wrapper-now text {
  213. margin-left: 6rpx;
  214. font-weight: bold;
  215. }
  216. .loading-wrapper-btm {
  217. color: #eee;
  218. .btm-text {
  219. color: #333;
  220. padding: 0 10rpx;
  221. }
  222. }
  223. /*富文本样式调整*/
  224. .rich-text-temp {
  225. rich-text.div, rich-text.h4, rich-text.p {
  226. line-height: 58rpx;
  227. }
  228. rich-text.h4, rich-text.p {
  229. font-size: 30rpx;
  230. }
  231. rich-text.div {
  232. margin-bottom: 30rpx;
  233. font-size: 28rpx;
  234. }
  235. rich-text.img {
  236. width: 100%;
  237. height: auto;
  238. }
  239. }
  240. .form-item {
  241. display: flex;
  242. color: $text-color;
  243. margin-top: 74rpx;
  244. font-size: 26rpx;
  245. .asterisk {
  246. color: #FF2A2A;
  247. margin-right: 10rpx;
  248. }
  249. }
  250. // 表单提交button
  251. .submit-btn {
  252. position: fixed;
  253. left: 24rpx;
  254. right: 24rpx;
  255. bottom: 34rpx;
  256. z-index: 95;
  257. display: flex;
  258. align-items: center;
  259. justify-content: center;
  260. width: 702rpx;
  261. height: 88rpx;
  262. font-size: $font-size-28;
  263. line-height: 88rpx;
  264. color: #FFFFFF;
  265. text-align: center;
  266. background: $btn-confirm;
  267. border-radius: 14rpx;
  268. }
  269. // 小红点
  270. .uni-badge--small {
  271. -webkit-transform: scale(.8);
  272. -ms-transform: scale(.8);
  273. transform: scale(.8);
  274. -webkit-transform-origin: center center;
  275. -ms-transform-origin: center center;
  276. transform-origin: center center;
  277. }
  278. .uni-badge {
  279. font-family: 'Helvetica Neue', Helvetica, sans-serif;
  280. -webkit-box-sizing: border-box;
  281. box-sizing: border-box;
  282. font-size: 12px;
  283. line-height: 1;
  284. display: inline-block;
  285. padding: 3px 6px;
  286. color: #333;
  287. border-radius: 100px;
  288. background-color: #f1f1f1;
  289. }
  290. .uni-badge-error {
  291. color: #fff;
  292. background-color: #dd524d;
  293. }