Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -306,14 +306,73 @@ input[type="checkbox"] {
|
|
| 306 |
}
|
| 307 |
.upload-container:hover { border-color: var(--warm-accent) !important; }
|
| 308 |
|
| 309 |
-
/* βββ ImageEditor
|
| 310 |
.image-editor,
|
| 311 |
-
.image-editor > *,
|
| 312 |
[data-testid="image-editor"],
|
| 313 |
-
|
|
|
|
| 314 |
background: #F5EDE4 !important;
|
| 315 |
}
|
| 316 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 317 |
/* βββ Row/Column spacers βββ */
|
| 318 |
.row, .column { background: transparent !important; }
|
| 319 |
|
|
@@ -447,13 +506,48 @@ input[type="checkbox"] {
|
|
| 447 |
}
|
| 448 |
#run-btn:active { transform: translateY(0) !important; }
|
| 449 |
|
| 450 |
-
/* βββ Output image
|
| 451 |
-
.
|
| 452 |
-
|
| 453 |
-
|
| 454 |
-
|
| 455 |
-
|
| 456 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 457 |
}
|
| 458 |
|
| 459 |
/* βββ Progress bar βββ */
|
|
|
|
| 306 |
}
|
| 307 |
.upload-container:hover { border-color: var(--warm-accent) !important; }
|
| 308 |
|
| 309 |
+
/* βββ ImageEditor: all areas βββ */
|
| 310 |
.image-editor,
|
|
|
|
| 311 |
[data-testid="image-editor"],
|
| 312 |
+
.image-editor > div,
|
| 313 |
+
[data-testid="image-editor"] > div {
|
| 314 |
background: #F5EDE4 !important;
|
| 315 |
}
|
| 316 |
|
| 317 |
+
/* toolbar (left button strip) */
|
| 318 |
+
.image-editor .toolbar,
|
| 319 |
+
.image-editor [class*="toolbar"],
|
| 320 |
+
.image-editor [class*="tool"],
|
| 321 |
+
.image-editor [class*="sidebar"],
|
| 322 |
+
.image-editor [class*="controls"],
|
| 323 |
+
.image-editor [class*="panel"],
|
| 324 |
+
[data-testid="image-editor"] [class*="toolbar"],
|
| 325 |
+
[data-testid="image-editor"] [class*="tool"],
|
| 326 |
+
[data-testid="image-editor"] [class*="sidebar"],
|
| 327 |
+
[data-testid="image-editor"] [class*="controls"],
|
| 328 |
+
[data-testid="image-editor"] [class*="panel"] {
|
| 329 |
+
background: #FFF3EC !important;
|
| 330 |
+
border-color: var(--warm-border) !important;
|
| 331 |
+
}
|
| 332 |
+
|
| 333 |
+
/* toolbar icon buttons */
|
| 334 |
+
.image-editor button,
|
| 335 |
+
[data-testid="image-editor"] button {
|
| 336 |
+
background: #FFFFFF !important;
|
| 337 |
+
color: #3D2B1F !important;
|
| 338 |
+
border: 1px solid #EDD9C8 !important;
|
| 339 |
+
border-radius: 8px !important;
|
| 340 |
+
}
|
| 341 |
+
.image-editor button:hover,
|
| 342 |
+
[data-testid="image-editor"] button:hover {
|
| 343 |
+
background: #FFF3EC !important;
|
| 344 |
+
border-color: #E8845A !important;
|
| 345 |
+
}
|
| 346 |
+
.image-editor button svg,
|
| 347 |
+
[data-testid="image-editor"] button svg {
|
| 348 |
+
fill: #3D2B1F !important;
|
| 349 |
+
stroke: #3D2B1F !important;
|
| 350 |
+
color: #3D2B1F !important;
|
| 351 |
+
}
|
| 352 |
+
|
| 353 |
+
/* canvas drawing area */
|
| 354 |
+
.image-editor canvas,
|
| 355 |
+
[data-testid="image-editor"] canvas {
|
| 356 |
+
background: #FAFAFA !important;
|
| 357 |
+
border-radius: 8px !important;
|
| 358 |
+
}
|
| 359 |
+
|
| 360 |
+
/* bottom toolbar / layer label */
|
| 361 |
+
.image-editor [class*="bottom"],
|
| 362 |
+
.image-editor [class*="layer"],
|
| 363 |
+
[data-testid="image-editor"] [class*="bottom"],
|
| 364 |
+
[data-testid="image-editor"] [class*="layer"] {
|
| 365 |
+
background: #FFF3EC !important;
|
| 366 |
+
color: #3D2B1F !important;
|
| 367 |
+
border-color: var(--warm-border) !important;
|
| 368 |
+
}
|
| 369 |
+
.image-editor [class*="bottom"] span,
|
| 370 |
+
.image-editor [class*="layer"] span,
|
| 371 |
+
[data-testid="image-editor"] [class*="bottom"] span,
|
| 372 |
+
[data-testid="image-editor"] [class*="layer"] span {
|
| 373 |
+
color: #3D2B1F !important;
|
| 374 |
+
}
|
| 375 |
+
|
| 376 |
/* βββ Row/Column spacers βββ */
|
| 377 |
.row, .column { background: transparent !important; }
|
| 378 |
|
|
|
|
| 506 |
}
|
| 507 |
#run-btn:active { transform: translateY(0) !important; }
|
| 508 |
|
| 509 |
+
/* βββ Output image label bars βββ */
|
| 510 |
+
.block .label-wrap,
|
| 511 |
+
.block [class*="label-wrap"],
|
| 512 |
+
.block [class*="labelwrap"],
|
| 513 |
+
[data-testid="image"] .label-wrap,
|
| 514 |
+
[data-testid="image"] [class*="label"] {
|
| 515 |
+
background: #FFF3EC !important;
|
| 516 |
+
border-bottom: 1px solid var(--warm-border) !important;
|
| 517 |
+
padding: 6px 10px !important;
|
| 518 |
+
}
|
| 519 |
+
.block .label-wrap span,
|
| 520 |
+
.block [class*="label-wrap"] span,
|
| 521 |
+
[data-testid="image"] .label-wrap span,
|
| 522 |
+
[data-testid="image"] [class*="label"] span {
|
| 523 |
+
color: #3D2B1F !important;
|
| 524 |
+
font-weight: 700 !important;
|
| 525 |
+
font-size: 13px !important;
|
| 526 |
+
}
|
| 527 |
+
|
| 528 |
+
/* icon inside label bar */
|
| 529 |
+
.block .label-wrap svg,
|
| 530 |
+
[data-testid="image"] .label-wrap svg {
|
| 531 |
+
fill: #E8845A !important;
|
| 532 |
+
color: #E8845A !important;
|
| 533 |
+
}
|
| 534 |
+
|
| 535 |
+
/* top-right action buttons (fullscreen, download, share) inside image panels */
|
| 536 |
+
.block [class*="action"],
|
| 537 |
+
[data-testid="image"] [class*="action"] {
|
| 538 |
+
background: rgba(255,248,243,0.9) !important;
|
| 539 |
+
border-radius: 6px !important;
|
| 540 |
+
}
|
| 541 |
+
.block [class*="action"] button,
|
| 542 |
+
[data-testid="image"] [class*="action"] button {
|
| 543 |
+
color: #3D2B1F !important;
|
| 544 |
+
background: transparent !important;
|
| 545 |
+
border: none !important;
|
| 546 |
+
}
|
| 547 |
+
.block [class*="action"] button svg,
|
| 548 |
+
[data-testid="image"] [class*="action"] button svg {
|
| 549 |
+
fill: #7A4F3A !important;
|
| 550 |
+
stroke: #7A4F3A !important;
|
| 551 |
}
|
| 552 |
|
| 553 |
/* βββ Progress bar βββ */
|