back-top.wxss 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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: var(--td-spacer-2, 32rpx);
  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-font-gray-1, rgba(0, 0, 0, 0.9)));
  53. border: 1rpx solid var(--td-back-top-round-border-color, var(--td-gray-color-4, #dcdcdc));
  54. background-color: var(--td-back-top-round-bg-color, var(--td-white-color-1, #fff));
  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-font-white-1, #ffffff));
  59. background-color: var(--td-back-top-round-dark-bg-color, var(--td-gray-color-14, #181818));
  60. }
  61. .t-back-top--half-round,
  62. .t-back-top--half-round-dark {
  63. width: 120rpx;
  64. height: 80rpx;
  65. border-radius: var(--td-back-top-half-round-border-radius, var(--td-radius-round, 999px)) 0 0 var(--td-back-top-half-round-border-radius, var(--td-radius-round, 999px));
  66. flex-direction: row;
  67. right: 0;
  68. }
  69. .t-back-top__text--round,
  70. .t-back-top__text--round-dark,
  71. .t-back-top__text--half-round,
  72. .t-back-top__text--half-round-dark {
  73. font-size: var(--td-font-size, 20rpx);
  74. line-height: 24rpx;
  75. }
  76. .t-back-top__text--half-round,
  77. .t-back-top__text--half-round-dark {
  78. width: 2em;
  79. }
  80. .t-back-top__icon:not(:empty) + .t-back-top__text--half-round,
  81. .t-back-top__icon:not(:empty) + .t-back-top__text--half-round-dark {
  82. margin-left: 8rpx;
  83. }
  84. .t-back-top__icon {
  85. display: flex;
  86. justify-content: center;
  87. align-items: center;
  88. font-size: 44rpx;
  89. }