common.scss 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  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: 200rpx;
  78. height: 200rpx;
  79. margin-bottom: 20rpx;
  80. }
  81. &-image {
  82. width: 290rpx;
  83. height: 230rpx;
  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: 600rpx;
  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: 44rpx;
  107. margin-top: 40rpx;
  108. position: absolute;
  109. bottom: 10%;
  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. .product-rich-text{
  235. rich-text.h4,rich-text.p,rich-text.h2{
  236. padding: 0 24rpx;
  237. }
  238. }
  239. .rich-text-temp {
  240. rich-text.div, rich-text.h4, rich-text.p {
  241. line-height: 58rpx;
  242. }
  243. rich-text.h4, rich-text.p {
  244. font-size: 30rpx;
  245. }
  246. rich-text.div {
  247. margin-bottom: 30rpx;
  248. font-size: 28rpx;
  249. }
  250. rich-text.img {
  251. width: 100%;
  252. height: auto;
  253. }
  254. }
  255. .form-item {
  256. display: flex;
  257. color: $text-color;
  258. margin-top: 74rpx;
  259. font-size: 26rpx;
  260. .asterisk {
  261. color: #FF2A2A;
  262. margin-right: 10rpx;
  263. }
  264. }
  265. // 表单提交button
  266. .submit-btn {
  267. position: fixed;
  268. left: 24rpx;
  269. right: 24rpx;
  270. bottom: 34rpx;
  271. z-index: 95;
  272. display: flex;
  273. align-items: center;
  274. justify-content: center;
  275. width: 702rpx;
  276. height: 88rpx;
  277. font-size: $font-size-28;
  278. line-height: 88rpx;
  279. color: #FFFFFF;
  280. text-align: center;
  281. background: $btn-confirm;
  282. border-radius: 44rpx;
  283. }
  284. // 小红点
  285. .uni-badge--small {
  286. -webkit-transform: scale(.8);
  287. -ms-transform: scale(.8);
  288. transform: scale(.8);
  289. -webkit-transform-origin: center center;
  290. -ms-transform-origin: center center;
  291. transform-origin: center center;
  292. }
  293. .uni-badge {
  294. font-family: 'Helvetica Neue', Helvetica, sans-serif;
  295. -webkit-box-sizing: border-box;
  296. box-sizing: border-box;
  297. font-size: 12px;
  298. line-height: 1;
  299. display: inline-block;
  300. padding: 3px 6px;
  301. color: #333;
  302. border-radius: 100px;
  303. background-color: #f1f1f1;
  304. }
  305. .uni-badge-error {
  306. color: #fff;
  307. background-color: #fc464c;
  308. }
  309. /* 加入购物模态层*/
  310. @keyframes showPopup {
  311. 0% {
  312. opacity: 0;
  313. }
  314. 100% {
  315. opacity: 1;
  316. }
  317. }
  318. @keyframes hidePopup {
  319. 0% {
  320. opacity: 1;
  321. }
  322. 100% {
  323. opacity: 0;
  324. }
  325. }
  326. @keyframes showLayer {
  327. 0% {
  328. transform: translateY(0);
  329. }
  330. 100% {
  331. transform: translateY(-100%);
  332. }
  333. }
  334. @keyframes hideLayer {
  335. 0% {
  336. transform: translateY(-100%);
  337. }
  338. 100% {
  339. transform: translateY(0);
  340. }
  341. }
  342. @keyframes showAmnation {
  343. 0% {
  344. top: -12rpx;
  345. opacity: 0;
  346. }
  347. 50% {
  348. top: -60rpx;
  349. opacity: 1;
  350. }
  351. 100% {
  352. top: -100rpx;
  353. opacity: 0;
  354. }
  355. }
  356. @keyframes hideAmnation {
  357. 0% {
  358. top: -100rpx;
  359. opacity: 0;
  360. }
  361. 100% {
  362. top: -12rpx;
  363. opacity: 0;
  364. }
  365. }