index.module.less 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. .scrollBar {
  2. margin: 0 20px;
  3. width: calc(100% - 40px);
  4. }
  5. .treeParent {
  6. transition: height 1s ease-in-out;
  7. }
  8. .treeChild {
  9. line-height: 54px;
  10. }
  11. .treeItem {
  12. display: flex;
  13. align-items: center;
  14. line-height: 54px;
  15. border-radius: 10px;
  16. padding: 0 5px;
  17. cursor: pointer;
  18. border-radius: 10px;
  19. font-size: max(17px, 12Px);
  20. margin-bottom: 8px;
  21. &:hover {
  22. background: #E8F4FF;
  23. }
  24. .title {
  25. padding-left: 8px;
  26. overflow: hidden;
  27. white-space: nowrap;
  28. text-overflow: ellipsis;
  29. max-width: 280px !important;
  30. color: rgba(0, 0, 0, .5);
  31. display: flex;
  32. align-items: center;
  33. .dir {
  34. flex-shrink: 1;
  35. display: inline-block;
  36. width: 16px;
  37. height: 18px;
  38. background: url('./images/icon-d.png') no-repeat center;
  39. background-size: contain;
  40. margin-right: 6px;
  41. }
  42. &.titleSelect {
  43. color: #198CFE;
  44. // font-weight: bold;
  45. .dir {
  46. background: url('./images/icon-d-active.png') no-repeat center;
  47. background-size: contain;
  48. }
  49. }
  50. }
  51. .arrow {
  52. display: inline-block;
  53. width: 14px;
  54. height: 15px;
  55. background: url('./images/arrow-default.png') no-repeat center;
  56. background-size: contain;
  57. &.arrowSelect {
  58. background: url('./images/arrow-active.png') no-repeat center;
  59. background-size: contain;
  60. }
  61. }
  62. .childArrow {
  63. width: 12px;
  64. }
  65. &.childItem {
  66. padding-left: 30px;
  67. font-size: max(15px, 12Px);
  68. .title {
  69. color: #131415;
  70. }
  71. }
  72. &.childSelect {
  73. background: #E8F4FF;
  74. .title {
  75. color: #198CFE;
  76. // font-weight: bold;
  77. }
  78. }
  79. }