style.scss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. .subject-tree-wrap {
  2. @apply h-full;
  3. background: #fff;
  4. border: 1px solid #e8eaec;
  5. .tabs {
  6. @apply flex;
  7. border-bottom: 1px solid #e8eaec;
  8. height: 35px;
  9. .tab {
  10. @apply flex-1 text-center cursor-pointer select-none;
  11. height: 100%;
  12. line-height: 35px;
  13. font-size: 14px;
  14. &:hover {
  15. color: #1e93ff;
  16. }
  17. &.active {
  18. color: #1e93ff;
  19. }
  20. &:first-child {
  21. @apply relative;
  22. &::after {
  23. @apply absolute;
  24. content: "";
  25. width: 1px;
  26. height: 24px;
  27. background: #e8eaec;
  28. right: 0;
  29. top: 6px;
  30. }
  31. }
  32. }
  33. }
  34. .tree-wrap {
  35. width: 100%;
  36. padding: 8px;
  37. height: calc(100% - 36px);
  38. overflow: hidden;
  39. .subject-tree {
  40. :deep(.el-tree-node) {
  41. width: 100%;
  42. &.is-current {
  43. > .el-tree-node__content {
  44. > .custom-tree-node {
  45. color: $text-primary;
  46. > .subject-icon {
  47. color: $text-primary;
  48. }
  49. > .share-icon {
  50. color: $text-primary;
  51. }
  52. }
  53. }
  54. }
  55. > .el-tree-node__content {
  56. width: 100%;
  57. height: 28px;
  58. > .el-tree-node__expand-icon {
  59. display: inline-block;
  60. width: 26px;
  61. height: 26px;
  62. font-size: 14px;
  63. padding: 6px;
  64. margin: 0;
  65. &.is-leaf {
  66. color: transparent;
  67. }
  68. }
  69. > .custom-tree-node {
  70. display: flex;
  71. align-items: center;
  72. width: calc(100% - 30px);
  73. height: 32px;
  74. line-height: 32px;
  75. border-radius: 0;
  76. user-select: none;
  77. padding-right: 7px;
  78. margin-left: 4px;
  79. overflow: hidden;
  80. > .subject-icon {
  81. flex: 0 0 auto;
  82. margin-right: 5px;
  83. }
  84. > .text-wrap {
  85. flex: 1 1 auto;
  86. overflow: hidden;
  87. text-overflow: ellipsis;
  88. white-space: nowrap;
  89. .text {
  90. height: 13px;
  91. line-height: 13px;
  92. }
  93. }
  94. > .share-icon {
  95. flex: 0 0 16px;
  96. line-height: 16px;
  97. color: $primary;
  98. }
  99. }
  100. }
  101. }
  102. }
  103. }
  104. }