index.less 800 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. @import '../../style/themes/index';
  2. @import '../../style/mixins/index';
  3. @backtop-prefix-cls: ~'@{ant-prefix}-back-top';
  4. .@{backtop-prefix-cls} {
  5. .reset-component();
  6. position: fixed;
  7. right: 100px;
  8. bottom: 50px;
  9. z-index: @zindex-back-top;
  10. width: 40px;
  11. height: 40px;
  12. cursor: pointer;
  13. &:empty {
  14. display: none;
  15. }
  16. &-rtl {
  17. right: auto;
  18. left: 100px;
  19. direction: rtl;
  20. }
  21. &-content {
  22. width: 40px;
  23. height: 40px;
  24. overflow: hidden;
  25. color: @back-top-color;
  26. text-align: center;
  27. background-color: @back-top-bg;
  28. border-radius: 20px;
  29. transition: all 0.3s;
  30. &:hover {
  31. background-color: @back-top-hover-bg;
  32. transition: all 0.3s;
  33. }
  34. }
  35. &-icon {
  36. font-size: 24px;
  37. line-height: 40px;
  38. }
  39. }
  40. @import './responsive';