back-top.wxss 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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--fixed {
  40. position: fixed;
  41. right: var(--td-spacer, 16rpx);
  42. bottom: calc(var(--td-spacer-2, 32rpx) + env(safe-area-inset-bottom));
  43. }
  44. .t-back-top--round,
  45. .t-back-top--round-dark {
  46. width: 96rpx;
  47. height: 96rpx;
  48. border-radius: var(--td-back-top-round-border-radius, var(--td-radius-circle, 50%));
  49. }
  50. .t-back-top--round,
  51. .t-back-top--half-round {
  52. color: var(--td-back-top-round-color, var(--td-text-color-primary, var(--td-font-gray-1, rgba(0, 0, 0, 0.9))));
  53. border: 1rpx solid var(--td-back-top-round-border-color, var(--td-component-border, var(--td-gray-color-4, #dcdcdc)));
  54. background-color: var(--td-back-top-round-bg-color, var(--td-bg-color-container, var(--td-font-white-1, #ffffff)));
  55. }
  56. .t-back-top--round-dark,
  57. .t-back-top--half-round-dark {
  58. color: var(--td-back-top-round-dark-color, var(--td-text-color-anti, var(--td-font-white-1, #ffffff)));
  59. background-color: var(--td-back-top-round-dark-bg-color, var(--td-gray-color-13, #242424));
  60. }
  61. .t-back-top--half-round,
  62. .t-back-top--half-round-dark {
  63. width: 120rpx;
  64. height: 80rpx;
  65. border-radius: 0;
  66. border-top-left-radius: var(--td-back-top-half-round-border-radius, var(--td-radius-round, 999px));
  67. border-bottom-left-radius: var(--td-back-top-half-round-border-radius, var(--td-radius-round, 999px));
  68. flex-direction: row;
  69. right: 0;
  70. }
  71. .t-back-top__text--round,
  72. .t-back-top__text--round-dark,
  73. .t-back-top__text--half-round,
  74. .t-back-top__text--half-round-dark {
  75. font-size: var(--td-font-size, 20rpx);
  76. line-height: 24rpx;
  77. }
  78. .t-back-top__text--half-round,
  79. .t-back-top__text--half-round-dark {
  80. width: 48rpx;
  81. }
  82. .t-back-top__icon:not(:empty) + .t-back-top__text--half-round,
  83. .t-back-top__icon:not(:empty) + .t-back-top__text--half-round-dark {
  84. margin-left: 8rpx;
  85. }
  86. .t-back-top__icon {
  87. display: flex;
  88. justify-content: center;
  89. align-items: center;
  90. font-size: 44rpx;
  91. }