Spaces:
Sleeping
Sleeping
File size: 22,806 Bytes
6973475 9f28e8f 6cd2d76 9f28e8f | 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 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 | /* ββ AutoMLOps β Dark Theme βββββββββββββββββββββββββββββββββββββββββββββββ */
:root {
--bg-primary: #0d1117;
--bg-secondary: #161b22;
--bg-tertiary: #21262d;
--bg-hover: #30363d44;
--border-color: #30363d;
--text-primary: #e6edf3;
--text-secondary:#8b949e;
--text-muted: #656d76;
--accent: #8b5cf6;
--accent-light: #a78bfa;
--accent-blue: #3b82f6;
--success: #22c55e;
--warning: #f59e0b;
--danger: #ef4444;
--cyan: #06b6d4;
--sidebar-w: 240px;
--navbar-h: 56px;
--radius: 10px;
--radius-sm: 6px;
--shadow: 0 4px 24px rgba(0,0,0,.45);
}
/* ββ Reset / base βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
font-family: 'Inter', system-ui, -apple-system, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
min-height: 100vh;
overflow-x: hidden;
}
a { color: var(--accent-light); text-decoration: none; }
a:hover { color: var(--accent); }
/* ββ Scrollbar ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
/* ββ Sidebar ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.sidebar {
position: fixed;
top: 0; left: 0;
width: var(--sidebar-w);
height: 100vh;
background: var(--bg-secondary);
border-right: 1px solid var(--border-color);
display: flex;
flex-direction: column;
z-index: 100;
transition: transform .25s ease;
}
.sidebar-logo {
display: flex; align-items: center; gap: 10px;
padding: 18px 20px 16px;
border-bottom: 1px solid var(--border-color);
}
.sidebar-logo-icon {
width: 34px; height: 34px; border-radius: 8px;
background: linear-gradient(135deg, var(--accent), var(--accent-blue));
display: flex; align-items: center; justify-content: center;
font-size: 17px;
}
.sidebar-logo-text { font-weight: 700; font-size: 1rem; letter-spacing: -.3px; }
.sidebar-logo-sub { font-size: .68rem; color: var(--text-muted); }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px 0; }
.nav-section-label {
padding: 14px 20px 4px;
font-size: .68rem;
font-weight: 600;
letter-spacing: .08em;
text-transform: uppercase;
color: var(--text-muted);
}
.nav-item {
display: flex; align-items: center; gap: 10px;
padding: 8px 20px;
color: var(--text-secondary);
cursor: pointer;
border-radius: 0;
transition: background .15s, color .15s;
font-size: .9rem;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active { color: var(--accent-light); background: #8b5cf618; }
.nav-item .nav-icon { width: 18px; text-align: center; font-size: .95rem; }
.nav-badge {
margin-left: auto;
background: var(--accent);
color: #fff;
font-size: .62rem;
font-weight: 700;
padding: 1px 6px;
border-radius: 10px;
}
.sidebar-footer {
padding: 14px 20px;
border-top: 1px solid var(--border-color);
font-size: .78rem;
color: var(--text-muted);
}
.sidebar-footer a { color: var(--text-muted); }
.sidebar-footer a:hover { color: var(--accent-light); }
/* ββ Top navbar βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.topnav {
position: fixed;
top: 0; left: var(--sidebar-w); right: 0;
height: var(--navbar-h);
background: var(--bg-secondary);
border-bottom: 1px solid var(--border-color);
display: flex; align-items: center;
padding: 0 24px;
z-index: 90;
gap: 12px;
}
.topnav-title { font-weight: 600; font-size: 1rem; flex: 1; }
.topnav-badge {
background: linear-gradient(135deg, var(--accent), var(--accent-blue));
color: #fff;
font-size: .7rem;
font-weight: 700;
padding: 3px 10px;
border-radius: 20px;
}
/* ββ Main content βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.main {
margin-left: var(--sidebar-w);
padding-top: var(--navbar-h);
min-height: 100vh;
}
.page-content { padding: 28px 32px; }
/* ββ Cards ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.card {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: var(--radius);
padding: 20px;
}
.card-header {
display: flex; align-items: center; justify-content: space-between;
margin-bottom: 16px;
}
.card-title { font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.card-sm { padding: 14px 18px; }
/* ββ Stat cards βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: var(--radius);
padding: 20px 22px;
position: relative;
overflow: hidden;
}
.stat-card::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 3px;
}
.stat-card.purple::before { background: linear-gradient(90deg, var(--accent), var(--accent-light)); }
.stat-card.blue::before { background: linear-gradient(90deg, var(--accent-blue), var(--cyan)); }
.stat-card.green::before { background: linear-gradient(90deg, var(--success), #4ade80); }
.stat-card.yellow::before { background: linear-gradient(90deg, var(--warning), #fcd34d); }
.stat-label { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.stat-value { font-size: 2rem; font-weight: 700; letter-spacing: -.5px; }
.stat-sub { font-size: .78rem; color: var(--text-secondary); margin-top: 4px; }
/* ββ Badges / pills βββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.badge {
display: inline-block;
padding: 2px 9px;
border-radius: 12px;
font-size: .72rem;
font-weight: 600;
}
.badge-success { background: #22c55e22; color: var(--success); }
.badge-warning { background: #f59e0b22; color: var(--warning); }
.badge-danger { background: #ef444422; color: var(--danger); }
.badge-info { background: #3b82f622; color: var(--accent-blue); }
.badge-purple { background: #8b5cf622; color: var(--accent-light); }
.badge-muted { background: var(--bg-tertiary); color: var(--text-secondary); }
.stage-production { background: #22c55e22; color: var(--success); }
.stage-staging { background: #f59e0b22; color: var(--warning); }
.stage-archived { background: #ef444422; color: var(--danger); }
.stage-none { background: var(--bg-tertiary); color: var(--text-muted); }
/* ββ Buttons ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.btn {
display: inline-flex; align-items: center; gap: 7px;
padding: 8px 18px;
border-radius: var(--radius-sm);
font-size: .85rem;
font-weight: 500;
cursor: pointer;
border: none;
transition: opacity .15s, transform .1s;
white-space: nowrap;
}
.btn:hover { opacity: .88; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-blue { background: var(--accent-blue); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-warning { background: var(--warning); color: #000; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-color); }
.btn-ghost:hover { color: var(--text-primary); border-color: var(--text-secondary); background: var(--bg-hover); }
.btn-sm { padding: 5px 12px; font-size: .8rem; }
.btn-lg { padding: 11px 24px; font-size: .95rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
/* ββ Tables βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead tr { border-bottom: 1px solid var(--border-color); }
th {
text-align: left;
padding: 10px 14px;
font-size: .78rem;
font-weight: 600;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: .05em;
white-space: nowrap;
}
td { padding: 11px 14px; font-size: .88rem; border-bottom: 1px solid #30363d55; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-hover); }
/* ββ Forms ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: .82rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.form-control, .form-select {
width: 100%;
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
color: var(--text-primary);
padding: 9px 12px;
font-size: .88rem;
outline: none;
transition: border-color .15s;
appearance: none;
}
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #8b5cf620; }
.form-select {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 10px center;
padding-right: 32px;
}
/* ββ Progress bars ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.progress-bar-wrap {
background: var(--bg-tertiary);
border-radius: 99px;
height: 8px;
overflow: hidden;
}
.progress-bar {
height: 100%;
border-radius: 99px;
background: linear-gradient(90deg, var(--accent), var(--accent-blue));
transition: width .4s ease;
}
/* ββ Tabs βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.tab-bar {
display: flex;
gap: 2px;
border-bottom: 1px solid var(--border-color);
margin-bottom: 20px;
}
.tab-btn {
padding: 9px 18px;
font-size: .87rem;
font-weight: 500;
color: var(--text-secondary);
background: transparent;
border: none;
border-bottom: 2px solid transparent;
cursor: pointer;
transition: color .15s, border-color .15s;
margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--accent-light); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
/* ββ Modals βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.modal-overlay {
position: fixed; inset: 0;
background: rgba(0,0,0,.65);
display: flex; align-items: center; justify-content: center;
z-index: 200;
opacity: 0; pointer-events: none;
transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: var(--radius);
padding: 24px;
width: min(540px, 95vw);
max-height: 90vh;
overflow-y: auto;
transform: translateY(12px);
transition: transform .2s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-title { font-size: 1.05rem; font-weight: 600; }
.modal-close { background: none; border: none; color: var(--text-secondary); cursor: pointer; font-size: 1.1rem; }
.modal-close:hover { color: var(--danger); }
.modal-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
/* ββ Toast notifications ββββββββββββββββββββββββββββββββββββββββββββββββββββ */
#toast-area {
position: fixed; bottom: 24px; right: 24px;
z-index: 300; display: flex; flex-direction: column; gap: 10px;
}
.toast {
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
padding: 12px 18px;
font-size: .86rem;
box-shadow: var(--shadow);
display: flex; align-items: center; gap: 10px;
animation: slideIn .25s ease;
min-width: 240px;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--accent); }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
/* ββ Pipeline / DAG canvas ββββββββββββββββββββββββββββββββββββββββββββββββββ */
.dag-canvas { background: var(--bg-primary); border-radius: var(--radius); min-height: 300px; }
.pipeline-log {
background: var(--bg-primary);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
padding: 14px;
font-family: 'Fira Code', 'Courier New', monospace;
font-size: .82rem;
color: var(--text-secondary);
max-height: 240px;
overflow-y: auto;
line-height: 1.7;
}
.log-line-ok { color: var(--success); }
.log-line-err { color: var(--danger); }
.log-line-info { color: var(--accent-light); }
/* ββ AutoML leaderboard βββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.leaderboard-row {
display: grid;
grid-template-columns: 30px 1fr auto auto;
align-items: center;
gap: 12px;
padding: 10px 14px;
border-radius: var(--radius-sm);
transition: background .15s;
}
.leaderboard-row:hover { background: var(--bg-hover); }
.rank-badge {
width: 26px; height: 26px; border-radius: 50%;
display: flex; align-items: center; justify-content: center;
font-weight: 700; font-size: .8rem;
}
.rank-1 { background: #f59e0b33; color: var(--warning); }
.rank-2 { background: #8b949e33; color: var(--text-secondary); }
.rank-3 { background: #d97706aa; color: #d97706; }
.rank-n { background: var(--bg-tertiary); color: var(--text-muted); }
/* ββ Metric value highlight βββββββββββββββββββββββββββββββββββββββββββββββββ */
.metric-val {
font-weight: 700;
font-size: .95rem;
font-variant-numeric: tabular-nums;
}
.metric-good { color: var(--success); }
.metric-medium { color: var(--warning); }
.metric-bad { color: var(--danger); }
/* ββ Section headings βββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.page-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.page-sub { font-size: .88rem; color: var(--text-secondary); margin-bottom: 24px; }
/* ββ Grid helpers βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { display: flex; align-items: center; gap: 10px; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.gap-12 { gap: 12px; }
/* ββ Responsive βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
@media (max-width: 768px) {
.sidebar { transform: translateX(-100%); }
.sidebar.open { transform: none; }
.main, .topnav { margin-left: 0; left: 0; }
.page-content { padding: 16px; }
.grid-2, .grid-3 { grid-template-columns: 1fr; }
.stat-grid { grid-template-columns: 1fr 1fr; }
}
/* ββ Plotly overrides βββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.js-plotly-plot .plotly { border-radius: var(--radius-sm); }
.modebar { display: none !important; }
/* ββ Category pill row ββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.category-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.category-pill {
padding: 4px 12px;
border-radius: 20px;
font-size: .78rem;
font-weight: 500;
background: var(--bg-tertiary);
color: var(--text-secondary);
border: 1px solid var(--border-color);
cursor: pointer;
transition: all .15s;
}
.category-pill:hover, .category-pill.active {
background: var(--accent);
color: #fff;
border-color: var(--accent);
}
/* ββ Algorithm card grid ββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.algo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.algo-card {
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
padding: 12px 14px;
cursor: pointer;
transition: border-color .15s, background .15s;
position: relative;
}
.algo-card:hover { border-color: var(--accent); background: #8b5cf610; }
.algo-card.selected { border-color: var(--accent); background: #8b5cf618; }
.algo-card .algo-name { font-weight: 500; font-size: .85rem; margin-bottom: 3px; }
.algo-card .algo-desc { font-size: .75rem; color: var(--text-muted); line-height: 1.4; }
.algo-card .algo-dot {
width: 8px; height: 8px; border-radius: 50%;
position: absolute; top: 12px; right: 12px;
}
/* ββ Spinning loader ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.spinner {
width: 20px; height: 20px; border-radius: 50%;
border: 2px solid var(--border-color);
border-top-color: var(--accent);
animation: spin .6s linear infinite;
display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
/* ββ Empty state ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.empty-state {
text-align: center;
padding: 48px 20px;
color: var(--text-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state-title { font-size: 1rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
/* ββ Workflow banner ββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
.workflow-step {
display: flex; flex-direction: column; align-items: center; gap: 5px;
font-size: .75rem; font-weight: 500; color: var(--text-secondary);
padding: 8px 14px;
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
min-width: 80px; text-align: center;
}
.workflow-step i { font-size: 1.1rem; }
.workflow-arrow {
color: var(--text-muted); font-size: .8rem;
padding: 0 6px;
}
@media (max-width: 768px) {
.workflow-arrow { display: none; }
.workflow-step { min-width: 60px; padding: 6px 8px; font-size: .7rem; }
}
/* ββ Light theme ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ */
[data-theme="light"] {
--bg-primary: #f6f8fa;
--bg-secondary: #ffffff;
--bg-tertiary: #eaeef2;
--bg-hover: #d0d7de30;
--border-color: #d0d7de;
--text-primary: #24292f;
--text-secondary:#57606a;
--text-muted: #8c959f;
--shadow: 0 4px 24px rgba(0,0,0,.10);
}
[data-theme="light"] .form-select {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2357606a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
[data-theme="light"] .topnav-badge {
color: #fff;
}
[data-theme="light"] .pipeline-log {
color: var(--text-secondary);
}
/* ββ Smooth theme transition ββββββββββββββββββββββββββββββββββββββββββββββββ */
body.theme-transition,
body.theme-transition *,
body.theme-transition *::before,
body.theme-transition *::after {
transition: background-color .22s ease, color .22s ease, border-color .22s ease !important;
}
|