Control.less 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. @import "~assets/less/variable";
  2. .container {
  3. flex: 1;
  4. .controlForm {
  5. flex: 1;
  6. display: flex;
  7. .splitPanel {
  8. flex: 1;
  9. display: flex;
  10. }
  11. }
  12. }
  13. .treeContainer {
  14. padding: 4px 0;
  15. }
  16. .tree {
  17. // :global(li) {
  18. // padding: 2px 0;
  19. // }
  20. :global(li span.ant-tree-switcher),
  21. :global(li span.ant-tree-iconEle) {
  22. height: 28px;
  23. line-height: 28px;
  24. }
  25. :global(li .ant-tree-node-content-wrapper) {
  26. height: 28px;
  27. line-height: 24px;
  28. }
  29. :global(.ant-tree-child-tree > li:first-child) {
  30. padding-top: 2px;
  31. }
  32. // :global(li .ant-tree-node-content-wrapper:hover),
  33. // :global(li .ant-tree-node-content-wrapper.ant-tree-node-selected) {
  34. // background-color: transparent;
  35. // }
  36. // :global(li .ant-tree-node-content-wrapper.ant-tree-node-selected) {
  37. // color: @primary-color;
  38. // font-weight: bold;
  39. // }
  40. }
  41. .relatedForm {
  42. flex: 1;
  43. display: flex;
  44. flex-direction: column;
  45. min-width: 0;
  46. .title {
  47. flex-shrink: 0;
  48. padding: 0 8px;
  49. display: flex;
  50. align-items: center;
  51. h2 {
  52. flex: 1;
  53. color: @light-text-color;
  54. font-size: 1.143em;
  55. line-height: 3em;
  56. }
  57. .action {
  58. flex-shrink: 0;
  59. }
  60. }
  61. .itemContainer {
  62. flex: 3;
  63. display: flex;
  64. flex-direction: column;
  65. min-height: 0;
  66. .title {
  67. .checkAll {
  68. color: @light-text-color;
  69. }
  70. }
  71. ul {
  72. flex: 1;
  73. overflow-y: auto;
  74. }
  75. li {
  76. height: 30px;
  77. display: flex;
  78. align-items: center;
  79. }
  80. .checkbox {
  81. padding: 0 16px;
  82. .ellipsis;
  83. }
  84. }
  85. .viewContainer {
  86. flex: 2;
  87. display: flex;
  88. flex-direction: column;
  89. min-height: 0;
  90. .title {
  91. border-top: 1px solid @border-color-split;
  92. }
  93. .views {
  94. flex: 1;
  95. overflow-y: auto;
  96. &.empty {
  97. display: flex;
  98. flex-direction: column;
  99. justify-content: center;
  100. align-items: center;
  101. }
  102. }
  103. }
  104. }
  105. .relatedView {
  106. padding: 8px 0;
  107. margin: 0 16px;
  108. .name {
  109. height: 40px;
  110. display: flex;
  111. align-items: center;
  112. h4 {
  113. flex: 1;
  114. color: @light-text-color;
  115. .ellipsis;
  116. }
  117. .fieldType {
  118. flex-shrink: 0;
  119. }
  120. }
  121. :global {
  122. .ant-form-item {
  123. margin-bottom: 0;
  124. }
  125. }
  126. }
  127. .commonForm {
  128. flex: 1;
  129. overflow-y: auto;
  130. :global {
  131. .ant-form-item {
  132. margin-bottom: 8px;
  133. }
  134. .ant-divider {
  135. color: @light-text-color !important;
  136. }
  137. }
  138. }
  139. .optionsModal {
  140. :global {
  141. .ant-form-item {
  142. margin-bottom: 0;
  143. }
  144. .ant-modal-header,
  145. .ant-modal-body {
  146. padding: 16px;
  147. }
  148. .ant-divider {
  149. color: @light-text-color !important;
  150. font-size: 1em !important;
  151. }
  152. }
  153. }
  154. .queryMode {
  155. margin-top: 4px;
  156. float: left;
  157. }