index.module.less 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. display: flex;
  62. align-items: center;
  63. .dir {
  64. display: inline-block;
  65. width: 16px;
  66. height: 18px;
  67. background: url('./images/icon-d.png') no-repeat center;
  68. background-size: contain;
  69. margin-right: 6px;
  70. }
  71. &.titleSelect {
  72. color: var(--n-color);
  73. font-weight: bold;
  74. .dir {
  75. background: url('./images/icon-d-active.png') no-repeat center;
  76. background-size: contain;
  77. }
  78. }
  79. }
  80. .arrow {
  81. display: inline-block;
  82. width: 14px;
  83. height: 15px;
  84. background: url('./images/arrow-default.png') no-repeat center;
  85. background-size: contain;
  86. &.arrowSelect {
  87. background: url('./images/arrow-active.png') no-repeat center;
  88. background-size: contain;
  89. }
  90. }
  91. .childArrow {
  92. width: 12px;
  93. }
  94. &.childItem {
  95. padding-left: 30px;
  96. .title {
  97. color: #131415;
  98. }
  99. }
  100. &.childSelect {
  101. background: #F5F6FA;
  102. .title {
  103. color: var(--n-color);
  104. font-weight: bold;
  105. }
  106. }
  107. }
  108. .coursewareModal {
  109. width: 1150px;
  110. }