panel.css 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. body {
  2. margin: 0;
  3. padding: 16px;
  4. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  5. font-size: 12px;
  6. color: #333;
  7. background: #fff;
  8. }
  9. .info-item {
  10. padding: 8px 12px;
  11. background: #f5f5f5;
  12. border-radius: 4px;
  13. margin-bottom: 16px;
  14. font-family: monospace;
  15. color: #666;
  16. }
  17. .section {
  18. margin-bottom: 24px;
  19. }
  20. .section h3 {
  21. margin: 0 0 8px 0;
  22. font-size: 11px;
  23. text-transform: uppercase;
  24. color: #666;
  25. font-weight: 500;
  26. border-bottom: 1px solid #eee;
  27. padding-bottom: 4px;
  28. }
  29. .tree-item {
  30. display: flex;
  31. align-items: center;
  32. padding: 2px;
  33. /* cursor: pointer; Let summary handle this */
  34. border-radius: 4px;
  35. }
  36. .tree-item:hover {
  37. background: #e0e0e0;
  38. }
  39. .tree-item .icon {
  40. margin-right: 4px;
  41. opacity: 0.7;
  42. }
  43. .tree-item .label {
  44. flex: 1;
  45. white-space: nowrap;
  46. overflow: hidden;
  47. text-overflow: ellipsis;
  48. }
  49. .tree-item .label .object-details {
  50. color: #aaa;
  51. margin-left: 4px;
  52. font-weight: normal;
  53. }
  54. .tree-item .type {
  55. margin-left: 8px;
  56. opacity: 0.5;
  57. font-size: 0.9em;
  58. }
  59. .children {
  60. margin-left: 0;
  61. }
  62. .properties-list {
  63. font-family: monospace;
  64. font-size: 11px;
  65. margin: 4px 0;
  66. padding: 4px 0;
  67. border-left: 1px solid #eee;
  68. }
  69. .properties-section {
  70. margin-bottom: 8px;
  71. }
  72. .properties-header {
  73. color: #666;
  74. font-weight: bold;
  75. padding: 4px 0;
  76. padding-left: 16px; /* Align header with items */
  77. user-select: none;
  78. margin-bottom: 4px; /* Add space below header */
  79. }
  80. .property-item {
  81. padding: 2px 16px;
  82. display: flex;
  83. align-items: center;
  84. }
  85. .property-name {
  86. color: #666;
  87. margin-right: 8px;
  88. min-width: 120px;
  89. }
  90. .property-value {
  91. color: #333;
  92. }
  93. .visibility-btn {
  94. background: none;
  95. border: none;
  96. cursor: pointer;
  97. padding: 2px 6px;
  98. font-size: 12px;
  99. opacity: 0.5;
  100. border-radius: 4px;
  101. margin-right: 4px;
  102. }
  103. .visibility-btn:hover {
  104. background: #e0e0e0;
  105. opacity: 1;
  106. }
  107. .tree-item:hover .visibility-btn {
  108. opacity: 0.8;
  109. }
  110. /* Styles for two-column layout */
  111. .properties-grid {
  112. display: flex;
  113. flex-direction: row;
  114. gap: 24px; /* Space between columns */
  115. }
  116. .properties-column-left,
  117. .properties-column-right {
  118. flex: 1; /* Each column takes equal width */
  119. }
  120. /* End styles for two-column layout */
  121. /* Style for clickable renderer summary */
  122. .renderer-summary {
  123. cursor: pointer;
  124. }
  125. .renderer-summary:hover {
  126. background: #e0e0e0;
  127. }
  128. /* Hide default details marker when using custom summary */
  129. details.renderer-container > summary.renderer-summary { /* Target summary */
  130. list-style: none; /* Hide default arrow */
  131. cursor: pointer; /* Make the summary div look clickable */
  132. }
  133. details.renderer-container > summary.renderer-summary::-webkit-details-marker {
  134. display: none; /* Hide default arrow in WebKit */
  135. }
  136. /* Style for the toggle icon */
  137. .toggle-icon::before {
  138. content: '▶'; /* Default: collapsed */
  139. display: inline-block;
  140. width: 1em;
  141. margin-right: 2px;
  142. opacity: 0.7;
  143. }
  144. details.renderer-container[open] > summary.renderer-summary .toggle-icon::before {
  145. content: '▼'; /* Expanded */
  146. }
粤ICP备19079148号