common.scss 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  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: 280rpx;
  130. position: absolute;
  131. background: $bg-color;
  132. left: 0;
  133. right: 0;
  134. bottom: 0;
  135. top: 0;
  136. margin: auto;
  137. border-radius: 20rpx;
  138. .alert-content{
  139. width: 466rpx;
  140. height: 100rpx;
  141. padding: 40rpx 26rpx;
  142. .t-h1,.t-p{
  143. font-size: $font-size-28;
  144. line-height: 40rpx;
  145. color: #333333;
  146. text-align:justify;
  147. padding: 10rpx;
  148. }
  149. .t-h1{
  150. border-bottom: 1px solid $border-color;
  151. }
  152. }
  153. .model-content{
  154. width: 466rpx;
  155. height: 152rpx;
  156. padding: 40rpx 26rpx;
  157. display: flex;
  158. flex-direction: column;
  159. align-items: center;
  160. .sm{
  161. display: flex;
  162. flex: 1;
  163. line-height: 152rpx;
  164. flex-direction: column;
  165. align-items: center;
  166. text-align: center;
  167. font-size: $font-size-28;
  168. color: #333333;
  169. }
  170. }
  171. .alert-btn{
  172. width: 80%;
  173. height: 70rpx;
  174. display: flex;
  175. margin: 0 auto;
  176. .btn{
  177. flex: 1;
  178. line-height: 70rpx;
  179. font-size: $font-size-28;
  180. text-align: center;
  181. color: #FFFFFF;
  182. border-radius: 10rpx;
  183. padding: 0;
  184. margin: 0 15rpx;
  185. &.btn-cancel{
  186. background: $btn-cancel;
  187. }
  188. &.btn-confirm{
  189. background: $btn-confirm;
  190. }
  191. }
  192. }
  193. }
  194. }
  195. /*
  196. *上滑加载更多
  197. */
  198. .load-more {
  199. font-size: $font-size-24;
  200. color: #666;
  201. text-align: center;
  202. width: 100%;
  203. }
  204. /*底部loading*/
  205. .loading-wrapper {
  206. width: 100%;
  207. height: 60rpx;
  208. padding: 25rpx 0;
  209. color: #333;
  210. font-size: 24rpx;
  211. display: flex;
  212. align-items: center;
  213. justify-content: center;
  214. }
  215. .loading-wrapper-now text {
  216. margin-left: 6rpx;
  217. font-weight: bold;
  218. }
  219. .loading-wrapper-btm {
  220. color: #eee;
  221. .btm-text {
  222. color: #333;
  223. padding: 0 10rpx;
  224. }
  225. }
  226. /*富文本样式调整*/
  227. .rich-text-temp {
  228. rich-text.div, rich-text.h4, rich-text.p {
  229. line-height: 58rpx;
  230. }
  231. rich-text.h4, rich-text.p {
  232. font-size: 30rpx;
  233. }
  234. rich-text.div {
  235. margin-bottom: 30rpx;
  236. font-size: 28rpx;
  237. }
  238. rich-text.img {
  239. width: 100%;
  240. height: auto;
  241. }
  242. }
  243. .form-item {
  244. display: flex;
  245. color: $text-color;
  246. margin-top: 74rpx;
  247. font-size: 26rpx;
  248. .asterisk {
  249. color: #FF2A2A;
  250. margin-right: 10rpx;
  251. }
  252. }
  253. // 表单提交button
  254. .submit-btn {
  255. position: fixed;
  256. left: 24rpx;
  257. right: 24rpx;
  258. bottom: 34rpx;
  259. z-index: 95;
  260. display: flex;
  261. align-items: center;
  262. justify-content: center;
  263. width: 702rpx;
  264. height: 88rpx;
  265. font-size: $font-size-28;
  266. line-height: 88rpx;
  267. color: #FFFFFF;
  268. text-align: center;
  269. background: $btn-confirm;
  270. border-radius: 14rpx;
  271. }
  272. // 小红点
  273. .uni-badge--small {
  274. -webkit-transform: scale(.8);
  275. -ms-transform: scale(.8);
  276. transform: scale(.8);
  277. -webkit-transform-origin: center center;
  278. -ms-transform-origin: center center;
  279. transform-origin: center center;
  280. }
  281. .uni-badge {
  282. font-family: 'Helvetica Neue', Helvetica, sans-serif;
  283. -webkit-box-sizing: border-box;
  284. box-sizing: border-box;
  285. font-size: 12px;
  286. line-height: 1;
  287. display: inline-block;
  288. padding: 3px 6px;
  289. color: #333;
  290. border-radius: 100px;
  291. background-color: #f1f1f1;
  292. }
  293. .uni-badge-error {
  294. color: #fff;
  295. background-color: #dd524d;
  296. }