popup.wxss 1.7 KB

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