common.scss 5.1 KB

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