common.scss 5.1 KB

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