-
Notifications
You must be signed in to change notification settings - Fork 75
Expand file tree
/
Copy pathstyles.css
More file actions
208 lines (175 loc) · 3.69 KB
/
styles.css
File metadata and controls
208 lines (175 loc) · 3.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
/* OpenCode Plugin Styles */
/* Main container */
.opencode-container {
display: flex;
flex-direction: column;
height: 100%;
overflow: hidden;
}
/* Header */
.opencode-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 12px;
border-bottom: 1px solid var(--background-modifier-border);
background-color: var(--background-secondary);
flex-shrink: 0;
}
.opencode-header-title {
display: flex;
align-items: center;
gap: 8px;
font-weight: 600;
}
.opencode-header-title svg {
width: 16px;
height: 16px;
}
.opencode-header-actions {
display: flex;
gap: 4px;
}
.opencode-header-actions button {
background: transparent;
border: none;
padding: 4px 6px;
border-radius: 4px;
cursor: pointer;
color: var(--text-muted);
}
.opencode-header-actions button:hover {
background-color: var(--background-modifier-hover);
color: var(--text-normal);
}
.opencode-header-actions button svg {
width: 16px;
height: 16px;
}
/* iframe container */
.opencode-iframe-container {
flex: 1;
overflow: hidden;
position: relative;
}
.opencode-iframe {
width: 100%;
height: 100%;
border: none;
background-color: var(--background-primary);
}
/* Status container (for stopped/starting/error states) */
.opencode-status-container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
padding: 24px;
text-align: center;
gap: 16px;
}
.opencode-status-icon {
width: 48px;
height: 48px;
color: var(--text-muted);
}
.opencode-status-icon svg {
width: 100%;
height: 100%;
}
.opencode-status-container h3 {
margin: 0;
font-size: 1.2em;
}
.opencode-status-message {
color: var(--text-muted);
max-width: 300px;
margin: 0;
}
.opencode-status-container button {
margin-top: 8px;
}
.opencode-status-container button + button {
margin-left: 8px;
}
/* Error state */
.opencode-status-container.opencode-error .opencode-status-icon {
color: var(--text-error);
}
/* Loading spinner */
.opencode-loading {
display: flex;
justify-content: center;
align-items: center;
}
.opencode-spinner {
width: 32px;
height: 32px;
border: 3px solid var(--background-modifier-border);
border-top-color: var(--interactive-accent);
border-radius: 50%;
animation: opencode-spin 1s linear infinite;
}
@keyframes opencode-spin {
to {
transform: rotate(360deg);
}
}
/* Settings tab styles */
.opencode-settings-status {
margin-top: 12px;
padding: 12px;
background-color: var(--background-secondary);
border-radius: 8px;
}
.opencode-status-line {
margin-bottom: 8px;
}
.opencode-status-line a {
color: var(--text-accent);
}
.opencode-status-badge {
padding: 2px 8px;
border-radius: 4px;
font-size: 0.85em;
font-weight: 500;
}
.opencode-status-badge.status-stopped {
background-color: var(--background-modifier-border);
color: var(--text-muted);
}
.opencode-status-badge.status-starting {
background-color: var(--text-warning);
color: var(--background-primary);
}
.opencode-status-badge.status-running {
background-color: var(--text-success);
color: var(--background-primary);
}
.opencode-status-badge.status-error {
background-color: var(--text-error);
color: var(--background-primary);
}
.opencode-settings-buttons {
display: flex;
gap: 8px;
margin-top: 12px;
}
.opencode-status-waiting {
color: var(--text-muted);
font-style: italic;
}
/* Error details in settings */
.opencode-error-details {
margin-top: 12px;
padding: 10px 12px;
background-color: var(--background-secondary);
border-radius: 6px;
border-left: 3px solid var(--text-error);
}
.opencode-error-text {
color: var(--text-error);
font-size: 0.9em;
line-height: 1.4;
}