index.module.less 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. .directoryList {
  2. height: 100%;
  3. padding: 24px 0;
  4. :global {
  5. .n-scrollbar-container {
  6. max-height: 100%;
  7. }
  8. }
  9. .scrollBar {
  10. margin-top: 12px;
  11. padding: 0 20px;
  12. max-height: calc(100% - 49px - 12px);
  13. }
  14. }
  15. .select-directory {
  16. height: 49px;
  17. line-height: 49px;
  18. background: #E8F4FF;
  19. border-radius: 10px;
  20. padding: 0 16px;
  21. margin: 0 20px 12px;
  22. font-size: max(18px, 13Px);
  23. font-weight: 600;
  24. color: #131415;
  25. line-height: 25px;
  26. display: flex;
  27. align-items: center;
  28. justify-content: space-between;
  29. cursor: pointer;
  30. &>span {
  31. max-width: 240px;
  32. }
  33. .iconArrow {
  34. font-size: 12px
  35. }
  36. }
  37. .treeParent {
  38. transition: height 1s ease-in-out;
  39. }
  40. .treeChild {
  41. line-height: 54px;
  42. }
  43. .treeItem {
  44. display: flex;
  45. align-items: center;
  46. line-height: 54px;
  47. border-radius: 10px;
  48. padding: 0 5px;
  49. cursor: pointer;
  50. border-radius: 10px;
  51. font-size: max(17px, 12Px);
  52. &:hover {
  53. background: #F5F6FA;
  54. }
  55. .title {
  56. padding-left: 8px;
  57. overflow: hidden;
  58. white-space: nowrap;
  59. text-overflow: ellipsis;
  60. max-width: 280px !important;
  61. color: rgba(0, 0, 0, .5);
  62. display: flex;
  63. align-items: center;
  64. .dir {
  65. flex-shrink: 1;
  66. display: inline-block;
  67. width: 16px;
  68. height: 18px;
  69. background: url('./images/icon-d.png') no-repeat center;
  70. background-size: contain;
  71. margin-right: 6px;
  72. }
  73. &.titleSelect {
  74. color: var(--n-color);
  75. font-weight: bold;
  76. .dir {
  77. background: url('./images/icon-d-active.png') no-repeat center;
  78. background-size: contain;
  79. }
  80. }
  81. }
  82. .arrow {
  83. display: inline-block;
  84. width: 14px;
  85. height: 15px;
  86. background: url('./images/arrow-default.png') no-repeat center;
  87. background-size: contain;
  88. &.arrowSelect {
  89. background: url('./images/arrow-active.png') no-repeat center;
  90. background-size: contain;
  91. }
  92. }
  93. .childArrow {
  94. width: 12px;
  95. }
  96. &.childItem {
  97. padding-left: 30px;
  98. font-size: max(15px, 12Px);
  99. .title {
  100. color: #131415;
  101. }
  102. }
  103. &.childSelect {
  104. background: #F5F6FA;
  105. .title {
  106. color: var(--n-color);
  107. font-weight: bold;
  108. }
  109. }
  110. }
  111. .coursewareModal {
  112. width: 1150px;
  113. }