back-top.wxss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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-back-top {
  29. display: flex;
  30. flex-direction: column;
  31. align-items: center;
  32. justify-content: center;
  33. background-color: transparent;
  34. overflow: hidden;
  35. box-sizing: border-box;
  36. transition: height 0.2s;
  37. height: auto;
  38. }
  39. .t-back-top.t-is-fixed {
  40. position: fixed;
  41. right: 32rpx;
  42. bottom: 133rpx;
  43. }
  44. .t-back-top.t-is-round,
  45. .t-back-top.t-is-round-dark {
  46. width: 96rpx;
  47. height: 96rpx;
  48. border-radius: 50%;
  49. }
  50. .t-back-top.t-is-round .t-back-top__icon,
  51. .t-back-top.t-is-round-dark .t-back-top__icon {
  52. margin: 0;
  53. border-radius: 0;
  54. background-color: transparent;
  55. }
  56. .t-back-top.t-is-round .t-back-top__text,
  57. .t-back-top.t-is-round-dark .t-back-top__text {
  58. padding: 0;
  59. margin-top: 0;
  60. }
  61. .t-back-top.t-is-round,
  62. .t-back-top.t-is-half-round {
  63. background-color: #ffffff;
  64. color: #333;
  65. border: 1rpx solid;
  66. border-color: #ddd;
  67. }
  68. .t-back-top.t-is-round .t-back-top__icon,
  69. .t-back-top.t-is-half-round .t-back-top__icon,
  70. .t-back-top.t-is-round .t-back-top__text,
  71. .t-back-top.t-is-half-round .t-back-top__text {
  72. color: #333;
  73. }
  74. .t-back-top.t-is-round-dark,
  75. .t-back-top.t-is-half-round-dark {
  76. background-color: #000;
  77. color: #fff;
  78. }
  79. .t-back-top.t-is-round-dark .t-back-top__icon,
  80. .t-back-top.t-is-half-round-dark .t-back-top__icon,
  81. .t-back-top.t-is-round-dark .t-back-top__text,
  82. .t-back-top.t-is-half-round-dark .t-back-top__text {
  83. color: #fff;
  84. }
  85. .t-back-top.t-is-half-round,
  86. .t-back-top.t-is-half-round-dark {
  87. width: 120rpx;
  88. height: 80rpx;
  89. border-radius: 120rpx 0 0 120rpx;
  90. flex-direction: row;
  91. right: 0;
  92. }
  93. .t-back-top.t-is-half-round .t-back-top__icon,
  94. .t-back-top.t-is-half-round-dark .t-back-top__icon {
  95. margin: 0;
  96. border-radius: 0;
  97. background-color: transparent;
  98. }
  99. .t-back-top.t-is-half-round .t-back-top__text,
  100. .t-back-top.t-is-half-round-dark .t-back-top__text {
  101. padding: 0;
  102. margin-left: 8rpx;
  103. width: 2em;
  104. }
  105. .t-back-top__text {
  106. font-size: 20rpx;
  107. color: #666;
  108. line-height: 24rpx;
  109. }
  110. .t-back-top__icon {
  111. display: flex;
  112. justify-content: center;
  113. align-items: center;
  114. color: #666;
  115. font-size: 32rpx;
  116. }