popup.wxss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. }
  46. .t-popup--top {
  47. top: 0;
  48. left: 0;
  49. width: 100%;
  50. border-bottom-left-radius: var(--td-popup-border-radius, var(--td-radius-default, 12rpx));
  51. border-bottom-right-radius: var(--td-popup-border-radius, var(--td-radius-default, 12rpx));
  52. }
  53. .t-popup--bottom {
  54. bottom: 0;
  55. left: 0;
  56. width: 100vw;
  57. border-top-left-radius: var(--td-popup-border-radius, var(--td-radius-default, 12rpx));
  58. border-top-right-radius: var(--td-popup-border-radius, var(--td-radius-default, 12rpx));
  59. padding-bottom: constant(safe-area-inset-bottom);
  60. padding-bottom: env(safe-area-inset-bottom);
  61. }
  62. .t-popup--left {
  63. top: 0;
  64. left: 0;
  65. height: 100vh;
  66. }
  67. .t-popup--right {
  68. top: 0;
  69. right: 0;
  70. height: 100vh;
  71. }
  72. .t-popup--center {
  73. top: 50%;
  74. left: 50%;
  75. transform: scale(1) translate3d(-50%, -50%, 0);
  76. transform-origin: 0% 0%;
  77. border-radius: var(--td-popup-border-radius, var(--td-radius-default, 12rpx));
  78. }
  79. .t-popup.t-fade-enter.t-popup--top,
  80. .t-popup.t-fade-leave-to.t-popup--top {
  81. transform: translateY(-100%);
  82. }
  83. .t-popup.t-fade-enter.t-popup--bottom,
  84. .t-popup.t-fade-leave-to.t-popup--bottom {
  85. transform: translateY(100%);
  86. }
  87. .t-popup.t-fade-enter.t-popup--left,
  88. .t-popup.t-fade-leave-to.t-popup--left {
  89. transform: translateX(-100%);
  90. }
  91. .t-popup.t-fade-enter.t-popup--right,
  92. .t-popup.t-fade-leave-to.t-popup--right {
  93. transform: translateX(100%);
  94. }
  95. .t-popup.t-fade-enter.t-popup--center,
  96. .t-popup.t-fade-leave-to.t-popup--center {
  97. transform: scale(0.6) translate3d(-50%, -50%, 0);
  98. opacity: 0;
  99. }
  100. .t-popup.t-dialog-enter.t-popup--center,
  101. .t-popup.t-dialog-leave-to.t-popup--center {
  102. transform: scale(0.6) translate3d(-50%, -50%, 0);
  103. opacity: 0;
  104. }