-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
216 lines (190 loc) · 4.9 KB
/
styles.css
File metadata and controls
216 lines (190 loc) · 4.9 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
209
210
211
212
213
214
215
216
:root {
--bg: #0b0e14;
--panel: #101624;
--panel2: #0e1422;
--text: #e6edf3;
--muted: #9aa4b2;
--border: rgba(255,255,255,0.08);
--btn: rgba(255,255,255,0.08);
--btnHover: rgba(255,255,255,0.14);
--danger: rgba(255, 80, 80, 0.18);
--dangerHover: rgba(255, 80, 80, 0.28);
}
* { box-sizing: border-box; }
html, body {
height: 100%;
margin: 0;
background: var(--bg);
color: var(--text);
font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
overflow: hidden;
}
#app {
height: 100%;
display: flex;
flex-direction: column;
}
.content {
flex: 1;
height: 100%;
display: grid;
grid-template-columns: 1fr 380px;
min-height: 0;
}
.viewport {
position: relative;
min-width: 0;
min-height: 0;
height: 100%;
}
#c {
width: 100%;
height: 100%;
display: block;
}
.panel {
border-left: 1px solid var(--border);
background: var(--panel);
padding: 12px;
overflow: auto;
min-height: 0;
}
.toolbar {
border: 1px solid var(--border);
background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
border-radius: 12px;
padding: 12px;
margin-bottom: 10px;
}
.title { font-weight: 700; letter-spacing: 0.2px; }
.hint { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.panel-section {
background: var(--panel2);
border: 1px solid var(--border);
border-radius: 10px;
padding: 10px;
margin-bottom: 10px;
}
.panel-title { font-weight: 700; margin-bottom: 8px; font-size: 13px; color: var(--text); }
.row { display: flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 10px 12px;
border-radius: 10px;
border: 1px solid var(--border);
background: var(--btn);
color: var(--text);
cursor: pointer;
user-select: none;
font-size: 14px;
}
.btn:hover { background: var(--btnHover); }
.btn.small { padding: 8px 10px; font-size: 13px; }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: var(--dangerHover); }
.btn.full {
width: 100%;
margin-top: 10px;
}
.btn input[type="file"] { display: none; }
.checkbox { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.info { color: var(--muted); font-size: 13px; line-height: 1.4; white-space: pre-line; }
.list { display: flex; flex-direction: column; gap: 6px; }
.item {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
padding: 8px 10px;
border: 1px solid var(--border);
border-radius: 10px;
cursor: pointer;
background: rgba(255,255,255,0.04);
}
.item:hover { background: rgba(255,255,255,0.07); }
.item.active { outline: 2px solid rgba(90, 160, 255, 0.6); }
.item .name { font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.item .tag { font-size: 11px; color: var(--muted); }
/* 后端日志 */
.log {
margin: 0;
padding: 10px;
border: 1px solid var(--border);
border-radius: 10px;
background: rgba(0,0,0,0.25);
color: var(--muted);
font-size: 12px;
line-height: 1.4;
max-height: 180px;
overflow: auto;
white-space: pre-wrap;
}
#cameraParams pre {
background: #1f2937;
padding: 10px;
border-radius: 8px;
color: #e6edf3;
font-size: 13px;
overflow-x: auto;
white-space: pre-wrap;
word-break: break-word;
}
/* Popup styles */
.popup {
display: none; /* Hidden by default */
position: fixed;
top: 50%; /* Center vertically */
left: 50%; /* Center horizontally */
width: 60vw; /* 60% of the viewport width */
height: 60vw; /* Keep the height the same as the width to ensure the popup is square */
transform: translate(-50%, -50%); /* Adjust to truly center the popup */
background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
justify-content: center; /* Center the content horizontally */
align-items: center; /* Center the content vertically */
z-index: 9999; /* Ensure it’s on top of other content */
border-radius: 10px;
}
/* Popup content box */
.popup-content {
background: #101624;
padding: 20px;
border-radius: 10px;
width: 70%; /* Take up all available space */
height: 60%; /* Take up all available space */
position: relative; /* Positioning for the close button */
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
}
#segCanvas {
cursor: crosshair;
box-shadow: 0 0 10px rgba(0,0,0,0.5);
width: 512px;
height: 512px;
}
#btnPos, #btnNeg {
transition: background-color 0.2s;
}
/* Close button (top-right corner) */
#closePopup {
position: absolute;
top: 10px;
right: 10px;
background-color: transparent;
color: white;
font-size: 20px;
border: none;
cursor: pointer;
font-weight: bold;
}
/* Buttons in the popup */
button {
margin: 10px;
}
/* Optional: Add hover effect for the close button */
#closePopup:hover {
color: grey;
}