privacyPopup.wxss 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. .mask {
  2. position: absolute;
  3. top: 0;
  4. left: 0;
  5. width: 100%;
  6. height: 100%;
  7. background-color: rgba(0, 0, 0, 0.5);
  8. /*黑色半透明背景*/
  9. z-index: 999999998;
  10. }
  11. .weui-half-screen-dialog {
  12. position: fixed;
  13. width: 80%;
  14. /* top 坐标居中 */
  15. top: 50%;
  16. /* left 坐标居中 */
  17. left: 50%;
  18. /* 由于元素的高度是100px 所以此处设置为-50px以达到整个元素上移自己高度的一半,达到垂直居中 */
  19. margin-top: -50%;
  20. /* 由于元素的高度是100px 所以此处设置为-50px以达到整个元素左移自己宽度的一半,达到水平居中 */
  21. margin-left: -39%;
  22. min-height: 510rpx;
  23. max-height: 55%;
  24. z-index: 999999999;
  25. line-height: 1.4;
  26. background-color: #fff;
  27. color: hsla(0, 0%, 100%, 0.8);
  28. border-radius: 24rpx;
  29. overflow: hidden;
  30. padding: 0 48rpx;
  31. /* padding: 0 calc(48rpx + constant(safe-area-inset-right)) constant(safe-area-inset-bottom) calc(48rpx + constant(safe-area-inset-left));
  32. padding: 0 calc(48rpx + env(safe-area-inset-right)) env(safe-area-inset-bottom) calc(48rpx + env(safe-area-inset-left)); */
  33. box-sizing: border-box;
  34. display: -webkit-box;
  35. display: -webkit-flex;
  36. display: flex;
  37. -webkit-box-orient: vertical;
  38. -webkit-box-direction: normal;
  39. -webkit-flex-direction: column;
  40. flex-direction: column;
  41. outline: 0;
  42. }
  43. .weui-half-screen-dialog__hd {
  44. display: -webkit-box;
  45. display: -webkit-flex;
  46. display: flex;
  47. -webkit-box-align: center;
  48. -webkit-align-items: center;
  49. align-items: center;
  50. -webkit-flex-shrink: 0;
  51. flex-shrink: 0;
  52. justify-content: center;
  53. }
  54. .weui-half-screen-dialog__title {
  55. display: block;
  56. color: #000;
  57. font-weight: 600;
  58. font-size: 40rpx;
  59. padding: 40rpx 0 20rpx;
  60. }
  61. .weui-half-screen-dialog__bd {
  62. min-height: 0;
  63. overflow-y: auto;
  64. word-wrap: break-word;
  65. -webkit-hyphens: auto;
  66. hyphens: auto;
  67. padding-bottom: 100rpx;
  68. font-size: 28rpx;
  69. color: hsla(0, 0%, 100%, 0.8);
  70. }
  71. .weui-half-screen-dialog__tips {
  72. padding-top: 32rpx;
  73. font-size: 28rpx;
  74. color: #000;
  75. line-height: 1.4;
  76. }
  77. .weui-half-screen-dialog__ft {
  78. /* padding: 0 0 128rpx; */
  79. text-align: center;
  80. }
  81. .weui-half-screen-dialog__btn-area .weui-btn:nth-last-child(n + 2)+.weui-btn:first-child,
  82. .weui-half-screen-dialog__btn-area .weui-btn:nth-last-child(n + 2):first-child {
  83. margin-left: 0;
  84. }
  85. .disagreeBtn {
  86. color: #c1c1c1;
  87. margin-top: 20rpx;
  88. font-size: 28rpx;
  89. }
  90. .weui-half-screen-dialog__btn-area .weui-btn:nth-last-child(n + 2),
  91. .weui-half-screen-dialog__btn-area .weui-btn:nth-last-child(n + 2)+.weui-btn {
  92. margin: 0 16rpx;
  93. }
  94. .weui-half-screen-dialog__ft .weui-btn:nth-last-child(n + 2),
  95. .weui-half-screen-dialog__ft .weui-btn:nth-last-child(n + 2)+.weui-btn {
  96. display: inline-block;
  97. vertical-align: top;
  98. margin: 0 16rpx;
  99. }
  100. .weui-half-screen-dialog__btn-area .weui-btn {
  101. padding-left: 32rpx;
  102. padding-right: 32rpx;
  103. }
  104. button.weui-btn,
  105. input.weui-btn {
  106. border-width: 0;
  107. outline: 0;
  108. -webkit-appearance: none;
  109. }
  110. .weui-btn {
  111. position: relative;
  112. display: block;
  113. width: 100%;
  114. margin-left: auto;
  115. margin-right: auto;
  116. padding: 16rpx 48rpx;
  117. box-sizing: border-box;
  118. font-weight: 500;
  119. font-size: 28rpx;
  120. text-align: center;
  121. text-decoration: none;
  122. color: #000!important;
  123. line-height: 1.88235294;
  124. border-radius: 16rpx;
  125. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  126. -webkit-user-select: none;
  127. user-select: none;
  128. background-color: var(--subtitleColor)!important;
  129. }