index.css 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. .node-status-data-structure-viewer {
  2. font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  3. font-size: 14px;
  4. line-height: 1.5;
  5. color: #333;
  6. background: #fafafa;
  7. border-radius: 6px;
  8. padding: 12px 12px 12px 0;
  9. margin: 12px;
  10. border: 1px solid #e1e4e8;
  11. overflow: hidden;
  12. }
  13. .tree-node {
  14. margin: 2px 0;
  15. }
  16. .tree-node-header {
  17. display: flex;
  18. align-items: flex-start;
  19. gap: 4px;
  20. min-height: 20px;
  21. padding: 2px 0;
  22. border-radius: 3px;
  23. transition: background-color 0.15s ease;
  24. }
  25. .tree-node-header:hover {
  26. background-color: rgba(0, 0, 0, 0.04);
  27. }
  28. .expand-button {
  29. background: none;
  30. border: none;
  31. cursor: pointer;
  32. font-size: 10px;
  33. color: #666;
  34. width: 16px;
  35. height: 16px;
  36. display: flex;
  37. align-items: center;
  38. justify-content: center;
  39. border-radius: 2px;
  40. transition: all 0.15s ease;
  41. padding: 0;
  42. margin: 0;
  43. }
  44. .expand-button:hover {
  45. background-color: rgba(0, 0, 0, 0.1);
  46. color: #333;
  47. }
  48. .expand-button.expanded {
  49. transform: rotate(90deg);
  50. }
  51. .expand-button.collapsed {
  52. transform: rotate(0deg);
  53. }
  54. .expand-placeholder {
  55. width: 16px;
  56. height: 16px;
  57. display: inline-block;
  58. flex-shrink: 0;
  59. }
  60. .node-label {
  61. color: #0969da;
  62. font-weight: 500;
  63. cursor: pointer;
  64. user-select: auto;
  65. margin-right: 4px;
  66. }
  67. .node-label:hover {
  68. text-decoration: underline;
  69. }
  70. .node-value {
  71. margin-left: 4px;
  72. }
  73. .primitive-value-quote {
  74. color: #8f8f8f;
  75. }
  76. .primitive-value {
  77. cursor: pointer;
  78. user-select: all;
  79. padding: 1px 3px;
  80. border-radius: 3px;
  81. transition: background-color 0.15s ease;
  82. }
  83. .primitive-value:hover {
  84. background-color: rgba(0, 0, 0, 0.05);
  85. }
  86. .primitive-value.string {
  87. color: #032f62;
  88. background-color: rgba(3, 47, 98, 0.05);
  89. }
  90. .primitive-value.number {
  91. color: #005cc5;
  92. background-color: rgba(0, 92, 197, 0.05);
  93. }
  94. .primitive-value.boolean {
  95. color: #e36209;
  96. background-color: rgba(227, 98, 9, 0.05);
  97. }
  98. .primitive-value.null,
  99. .primitive-value.undefined {
  100. color: #6a737d;
  101. font-style: italic;
  102. background-color: rgba(106, 115, 125, 0.05);
  103. }
  104. .tree-node-children {
  105. margin-left: 8px;
  106. padding-left: 8px;
  107. position: relative;
  108. }
  109. .tree-node-children::before {
  110. content: '';
  111. position: absolute;
  112. left: 0;
  113. top: 0;
  114. bottom: 0;
  115. width: 1px;
  116. background: #e1e4e8;
  117. }