index.wxss 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. .nut-popup-slide-center-enter-active, .nut-popup-slide-center-leave-active {
  2. transition-property: opacity;
  3. transition-timing-function: ease;
  4. }
  5. .nut-popup-slide-center-enter-from, .nut-popup-slide-center-leave-to {
  6. opacity: 0;
  7. }
  8. .nut-popup-slide-top-enter-from, .nut-popup-slide-top-leave-active {
  9. transform: translate(0, -100%);
  10. }
  11. .nut-popup-slide-right-enter-from, .nut-popup-slide-right-leave-active {
  12. transform: translate(100%, 0);
  13. }
  14. .nut-popup-slide-bottom-enter-from, .nut-popup-slide-bottom-leave-active {
  15. transform: translate(0, 100%);
  16. }
  17. .nut-popup-slide-left-enter-from, .nut-popup-slide-left-leave-active {
  18. transform: translate(-100%, 0);
  19. }
  20. .nut-popup--center {
  21. top: 50%;
  22. left: 50%;
  23. transform: translate(-50%, -50%);
  24. }
  25. .nut-popup--center.round {
  26. border-radius: 20px;
  27. }
  28. .nut-popup--bottom {
  29. bottom: 0;
  30. left: 0;
  31. width: 100%;
  32. }
  33. .nut-popup--bottom.round {
  34. border-radius: 20px 20px 0 0;
  35. }
  36. .nut-popup--bottom--safebottom {
  37. padding-bottom: constant(safe-area-inset-bottom);
  38. padding-bottom: env(safe-area-inset-bottom);
  39. }
  40. .nut-popup--right {
  41. top: 0;
  42. right: 0;
  43. }
  44. .nut-popup--right.round {
  45. border-radius: 20px 0 0 20px;
  46. }
  47. .nut-popup--left {
  48. top: 0;
  49. left: 0;
  50. }
  51. .nut-popup--left.round {
  52. border-radius: 0 20px 20px 0;
  53. }
  54. .nut-popup--top {
  55. top: 0;
  56. left: 0;
  57. width: 100%;
  58. }
  59. .nut-popup--top.round {
  60. border-radius: 0 0 20px 20px;
  61. }
  62. .nut-popup {
  63. position: fixed;
  64. max-height: 100%;
  65. overflow-y: auto;
  66. background-color: #fff;
  67. -webkit-overflow-scrolling: touch;
  68. }
  69. .nut-popup__close-icon {
  70. position: absolute !important;
  71. z-index: 1;
  72. color: #969799;
  73. font-size: 18px;
  74. cursor: pointer;
  75. width: 30px;
  76. height: 30px;
  77. line-height: 30px;
  78. text-align: center;
  79. }
  80. .nut-popup__close-icon:active {
  81. opacity: 0.7;
  82. }
  83. .nut-popup__close-icon--top-left {
  84. top: 16px;
  85. left: 16px;
  86. }
  87. .nut-popup__close-icon--top-right {
  88. top: 16px;
  89. right: 16px;
  90. }
  91. .nut-popup__close-icon--bottom-left {
  92. bottom: 16px;
  93. left: 16px;
  94. }
  95. .nut-popup__close-icon--bottom-right {
  96. right: 16px;
  97. bottom: 16px;
  98. }