panel.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. /* Style for clickable renderer summary */
  63. .renderer-summary {
  64. cursor: pointer;
  65. }
  66. .renderer-summary:hover {
  67. background: #e0e0e0;
  68. }
  69. /* Hide default details marker when using custom summary */
  70. details.renderer-container > summary.renderer-summary { /* Target summary */
  71. list-style: none; /* Hide default arrow */
  72. cursor: pointer; /* Make the summary div look clickable */
  73. }
  74. details.renderer-container > summary.renderer-summary::-webkit-details-marker {
  75. display: none; /* Hide default arrow in WebKit */
  76. }
  77. /* Style for the toggle icon */
  78. .toggle-icon::before {
  79. content: '▶'; /* Default: collapsed */
  80. display: inline-block;
  81. width: 1em;
  82. margin-right: 2px;
  83. opacity: 0.7;
  84. }
  85. details.renderer-container[open] > summary.renderer-summary .toggle-icon::before {
  86. content: '▼'; /* Expanded */
  87. }
粤ICP备19079148号