common.scss 5.8 KB

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