Modal.scss 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. /* #ifdef weapp */
  2. .modal {
  3. position: fixed;
  4. top: -2px;
  5. left: 0;
  6. z-index: 100000;
  7. right: 0;
  8. bottom: 0;
  9. overflow: hidden;
  10. display: flex;
  11. flex-direction: column;
  12. background-color: rgba($color: #000000, $alpha: 0);
  13. animation: modalBgAnim 0.2s linear forwards;
  14. }
  15. .rn_modal{
  16. position: fixed;
  17. top: -2px;
  18. left: 0;
  19. z-index: 100000;
  20. right: 0;
  21. bottom: 0;
  22. overflow: hidden;
  23. display: flex;
  24. flex-direction: column;
  25. background-color: rgba($color: #000000, $alpha: 0);
  26. }
  27. @keyframes modalBgAnim {
  28. 100% {
  29. background-color: rgba($color: #000000, $alpha: 0.15);
  30. }
  31. }
  32. .modal_dismiss {
  33. background-color: rgba($color: #000000, $alpha: 0.15);
  34. animation: modalBgHideAnim 0.2s linear forwards;
  35. }
  36. @keyframes modalBgHideAnim {
  37. 100% {
  38. background-color: rgba($color: #000000, $alpha: 0);
  39. }
  40. }
  41. .modal_center_container {
  42. align-items: center;
  43. justify-content: center;
  44. // margin-bottom: 560px;
  45. }
  46. .center_modal_detail {
  47. margin-bottom: 192px;
  48. }
  49. .modal_center_content {
  50. // background-color: #1c1c1c;
  51. // border-radius: 36rpx;
  52. width: 658px;
  53. }
  54. .modal_bottom_content {
  55. // padding-bottom: 120px;
  56. width: 750px;
  57. background-color: #ffffff;
  58. border-top-left-radius: 36px;
  59. border-top-right-radius: 36px;
  60. display: flex;
  61. flex-shrink: 0;
  62. flex-direction: column;
  63. z-index: 1000000;
  64. margin-bottom: -1000px;
  65. animation: modalAnim 0.2s linear forwards;
  66. }
  67. .modal_bottom_dismiss {
  68. margin-bottom: 0px;
  69. animation: modalHideAnim 0.2s linear forwards;
  70. }
  71. @keyframes modalAnim {
  72. 0% {
  73. margin-bottom: -1000px;
  74. }
  75. 100% {
  76. margin-bottom: 0;
  77. }
  78. }
  79. @keyframes modalHideAnim {
  80. 100% {
  81. margin-bottom: -1000px;
  82. }
  83. }
  84. /* #endif */
  85. /* #ifdef rn */
  86. .modal {
  87. position: absolute;
  88. top: -2px;
  89. left: 0;
  90. z-index: 100000;
  91. right: 0;
  92. height: 700;
  93. // bottom: 0;
  94. overflow: hidden;
  95. display: flex;
  96. flex-direction: column;
  97. background-color: rgba(0,0,0,0.95);
  98. // background-color: rgba($color: #000000, $alpha: 0);
  99. // animation: modalBgAnim 0.2s linear forwards;
  100. }
  101. .modal_bottom_content {
  102. // padding-bottom: 120px;
  103. width: 750px;
  104. background-color: #1c1c1c;
  105. border-top-left-radius: 36px;
  106. border-top-right-radius: 36px;
  107. display: flex;
  108. flex-shrink: 0;
  109. flex-direction: column;
  110. z-index: 1000000;
  111. margin-bottom: 0;
  112. // height: 400;
  113. // margin-bottom: -1000px;
  114. // animation: modalAnim 0.2s linear forwards;
  115. }
  116. /* #endif */
  117. .modal_title {
  118. font-size: 36px;
  119. line-height: 120px;
  120. height: 120px;
  121. font-weight: 500;
  122. width: 750px;
  123. text-align: center;
  124. }
  125. .modal_operate {
  126. display: flex;
  127. flex-direction: row;
  128. width: 750px;
  129. display: flex;
  130. justify-content: center;
  131. align-items: center;
  132. margin-top: 36px;
  133. }
  134. .modal_btn {
  135. width: 260px;
  136. height: 84px;
  137. border-radius: 42px;
  138. display: flex;
  139. align-items: center;
  140. justify-content: center;
  141. }
  142. .btn_space {
  143. width: 90px;
  144. }
  145. .modal_cancel_text {
  146. font-weight: 500;
  147. }
  148. .modal_confirm_text {
  149. font-weight: 500;
  150. }