zentaobiz.ui.css 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. /* 选择对象页面 */
  2. .prompt-select-source {
  3. display: flex;
  4. margin: 0 auto;
  5. overflow: hidden;
  6. }
  7. .prompt-select-source .panel {
  8. margin-bottom: 0;
  9. padding: 0;
  10. width: 100%;
  11. max-width: none;
  12. min-width: auto;
  13. }
  14. .prompt-select-source .panel-body {
  15. height: calc(100vh - 116px);
  16. }
  17. .prompt-select-source .panel-body form {
  18. height: 100%;
  19. }
  20. .prompt-select-source .data-selector-container {
  21. display: flex;
  22. gap: 16px;
  23. height: calc(100vh - 116px - 96px);
  24. }
  25. .prompt-select-source .data-sources-panel {
  26. flex: 1;
  27. display: flex;
  28. }
  29. .prompt-select-source .data-categories-section {
  30. display: flex;
  31. flex-direction: column;
  32. width: 185px;
  33. gap: 10px;
  34. }
  35. .prompt-select-source .data-categories-section .section-content {
  36. border: 1px solid #EEE;
  37. border-right: none;
  38. flex: 1;
  39. background-color: #F8F8F8;
  40. overflow-y: auto;
  41. padding: 16px;
  42. }
  43. .data-categories-section .category-list {
  44. list-style-type: none;
  45. margin: 0;
  46. padding: 0;
  47. }
  48. .data-categories-section .category-list li {
  49. font-size: 13px;
  50. line-height: 32px;
  51. cursor: pointer;
  52. user-select: none;
  53. text-align: center;
  54. }
  55. .data-categories-section .category-list li:hover {
  56. background-color: rgba(0,0,0,.075);
  57. }
  58. .data-categories-section .category-list li.active {
  59. color: #2E7FFF;
  60. background-color: #E6F0FF;
  61. }
  62. .prompt-select-source .data-properties-section {
  63. display: flex;
  64. flex: 1;
  65. flex-direction: column;
  66. gap: 10px;
  67. }
  68. .prompt-select-source .data-properties-section .section-header {
  69. display: flex;
  70. align-items: center;
  71. gap: 6px;
  72. }
  73. .prompt-select-source .data-properties-section .section-content {
  74. border: 1px solid #EEE;
  75. border-left: none;
  76. flex: 1;
  77. overflow-y: auto;
  78. padding: 20px;
  79. }
  80. .data-properties-section .category-groups {
  81. display: flex;
  82. flex-direction: column;
  83. gap: 40px;
  84. user-select: none;
  85. }
  86. .data-properties-section .category-group {
  87. position: relative;
  88. }
  89. .data-properties-section .category-group:not(:last-child)::after {
  90. content: '';
  91. display: block;
  92. width: 100%;
  93. height: 1px;
  94. background-color: #EEE;
  95. position: absolute;
  96. bottom: -20px;
  97. left: 0;
  98. }
  99. .data-properties-section .category-group-body {
  100. margin-top: 12px;
  101. display: grid;
  102. padding: 0 20px;
  103. grid-template-columns: repeat(4, 1fr);
  104. }
  105. .prompt-select-source .data-selected-panel {
  106. display: flex;
  107. flex-direction: column;
  108. width: 400px;
  109. gap: 10px;
  110. }
  111. .prompt-select-source .data-selected-panel .section-content {
  112. border: 1px solid #EEE;
  113. flex: 1;
  114. overflow-y: auto;
  115. }
  116. .prompt-select-source .selected-data-sorter ol {
  117. list-style-type: none;
  118. margin: 0;
  119. padding: 0;
  120. }
  121. .prompt-select-source .selected-data-sorter li {
  122. position: relative;
  123. padding: 8px 16px;
  124. padding-left: 64px;
  125. cursor: move;
  126. user-select: none;
  127. transition: background-color 0.2s;
  128. }
  129. .prompt-select-source .selected-data-sorter li:hover {
  130. background-color: #EEF5FF;
  131. }
  132. .prompt-select-source .selected-data-sorter li::before {
  133. content: counter(list-item);
  134. display: inline-block;
  135. width: 2ch;
  136. position: absolute;
  137. left: 16px;
  138. top: 50%;
  139. translate: 0 -50%;
  140. }
  141. .prompt-select-source .selected-data-sorter .drag-icon {
  142. opacity: 0;
  143. position: absolute;
  144. left: 46px;
  145. top: 50%;
  146. translate: 0 -50%;
  147. transition: opacity 0.2s;
  148. }
  149. .prompt-select-source .selected-data-sorter li:hover .drag-icon {
  150. opacity: 1;
  151. }
  152. .prompt-select-source .selected-data-sorter .remove-icon {
  153. padding: 8px;
  154. width: 36px;
  155. height: 36px;
  156. text-align: center;
  157. line-height: 20px;
  158. position: absolute;
  159. right: 16px;
  160. top: 50%;
  161. translate: 0 -50%;
  162. cursor: pointer;
  163. }