index.less 752 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. @tree-prefix-cls: ~'@{namespace}-tree';
  2. .@{tree-prefix-cls} {
  3. background-color: @component-background;
  4. .ant-tree-node-content-wrapper {
  5. position: relative;
  6. .ant-tree-title {
  7. position: absolute;
  8. left: 0;
  9. width: 100%;
  10. }
  11. }
  12. &__title {
  13. position: relative;
  14. display: flex;
  15. align-items: center;
  16. width: 100%;
  17. padding-right: 10px;
  18. &:hover {
  19. .@{tree-prefix-cls}__action {
  20. visibility: visible;
  21. }
  22. }
  23. }
  24. &__content {
  25. overflow: hidden;
  26. }
  27. &__actions {
  28. position: absolute;
  29. //top: 2px;
  30. right: 3px;
  31. display: flex;
  32. }
  33. &__action {
  34. margin-left: 4px;
  35. visibility: hidden;
  36. }
  37. &-header {
  38. border-bottom: 1px solid @border-color-base;
  39. }
  40. }