index.wxss 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. .wux-popup {
  2. position: fixed;
  3. z-index: 1000;
  4. width: 80%;
  5. max-width: 600rpx
  6. }
  7. .wux-popup-widtn {
  8. width: 100%;
  9. max-width: 100%
  10. }
  11. .wux-popup-position.wux-popup-position--center .wux-popup {
  12. top: 50%;
  13. left: 50%;
  14. transform: translate(-50%,-50%)
  15. }
  16. .wux-popup-position.wux-popup-position--center .wux-popup__content {
  17. border-radius: 8rpx
  18. }
  19. .wux-popup-position.wux-popup-position--center .wux-popup__hd {
  20. padding: 1.3em 1.6em .5em
  21. }
  22. .wux-popup-position.wux-popup-position--center .wux-popup__bd {
  23. padding: 0 1.6em .8em
  24. }
  25. .wux-popup-position.wux-popup-position--center .wux-popup__ft::after {
  26. content: " ";
  27. position: absolute;
  28. left: 0;
  29. top: 0;
  30. right: 0;
  31. height: 1PX;
  32. border-top: 1PX solid #d9d9d9;
  33. color: #d9d9d9;
  34. transform-origin: 0 0;
  35. transform: scaleY(.5)
  36. }
  37. .wux-popup-position.wux-popup-position--top .wux-popup {
  38. position: fixed;
  39. left: 0;
  40. top: 0;
  41. width: 100%;
  42. max-width: 100%
  43. }
  44. .wux-popup-position.wux-popup-position--right .wux-popup {
  45. position: fixed;
  46. top: 0;
  47. right: 0;
  48. width: 80%;
  49. max-width: 100%;
  50. height: 100%;
  51. max-height: 100%
  52. }
  53. .wux-popup-position.wux-popup-position--bottom .wux-popup {
  54. position: fixed;
  55. left: 0;
  56. bottom: 0;
  57. width: 100%;
  58. max-width: 100%
  59. }
  60. .wux-popup-position.wux-popup-position--left .wux-popup {
  61. position: fixed;
  62. left: 0;
  63. top: 0;
  64. width: 80%;
  65. max-width: 100%;
  66. height: 100%;
  67. max-height: 100%
  68. }
  69. .wux-popup-position.wux-popup-position--is-iphonex .wux-popup__content {
  70. padding-bottom: 68rpx
  71. }
  72. .wux-popup__content {
  73. position: relative;
  74. background-color: #fff;
  75. border: 0;
  76. background-clip: padding-box;
  77. height: 100%;
  78. text-align: center;
  79. overflow: hidden
  80. }
  81. .wux-popup__title {
  82. font-weight: 400;
  83. font-size: 36rpx;
  84. color: rgba(0,0,0,.85)
  85. }
  86. .wux-popup__bd {
  87. min-height: 80rpx;
  88. font-size: 30rpx;
  89. line-height: 1.3;
  90. word-wrap: break-word;
  91. word-break: break-all;
  92. color: rgba(0,0,0,.45)
  93. }
  94. .wux-popup__ft {
  95. position: relative;
  96. line-height: 96rpx;
  97. font-size: 36rpx;
  98. display: -ms-flexbox;
  99. display: flex
  100. }
  101. .wux-popup__close {
  102. border: 0;
  103. padding: 6rpx;
  104. background-color: transparent;
  105. outline: 0;
  106. position: absolute;
  107. top: 12rpx;
  108. right: 12rpx;
  109. height: 42rpx;
  110. width: 42rpx
  111. }
  112. .wux-popup__close-x {
  113. display: inline-block;
  114. width: 30rpx;
  115. height: 30rpx;
  116. background-repeat: no-repeat;
  117. background-size: cover;
  118. background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2230%22%20height%3D%2230%22%20viewBox%3D%220%200%2030%2030%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20fill%3D%22%23888%22%20fill-rule%3D%22evenodd%22%3E%3Cpath%20d%3D%22M1.414%200l28.284%2028.284-1.414%201.414L0%201.414z%22%2F%3E%3Cpath%20d%3D%22M28.284%200L0%2028.284l1.414%201.414L29.698%201.414z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")
  119. }