popup.wxss 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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. }
  34. .t-popup__content {
  35. position: relative;
  36. z-index: 1;
  37. }
  38. .t-popup__close {
  39. position: absolute;
  40. top: 0;
  41. right: 0;
  42. padding: 20rpx;
  43. line-height: 1;
  44. }
  45. .t-popup--overlay-transparent .t-popup__overlay {
  46. background-color: rgba(0, 0, 0, 0);
  47. }
  48. .t-popup--top {
  49. top: 0;
  50. left: 0;
  51. width: 100%;
  52. }
  53. .t-popup--bottom {
  54. bottom: 0;
  55. left: 0;
  56. width: 100vw;
  57. }
  58. .t-popup--left {
  59. top: 0;
  60. left: 0;
  61. height: 100vh;
  62. }
  63. .t-popup--right {
  64. top: 0;
  65. right: 0;
  66. height: 100vh;
  67. }
  68. .t-popup--center {
  69. top: 50%;
  70. left: 50%;
  71. transform: scale(1) translate3d(-50%, -50%, 0);
  72. transform-origin: 0% 0%;
  73. }
  74. .t-popup.t-fade-enter.t-popup--top,
  75. .t-popup.t-fade-leave-to.t-popup--top {
  76. transform: translateY(-100%);
  77. }
  78. .t-popup.t-fade-enter.t-popup--bottom,
  79. .t-popup.t-fade-leave-to.t-popup--bottom {
  80. transform: translateY(100%);
  81. }
  82. .t-popup.t-fade-enter.t-popup--left,
  83. .t-popup.t-fade-leave-to.t-popup--left {
  84. transform: translateX(-100%);
  85. }
  86. .t-popup.t-fade-enter.t-popup--right,
  87. .t-popup.t-fade-leave-to.t-popup--right {
  88. transform: translateX(100%);
  89. }
  90. .t-popup.t-fade-enter.t-popup--center,
  91. .t-popup.t-fade-leave-to.t-popup--center {
  92. transform: scale(0.6) translate3d(-50%, -50%, 0);
  93. opacity: 0;
  94. }
  95. .t-popup.t-dialog-enter.t-popup--center,
  96. .t-popup.t-dialog-leave-to.t-popup--center {
  97. transform: scale(0.6) translate3d(-50%, -50%, 0);
  98. opacity: 0;
  99. }