The best way to control Claude Code, Codex and more from any computer or phone

main
css 220 lines 4.23 KB
Raw
1 /* Observability section: the Layer + a small monitor window
2 (ObservabilityDash.tsx). Same chrome as TypePolicy and PreviewComment. */
3
4 .od {
5 display: grid;
6 grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
7 gap: 16px;
8 align-items: stretch;
9 }
10 @media (max-width: 900px) {
11 .od {
12 grid-template-columns: minmax(0, 1fr);
13 }
14 }
15 .od-code,
16 .od-win {
17 border: 1px solid var(--alc-hairline);
18 border-radius: 10px;
19 background: var(--alc-bg-code);
20 color: var(--alc-fg-invert);
21 box-shadow: var(--alc-shadow-sm);
22 overflow: hidden;
23 }
24 .od-bar {
25 display: flex;
26 align-items: center;
27 gap: 6px;
28 padding: 9px 12px;
29 border-bottom: 1px solid rgba(var(--alc-code-edge), 0.08);
30 font-family: var(--alc-font-mono);
31 font-size: 11px;
32 }
33 .od-dot {
34 width: 9px;
35 height: 9px;
36 border-radius: 50%;
37 }
38 .od-bar__file {
39 margin-left: 8px;
40 color: var(--alc-code-comment);
41 }
42 .od-code .od-bar__file {
43 margin-left: 4px;
44 }
45 .od-badge {
46 margin-left: auto;
47 padding: 2px 8px;
48 border: 1px solid currentColor;
49 border-radius: 999px;
50 font-weight: 600;
51 color: var(--alc-success);
52 transition: color 200ms ease;
53 }
54 .od-badge.is-red {
55 color: var(--alc-danger);
56 }
57
58 .od-code__pre {
59 margin: 0;
60 padding: 14px 0 16px;
61 font-family: var(--alc-font-mono);
62 font-size: 12.5px;
63 line-height: 1.7;
64 white-space: pre;
65 overflow-x: auto;
66 }
67 .od-line {
68 display: block;
69 padding: 0 16px 0 14px;
70 border-left: 2px solid transparent;
71 transition:
72 background 300ms ease,
73 border-color 300ms ease;
74 }
75 .od-line.is-lit {
76 border-left-color: #7ee787;
77 background: rgba(126, 231, 135, 0.07);
78 }
79
80 .od-win__body {
81 display: grid;
82 gap: 12px;
83 padding: 14px 16px 16px;
84 font-family: var(--alc-font-mono);
85 font-size: 12px;
86 }
87 .od-muted {
88 color: var(--alc-code-comment);
89 }
90 .od-red {
91 color: var(--alc-danger);
92 }
93 .od-block,
94 .od-traces {
95 border-radius: 6px;
96 transition: background 300ms ease;
97 }
98 .od-block.is-focus,
99 .od-traces.is-focus {
100 background: rgba(126, 231, 135, 0.05);
101 }
102 .od-label {
103 display: flex;
104 justify-content: space-between;
105 margin-bottom: 6px;
106 color: var(--alc-code-comment);
107 }
108 .od-chart {
109 display: block;
110 width: 100%;
111 height: 64px;
112 }
113 .od-threshold {
114 stroke: var(--alc-warn);
115 stroke-width: 1;
116 stroke-dasharray: 4 4;
117 vector-effect: non-scaling-stroke;
118 }
119 .od-path {
120 fill: none;
121 stroke: var(--alc-danger);
122 stroke-width: 1.5;
123 vector-effect: non-scaling-stroke;
124 }
125 .od-area {
126 fill: var(--alc-danger);
127 opacity: 0.12;
128 }
129
130 /* Room for every row, so the window keeps one height as traces arrive. */
131 .od-traces {
132 min-height: 84px;
133 list-style: none;
134 margin: 0;
135 padding: 0;
136 display: grid;
137 align-content: start;
138 gap: 2px;
139 }
140 .od-traces li {
141 display: grid;
142 grid-template-columns: 1.2em minmax(0, 1fr) auto;
143 gap: 6px;
144 animation: od-in 300ms ease-out;
145 }
146 @keyframes od-in {
147 from {
148 opacity: 0;
149 transform: translateY(3px);
150 }
151 }
152 .od-traces__mark {
153 color: var(--alc-success);
154 }
155 .od-traces__name {
156 overflow: hidden;
157 text-overflow: ellipsis;
158 white-space: nowrap;
159 }
160 .od-traces__ms {
161 color: var(--alc-code-comment);
162 }
163 .od-traces li.is-failed,
164 .od-traces li.is-failed .od-traces__mark,
165 .od-traces li.is-failed .od-traces__ms {
166 color: var(--alc-danger);
167 }
168
169 .od-monitor {
170 display: flex;
171 align-items: center;
172 gap: 8px;
173 padding-top: 10px;
174 border-top: 1px solid rgba(var(--alc-code-edge), 0.08);
175 }
176 .od-monitor .od-muted {
177 margin-left: auto;
178 }
179 .od-monitor__dot {
180 width: 8px;
181 height: 8px;
182 border-radius: 50%;
183 background: var(--alc-success);
184 }
185 .od-monitor.is-red .od-monitor__dot {
186 background: var(--alc-danger);
187 animation: od-pulse 0.8s ease-in-out infinite;
188 }
189 @keyframes od-pulse {
190 50% {
191 opacity: 0.3;
192 }
193 }
194 /* Always in the layout, so the window keeps one height. */
195 .od-alert {
196 padding: 6px 10px;
197 border-left: 2px solid var(--alc-danger);
198 border-radius: 4px;
199 background: color-mix(in srgb, var(--alc-danger) 12%, transparent);
200 line-height: 1.5;
201 opacity: 0;
202 transform: translateY(-3px);
203 transition:
204 opacity 220ms ease,
205 transform 220ms ease;
206 }
207 .od-alert.is-shown {
208 opacity: 1;
209 transform: none;
210 }
211
212 .alc-motion-paused .od * {
213 animation-play-state: paused !important;
214 }
215 @media (prefers-reduced-motion: reduce) {
216 .od * {
217 animation: none !important;
218 transition: none !important;
219 }
220 }