popup.wxss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. .t-float-left {
  2. float: left;
  3. }
  4. .t-float-right {
  5. float: right;
  6. }
  7. @keyframes tdesign-fade-out {
  8. from {
  9. opacity: 1;
  10. }
  11. to {
  12. opacity: 0;
  13. }
  14. }
  15. .hotspot-expanded.relative {
  16. position: relative;
  17. }
  18. .hotspot-expanded::after {
  19. content: '';
  20. display: block;
  21. position: absolute;
  22. left: 0;
  23. top: 0;
  24. right: 0;
  25. bottom: 0;
  26. transform: scale(1.5);
  27. }
  28. .t-popup {
  29. position: fixed;
  30. z-index: 11500;
  31. max-height: 100vh;
  32. transition: all 300ms ease;
  33. background-color: var(--td-popup-bg-color, var(--td-bg-color-container, var(--td-font-white-1, #ffffff)));
  34. }
  35. .t-popup__content {
  36. position: relative;
  37. z-index: 1;
  38. }
  39. .t-popup__close {
  40. position: absolute;
  41. top: 0;
  42. right: 0;
  43. padding: 20rpx;
  44. line-height: 1;
  45. color: var(--td-popup-close-btn-color, var(--td-text-color-primary, var(--td-font-gray-1, rgba(0, 0, 0, 0.9))));
  46. }
  47. .t-popup--top {
  48. top: 0;
  49. left: 0;
  50. width: 100%;
  51. border-bottom-left-radius: var(--td-popup-border-radius, var(--td-radius-extra-large, 24rpx));
  52. border-bottom-right-radius: var(--td-popup-border-radius, var(--td-radius-extra-large, 24rpx));
  53. }
  54. .t-popup--bottom {
  55. bottom: 0;
  56. left: 0;
  57. width: 100%;
  58. border-top-left-radius: var(--td-popup-border-radius, var(--td-radius-extra-large, 24rpx));
  59. border-top-right-radius: var(--td-popup-border-radius, var(--td-radius-extra-large, 24rpx));
  60. padding-bottom: constant(safe-area-inset-bottom);
  61. padding-bottom: env(safe-area-inset-bottom);
  62. }
  63. .t-popup--left {
  64. top: 0;
  65. left: 0;
  66. height: 100vh;
  67. }
  68. .t-popup--right {
  69. top: 0;
  70. right: 0;
  71. height: 100vh;
  72. }
  73. .t-popup--center {
  74. top: 50%;
  75. left: 50%;
  76. transform: scale(1) translate3d(-50%, -50%, 0);
  77. transform-origin: 0% 0%;
  78. border-radius: var(--td-popup-border-radius, var(--td-radius-extra-large, 24rpx));
  79. }
  80. .t-popup.t-fade-enter.t-popup--top,
  81. .t-popup.t-fade-leave-to.t-popup--top {
  82. transform: translateY(-100%);
  83. }
  84. .t-popup.t-fade-enter.t-popup--bottom,
  85. .t-popup.t-fade-leave-to.t-popup--bottom {
  86. transform: translateY(100%);
  87. }
  88. .t-popup.t-fade-enter.t-popup--left,
  89. .t-popup.t-fade-leave-to.t-popup--left {
  90. transform: translateX(-100%);
  91. }
  92. .t-popup.t-fade-enter.t-popup--right,
  93. .t-popup.t-fade-leave-to.t-popup--right {
  94. transform: translateX(100%);
  95. }
  96. .t-popup.t-fade-enter.t-popup--center,
  97. .t-popup.t-fade-leave-to.t-popup--center {
  98. transform: scale(0.6) translate3d(-50%, -50%, 0);
  99. opacity: 0;
  100. }
  101. .t-popup.t-dialog-enter.t-popup--center,
  102. .t-popup.t-dialog-leave-to.t-popup--center {
  103. transform: scale(0.6) translate3d(-50%, -50%, 0);
  104. opacity: 0;
  105. }