index.module.less 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  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: 18px;
  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. &:hover {
  52. background: #F5F6FA;
  53. }
  54. .title {
  55. padding-left: 8px;
  56. overflow: hidden;
  57. white-space: nowrap;
  58. text-overflow: ellipsis;
  59. max-width: 280px !important;
  60. color: rgba(0, 0, 0, .5);
  61. &.titleSelect {
  62. color: var(--n-color);
  63. font-weight: bold;
  64. }
  65. }
  66. .arrow {
  67. display: inline-block;
  68. width: 14px;
  69. height: 15px;
  70. background: url('./images/arrow-default.png') no-repeat center;
  71. background-size: contain;
  72. &.arrowSelect {
  73. background: url('./images/arrow-active.png') no-repeat center;
  74. background-size: contain;
  75. }
  76. }
  77. .childArrow {
  78. width: 12px;
  79. }
  80. &.childItem .title {
  81. color: #131415;
  82. }
  83. &.childSelect {
  84. background: #F5F6FA;
  85. .title {
  86. color: var(--n-color);
  87. font-weight: bold;
  88. }
  89. }
  90. }
  91. .coursewareModal {
  92. width: 1150px;
  93. }