panel.css 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. :root {
  2. color-scheme: light dark;
  3. }
  4. body {
  5. background: light-dark( #fff, #333 );
  6. color: light-dark( #333, #e0e0e0 );
  7. margin: 0;
  8. padding: 10px;
  9. font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  10. font-size: 12px;
  11. }
  12. hr {
  13. color: light-dark( #333, #e0e0e0 );
  14. }
  15. #scene-tree {
  16. width: 100%;
  17. height: 100%;
  18. overflow: auto;
  19. }
  20. .info-item {
  21. padding: 8px 12px;
  22. background: light-dark( #f5f5f5, #333 );
  23. border-radius: 4px;
  24. margin-bottom: 16px;
  25. font-family: monospace;
  26. color: light-dark( #666, #aaa );
  27. }
  28. .section {
  29. margin-bottom: 24px;
  30. }
  31. .section h3 {
  32. margin: 0 0 8px 0;
  33. font-size: 11px;
  34. text-transform: uppercase;
  35. color: light-dark( #666, #aaa );
  36. font-weight: 500;
  37. border-bottom: 1px solid light-dark( #eee, #444 );
  38. padding-bottom: 4px;
  39. }
  40. .tree-item {
  41. padding: 4px;
  42. cursor: pointer;
  43. display: flex;
  44. align-items: center;
  45. }
  46. .tree-item:hover {
  47. background: light-dark( #f0f0f0, #555 );
  48. }
  49. .tree-item .icon {
  50. margin-right: 4px;
  51. opacity: 0.7;
  52. }
  53. .tree-item .label {
  54. flex: 1;
  55. white-space: nowrap;
  56. overflow: hidden;
  57. text-overflow: ellipsis;
  58. }
  59. .tree-item .label .object-details {
  60. color: #aaa;
  61. margin-left: 4px;
  62. font-weight: normal;
  63. }
  64. .tree-item .type {
  65. margin-left: 8px;
  66. opacity: 0.5;
  67. font-size: 0.9em;
  68. }
  69. .children {
  70. margin-left: 0;
  71. }
  72. /* Style for clickable renderer summary */
  73. .renderer-summary {
  74. cursor: pointer;
  75. }
  76. .renderer-summary:hover {
  77. background: light-dark( #f0f0f0, #555 );
  78. }
  79. /* Hide default details marker when using custom summary */
  80. details.renderer-container > summary.renderer-summary { /* Target summary */
  81. list-style: none; /* Hide default arrow */
  82. cursor: pointer; /* Make the summary div look clickable */
  83. }
  84. details.renderer-container > summary.renderer-summary::-webkit-details-marker {
  85. display: none; /* Hide default arrow in WebKit */
  86. }
  87. /* Style for the toggle icon */
  88. .toggle-icon::before {
  89. content: '▶'; /* Default: collapsed */
  90. display: inline-block;
  91. width: 1em;
  92. margin-right: 2px;
  93. opacity: 0.7;
  94. }
  95. details.renderer-container[open] > summary.renderer-summary .toggle-icon::before {
  96. content: '▼'; /* Expanded */
  97. }
粤ICP备19079148号