index.less 834 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. overflow: hidden;
  11. text-overflow: ellipsis;
  12. white-space: nowrap;
  13. }
  14. }
  15. &__title {
  16. position: relative;
  17. display: flex;
  18. align-items: center;
  19. width: 100%;
  20. padding-right: 10px;
  21. &:hover {
  22. .@{tree-prefix-cls}__action {
  23. visibility: visible;
  24. }
  25. }
  26. }
  27. &__content {
  28. overflow: hidden;
  29. }
  30. &__actions {
  31. position: absolute;
  32. //top: 2px;
  33. right: 3px;
  34. display: flex;
  35. }
  36. &__action {
  37. margin-left: 4px;
  38. visibility: hidden;
  39. }
  40. &-header {
  41. border-bottom: 1px solid @border-color-base;
  42. }
  43. }