index.scss 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. view {
  2. display: block;
  3. }
  4. .nut-pullrefresh {
  5. position: relative;
  6. height: 100%;
  7. .pullrefresh-top {
  8. position: absolute;
  9. left: 0;
  10. overflow: hidden;
  11. color: #969799;
  12. font-size: 14px;
  13. line-height: 50px;
  14. text-align: center;
  15. &.pullrefresh-top-v {
  16. width: 100%;
  17. height: 50px;
  18. -webkit-transform: translateY(-100%);
  19. transform: translateY(-100%);
  20. }
  21. &.pullrefresh-top-h {
  22. width: 50px;
  23. height: 100%;
  24. -webkit-transform: translateX(-100%);
  25. transform: translateX(-100%);
  26. writing-mode: tb-rl;
  27. }
  28. }
  29. .pullrefresh-content {
  30. height: 100%;
  31. overflow: auto;
  32. background: #fff;
  33. }
  34. .pullrefresh-bottom {
  35. position: absolute;
  36. overflow: hidden;
  37. color: #969799;
  38. font-size: 14px;
  39. line-height: 50px;
  40. text-align: center;
  41. &.pullrefresh-bottom-v {
  42. left: 0;
  43. bottom: 0;
  44. width: 100%;
  45. height: 0px;
  46. -webkit-transform: translateY(100%);
  47. transform: translateY(100%);
  48. }
  49. &.pullrefresh-bottom-h {
  50. top: 0;
  51. right: 0;
  52. width: 50px;
  53. height: 100%;
  54. -webkit-transform: translateX(100%);
  55. transform: translateX(100%);
  56. writing-mode: tb-rl;
  57. }
  58. }
  59. }