index.wxss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. .wux-popup {
  2. position: fixed;
  3. z-index: 1000;
  4. width: 80%;
  5. max-width: 600rpx
  6. }
  7. .wux-popup__content {
  8. position: relative;
  9. background-color: #fff;
  10. border: 0;
  11. background-clip: padding-box;
  12. height: 100%;
  13. text-align: center;
  14. overflow: hidden
  15. }
  16. .wux-popup__title {
  17. font-weight: 400;
  18. font-size: 36rpx;
  19. color: rgba(0,0,0,.85)
  20. }
  21. .wux-popup__bd {
  22. min-height: 80rpx;
  23. font-size: 30rpx;
  24. line-height: 1.3;
  25. word-wrap: break-word;
  26. word-break: break-all;
  27. color: rgba(0,0,0,.45)
  28. }
  29. .wux-popup__ft {
  30. position: relative;
  31. line-height: 96rpx;
  32. font-size: 36rpx;
  33. display: flex
  34. }
  35. .wux-popup__close {
  36. border: 0;
  37. padding: 6rpx;
  38. background-color: transparent;
  39. outline: 0;
  40. position: absolute;
  41. top: 12rpx;
  42. right: 12rpx;
  43. height: 42rpx;
  44. width: 42rpx;
  45. display: flex;
  46. justify-content: center;
  47. align-items: center
  48. }
  49. .wux-popup__close-x {
  50. display: inline-block;
  51. width: 30rpx;
  52. height: 30rpx;
  53. background-repeat: no-repeat;
  54. background-size: cover;
  55. 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")
  56. }
  57. .wux-popup-position.wux-popup-position--center .wux-popup {
  58. top: 50%;
  59. left: 50%;
  60. transform: translate(-50%,-50%)
  61. }
  62. .wux-popup-position.wux-popup-position--center .wux-popup__content {
  63. border-radius: 8rpx
  64. }
  65. .wux-popup-position.wux-popup-position--center .wux-popup__hd {
  66. padding: 1.3em 1.6em .5em
  67. }
  68. .wux-popup-position.wux-popup-position--center .wux-popup__bd {
  69. padding: 0 1.6em .8em
  70. }
  71. .wux-popup-position.wux-popup-position--center .wux-popup__ft::after {
  72. content: " ";
  73. position: absolute;
  74. left: 0;
  75. top: 0;
  76. right: 0;
  77. height: 1PX;
  78. border-top: 1PX solid #d9d9d9;
  79. color: #d9d9d9;
  80. transform-origin: 0 0;
  81. transform: scaleY(.5)
  82. }
  83. .wux-popup-position.wux-popup-position--top .wux-popup {
  84. position: fixed;
  85. left: 0;
  86. top: 0;
  87. width: 100%;
  88. max-width: 100%
  89. }
  90. .wux-popup-position.wux-popup-position--top .wux-popup__close {
  91. top: unset;
  92. bottom: 12rpx
  93. }
  94. .wux-popup-position.wux-popup-position--right .wux-popup {
  95. position: fixed;
  96. top: 0;
  97. right: 0;
  98. width: 80%;
  99. max-width: 100%;
  100. height: 100%;
  101. max-height: 100%
  102. }
  103. .wux-popup-position.wux-popup-position--right .wux-popup__close {
  104. right: unset;
  105. left: 12rpx
  106. }
  107. .wux-popup-position.wux-popup-position--bottom .wux-popup {
  108. position: fixed;
  109. left: 0;
  110. bottom: 0;
  111. width: 100%;
  112. max-width: 100%
  113. }
  114. .wux-popup-position.wux-popup-position--left .wux-popup {
  115. position: fixed;
  116. left: 0;
  117. top: 0;
  118. width: 80%;
  119. max-width: 100%;
  120. height: 100%;
  121. max-height: 100%
  122. }