File size: 32,839 Bytes
d06c237 9c4e869 d06c237 9c4e869 d06c237 3c5d5b7 d06c237 9c4e869 d06c237 3c5d5b7 5f9a81f d06c237 9c4e869 d06c237 91460e6 5934f29 91460e6 5934f29 91460e6 d06c237 9c4e869 d06c237 8e156b4 ad9fbf5 d06c237 a4933c9 8c28630 9c4e869 8e156b4 c5316fd 8e156b4 c5316fd d316636 99da6f3 b6da9b7 8e156b4 b6da9b7 d06c237 b6da9b7 d06c237 b6da9b7 d06c237 03426de d06c237 9c4e869 d06c237 ce8497c d06c237 9c4e869 d06c237 692ad89 d06c237 8dbff9f 927340d 694db16 927340d 98a8fee d06c237 927340d 3d6a1b7 927340d 3d6a1b7 701dead 495a0e5 701dead d06c237 a350f73 d06c237 9c4e869 d06c237 9c4e869 d06c237 9361c9a d06c237 9c4e869 d06c237 9c4e869 d06c237 9c4e869 d06c237 9c4e869 d06c237 9c4e869 d06c237 5934f29 d06c237 927340d 5934f29 9c4e869 d06c237 5934f29 d06c237 9c4e869 d06c237 5934f29 d06c237 9c4e869 5934f29 d06c237 5934f29 d06c237 5934f29 78623e9 d06c237 9c4e869 d06c237 9c4e869 5934f29 d06c237 5934f29 d06c237 9c4e869 4ce17ba d06c237 5934f29 d06c237 9c4e869 927340d 5934f29 927340d 5934f29 259c81a 5934f29 259c81a 448e753 259c81a 5934f29 b686473 927340d 5934f29 927340d 5934f29 89d1268 927340d 5934f29 89d1268 5934f29 89d1268 5934f29 89d1268 5934f29 89d1268 549cc4d 5934f29 927340d 549cc4d 89d1268 5934f29 89d1268 5934f29 89d1268 d06c237 9c4e869 89d1268 5934f29 89d1268 549cc4d 5934f29 927340d 5934f29 927340d 5934f29 b686473 5934f29 89d1268 5934f29 927340d 5934f29 d06c237 e5e0b53 d06c237 e5e0b53 5934f29 e5e0b53 d06c237 9c4e869 5934f29 d06c237 80e7be3 5934f29 d06c237 5934f29 d06c237 5934f29 d06c237 5934f29 d06c237 5934f29 d06c237 5934f29 d06c237 5934f29 d06c237 5934f29 927340d 5934f29 927340d d06c237 06b39d8 d06c237 3c5d5b7 d06c237 9c4e869 d06c237 001c9a7 36043b2 701dead d06c237 36043b2 d06c237 99da6f3 d06c237 d2f407d d06c237 5934f29 d06c237 9c4e869 d06c237 927340d d06c237 5934f29 d06c237 c40ccbd d06c237 c40ccbd d06c237 5934f29 d06c237 5934f29 c40ccbd 5934f29 927340d 5934f29 927340d 5934f29 549cc4d d06c237 5934f29 0b11ffc d06c237 5934f29 d06c237 7463f4e 5934f29 d06c237 7463f4e d06c237 5934f29 031e78d 5934f29 d06c237 3ae5276 d06c237 3ae5276 d06c237 3d5bff8 3ae5276 db3c72c 3ae5276 8d41f00 d06c237 3ae5276 4cbaeb4 db3c72c 30a652f 84f7979 3ae5276 af26949 3ae5276 84f7979 3ae5276 e9834d6 db3c72c 84f7979 d06c237 e9834d6 d06c237 a26d9ab d06c237 ce8497c d06c237 | 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 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 | /* ==========================================================================
🎨 Variables & Theme
========================================================================== */
:root {
--bg-color: #121212;
--panel-bg: #1e1e1e;
--input-bg: #2d2d2d;
--text-main: #e0e0e0;
--text-muted: #888;
--accent: #FF7F50;
--border: #444;
--border-light: #555;
--online-green: #00C851;
--loading-yellow: #ffbb33;
--offline-red: #ff4444;
--preview-width: 30%;
--preview-max-width: 280px;
--base-scale: 0.8;
}
/* ==========================================================================
🧹 Reset & Scrollbar
========================================================================== */
* { box-sizing: border-box; }
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
margin: 0; padding: 20px; background: var(--bg-color); color: var(--text-main);
display: flex; justify-content: center; align-items: flex-start;
min-height: 100vh;
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #666; }
select { appearance: base-select; }
select::picker-icon { margin-inline-end: 0px; }
/* ==========================================================================
🏗️ Layout & Panel Heights
========================================================================== */
.layout {
display: grid;
/* ⚠️ 必须 minmax(0, xfr):1fr = minmax(auto, 1fr),auto 下限 = min-content
长文件名(nowrap)会把中间列顶到 900+,左右栏被挤窄 → 每次切卡整页重排 */
grid-template-columns: minmax(0, 6fr) minmax(0, 7fr) minmax(0, 5fr);
gap: 20px;
width: 100%;
max-width: 1600px;
align-items: start;
}
.panel {
background: var(--panel-bg);
padding: 20px;
border-radius: 12px;
border: 1px solid var(--border);
display: flex;
flex-direction: column;
overflow: hidden;
min-width: 0; /* ← grid/flex 子项默认 min-width:auto,会顶住下限 */
}
.left-panel {
height: fit-content;
max-height: calc(100vh - 40px);
overflow-y: auto;
}
.middle-panel {
height: calc(100vh - 40px);
display: flex;
flex-direction: column;
gap: 16px;
}
/* 顶部预览卡片:高度**写死**,三态一致(否则图库高度会跟着抖) */
.preview-card-panel {
flex: 0 0 auto;
height: calc(var(--media-h) + 84px); /* media260 + gap12 + HUD32 + padding40 */
display: flex;
flex-direction: column;
gap: 12px;
overflow: hidden;
}
/* 底部图库卡片:占据剩余所有空间 */
.gallery-card-panel {
flex: 1; /* 撑满剩余高度 */
display: flex;
flex-direction: column;
overflow: hidden; /* 防止内部溢出 */
}
.right-panel {
max-height: calc(100vh - 40px);
height: 100%;
display: flex;
flex-direction: column;
gap: 16px;
}
.output-card,
.logs-card {
width: 100%;
height: auto;
}
.logs-card{
display: flex;
flex-direction: column;
flex: 1;
max-height: 240px;
min-height: 0;
}
.log-panel{
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
}
.terminal-wrapper{
position: relative;
min-width: 0;
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
}
.output-card{
aspect-ratio: 1 / 1; /* 核心属性:强制高度永远等于当前宽度 */
height: auto; /* 清除之前可能写死的固定 height 或 flex-grow */
flex: none; /* 如果父容器是 flex-col,防止它被强行拉伸 */
min-height: 50%;
}
/* 图像预览区容器 */
.image-preview-box {
width: 100%;
max-width: 100%;
height: 100%;
flex-shrink: 0;
border-radius: 0px;
display: flex;
justify-content: center;
align-items: center;
position: relative;
overflow: hidden;
margin: 0 auto;
}
#result-image {
width: 100%;
height: 100%;
object-fit: contain;
display: none;
opacity: 0; /* ← 新增:隐藏态先透明,避免空 src / 半加载闪烁 */
transform: scale(.965); /* ← 新增:reveal 前就保持在初始缩放,防止任何一帧跳变 */
will-change: opacity, transform;
}
/* ==========================================================================
🧩 Form & Common Components
========================================================================== */
.header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.header-title-group { display: flex; align-items: center; }
.header-title-group .divider { color: var(--border); margin: 0 8px; font-size: calc(13px * var(--base-scale)); }
.header-title-group .gallery-link {
color: var(--text-muted);
text-decoration: none;
font-weight: normal;
transition: color .15s ease;
font-size: calc(13px * var(--base-scale));
}
/* 与 .pi-action:hover 完全一致:只变 accent,不加下划线 */
.header-title-group .gallery-link:hover {
color: var(--accent);
text-decoration: none;
}
.header-row h2 {
margin: 0;
font-weight: 600;
font-size: calc(13px * var(--base-scale));
color: var(--text-muted);
letter-spacing: 0.16em;
text-transform: uppercase;
}
.header-status-text { font-size: calc(13px * var(--base-scale)); font-weight: 600; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
label { margin-bottom: 6px; font-weight: 600; font-size: calc(13px * var(--base-scale)); color: var(--text-muted); }
/* Prompt 标签右侧的状态文字:默认不可点,只有 "use author preset" 时变成 accent 可点 */
.label-hint {
margin-left: 8px;
font-weight: 600;
font-size: calc(11px * var(--base-scale));
color: var(--text-muted);
text-transform: none;
letter-spacing: 0;
user-select: none;
}
.label-hint.clickable {
color: var(--accent);
cursor: pointer;
}
.label-hint.clickable:hover { text-decoration: underline; }
.form-group { margin-bottom: 12px; display: flex; flex-direction: column; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.form-row .form-group { margin-bottom: 0 !important; }
/* 通用输入控件样式 */
input:not([type="checkbox"]), textarea, select {
width: 100%; padding: 10px; border-radius: 6px; border: 1px solid var(--border-light);
background: var(--input-bg); color: var(--text-main); font-size: calc(14px * var(--base-scale));
transition: border-color 0.2s;
-moz-appearance: textfield;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
textarea {
resize: vertical;
min-height: 128px;
max-height: 400px;
font-family: inherit;
line-height: 1.5;
}
/* 滑块与数字输入组合 */
.slider-group { display: flex; align-items: center; gap: 10px; }
.slider-group input[type="range"] {
flex: 1; padding: 0; height: 6px; background: var(--input-bg); border-radius: 3px;
-webkit-appearance: none; border: none;
}
.slider-group input[type="range"]::-webkit-slider-thumb {
-webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
background: var(--accent); cursor: pointer;
}
.slider-group input[type="number"] {
width: 75px !important;
flex-shrink: 0;
padding: 8px;
text-align: center;
}
#generate-btn {
background: var(--accent);
letter-spacing: .16em;
text-transform: uppercase;
color: white;
border: none;
cursor: pointer;
font-weight: bold;
padding: 12px;
border-radius: 6px;
font-size: calc(13px * var(--base-scale));
transition: 0.2s;
margin-top: 10px;
}
#generate-btn:hover:not(:disabled) { background: #ff6633; }
#generate-btn:disabled { pointer-events: none; background-color: #555; color: #888; cursor: not-allowed; opacity: 0.6; }
/* Base LoRA 列表行 */
.lora-row {
display: flex; align-items: center; justify-content: space-between;
padding: 8px 0px; border-radius: 6px;
margin-bottom: 8px;
}
.lora-row label { margin: 0; display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-main); font-size: calc(13px * var(--base-scale)); }
.lora-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
.lora-row .strength-box { width: 70px; padding: 6px; text-align: center; }
/* Seed 输入组 */
.seed-group { display: flex; gap: 6px; width: 100%; }
.seed-group input { flex: 1; }
.seed-group button {
width: 40px; height: 38px; padding: 0; margin: 0;
background: var(--input-bg);
border: 1px solid var(--border-light);
color: var(--text-main);
border-radius: 6px; font-size: calc(16px * var(--base-scale)); cursor: pointer; transition: all 0.2s;
}
/* 后端状态指示灯 */
.status-dot { width: 10px; height: 10px; border-radius: 50%; transition: background-color 0.3s ease; box-shadow: 0 0 2px rgba(0,0,0,0.5); }
@keyframes breathe-green { 0% { opacity: 0.6; box-shadow: 0 0 4px rgba(0, 200, 81, 0.2); } 50% { opacity: 0.9; box-shadow: 0 0 10px rgba(0, 200, 81, 0.8); } 100% { opacity: 0.6; box-shadow: 0 0 4px rgba(0, 200, 81, 0.2); } }
@keyframes breathe-yellow { 0% { opacity: 0.6; box-shadow: 0 0 4px rgba(255, 187, 51, 0.2); } 50% { opacity: 0.9; box-shadow: 0 0 10px rgba(255, 187, 51, 0.8); } 100% { opacity: 0.6; box-shadow: 0 0 4px rgba(255, 187, 51, 0.2); } }
@keyframes breathe-red { 0% { opacity: 0.6; box-shadow: 0 0 4px rgba(255, 68, 68, 0.2); } 50% { opacity: 0.9; box-shadow: 0 0 10px rgba(255, 68, 68, 0.8); } 100% { opacity: 0.6; box-shadow: 0 0 4px rgba(255, 68, 68, 0.2); } }
.status-dot.online { background-color: var(--online-green); animation: breathe-green 2.5s infinite ease-in-out; }
.status-dot.loading { background-color: var(--loading-yellow); animation: breathe-yellow 1.5s infinite ease-in-out; }
.status-dot.offline { background-color: var(--offline-red); animation: breathe-red 1s infinite ease-in-out; }
/* Text Encoder / VAE 信息展示 */
.te-vae-container {
font-size: 11px;
display: flex;
justify-content: space-between;
width: 100%;
margin-top: 6px;
margin-bottom: 6px;
padding: 0px;
}
.te-label {
color: var(--text-muted);
font-size: 11px;
}
.te-value, .vae-value {
color: var(--text-main);
font-size: calc(14px * var(--base-scale));
}
.vae-label, .te-label {
font-weight: 600;
font-size: calc(13px * var(--base-scale));
color: var(--text-muted);
}
/* ==========================================================================
🖼️ Preview Card(无内层边框;媒体位置三态恒定;右列垂直居中)
========================================================================== */
:root {
--media-h: 200px; /* 媒体高度(唯 一 的缩放开关)→ 150×200 */
--media-w: calc(var(--media-h) * 3 / 4);
--preview-radius: 8px;
}
.preview-wrapper {
width: 100%;
min-height: 0;
}
.preview-card {
display: flex;
align-items: stretch;
gap: 20px;
height: var(--media-h);
}
/* --- 左侧媒体槽位 --- */
.preview-media {
position: relative;
flex: 0 0 var(--media-w);
width: var(--media-w);
height: 100%;
border-radius: var(--preview-radius);
overflow: hidden;
border: 0.5px solid var(--border);
}
.preview-media .preview-placeholder,
.preview-media .selected-big-img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
max-width: none;
margin: 0;
}
/* 空态:只有虚线框,不写文字(文字交给右列) */
.preview-media .preview-placeholder {
display: flex;
align-items: center;
justify-content: center;
border: 1px dashed #2c2c2c;
border-radius: var(--preview-radius);
color: var(--text-muted);
user-select: none;
}
/* 可选:空框里放一个极小的图标(不写字) */
.preview-placeholder::before {
content: "";
width: 24px;
height: 24px;
opacity: .28;
background: currentColor;
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 5h16a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm1 2v9l4-4 3 3 3-3 4 4V7H5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.preview-media .selected-big-img {
display: none;
object-fit: cover;
object-position: center top;
border-radius: var(--preview-radius);
}
/* --- 右侧信息列:顶部对齐(位置恒定,不再因内容高度变化而跳动) --- */
.preview-info {
flex: 1 1 auto;
min-width: 0;
height: 100%;
display: flex;
flex-direction: column;
justify-content: flex-start;
overflow: hidden;
}
.pi-empty {
/* 空态只有一个子元素:auto margin 会吃掉剩余高度 → 垂直居中;
选中态时这个元素 display:none,完全不影响标题的顶部对齐 */
margin-block: auto;
padding-right: 12px;
color: var(--text-muted);
font-size: calc(13px * var(--base-scale));
line-height: 1.6;
}
/* 窄屏竖向堆叠时,不要 auto margin(否则会把卡片撑高) */
@media (max-width: 640px) {
.pi-empty { margin-block: 12px; padding-right: 0; }
}
.pi-content {
display: none; /* JS 切到 flex */
flex-direction: column;
gap: 0; /* ← 间距改由各块自己负租,让 trigger 紧贴下划线 */
height: 100%; /* 让 trigger 区能吃掉剩余高度 */
min-height: 0;
overflow: hidden;
}
.pi-title {
flex: 0 0 auto;
/* 不再预留 2 行:标题有几行就占几行 —— 你看到的那个"大缝"就是预留出来的空行 */
margin-bottom: 3px; /* 主 → 副标题的紧凑间距 */
font-size: calc(14px * var(--base-scale));
font-weight: 600;
color: var(--text-main);
line-height: 1.35;
word-break: break-word;
overflow-wrap: anywhere; /* 🛡 兜底:超长无空格 token 也能断行,绝不横向溢出 */
display: -webkit-box;
-webkit-line-clamp: 2; /* 超过 2 行 → 第二行末尾自然裁掉 */
-webkit-box-orient: vertical;
overflow: hidden;
}
/* 名字行:独占整行,超宽省略 */
.pi-meta {
display: flex;
align-items: center;
flex-wrap: nowrap;
gap: 10px;
min-width: 0;
flex: 0 0 auto;
overflow: hidden;
margin-bottom: 6px;
}
.pi-filename {
flex: 1 1 auto; /* 现在它独占整行,能用到 100% 宽度 */
min-width: 0;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 11px;
color: var(--text-muted);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis; /* 超过宽度 → … */
}
/* 链接行:独立一行;这条 border 就是 TRIGGER 区的上界(同时也是"无 trigger 时"的那条线) */
.pi-actions {
display: flex;
flex-wrap: wrap; /* 三个链接在窄屏可换行,但同一次打开内不会跳动 */
align-items: center;
gap: 4px 10px;
flex: 0 0 auto;
min-height: 1.35em; /* 🛡 兜底:没有链接的卡片(如 pony)也占一行高,
否则"有链接/无链接"两组卡片会让下面的 TRIGGER 差 15px */
padding-bottom: 8px;
border-bottom: 1px solid #2a2a2a;
white-space: nowrap;
}
.pi-action {
font-size: 11px;
color: var(--text-muted);
text-decoration: none;
white-space: nowrap;
transition: color .15s ease;
}
.pi-action:hover { color: var(--accent); }
/* --- 触发词块:顶部那条 border 就是"标题的下划线",同时充当滚动区上界;
底部不加任何线,改用一层渐隐,避免"两条线夹着 trigger" --- */
.pi-trigger {
display: none; /* JS 切到 flex */
position: relative;
flex-direction: column;
flex: 1 1 auto;
min-height: 0;
margin-top: 0; /* margin/padding 都归零:clip 线 = 链接行下划线 */
padding-top: 0;
border-top: none; /* 下划线现在归 .pi-actions 的 border-bottom */
overflow: hidden;
}
/* 底部渐隐:既是"滚动区下界"的视觉提示,又不会多出一条线 */
.pi-trigger::after {
content: "";
position: absolute;
left: 0;
right: 8px; /* 给滚动条留出位置,避免把滑块也渐隐掉 */
bottom: 0;
height: 18px;
pointer-events: none;
background: linear-gradient(to bottom, rgba(30, 30, 30, 0), var(--panel-bg));
}
/* --- 底部 HUD:与左侧 Base LoRA 行同构(☑ + 名字 + 强度) --- */
.selected-hud-bar {
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
height: 32px;
font-size: calc(14px * var(--base-scale));
overflow: hidden;
}
.hud-left {
display: flex;
align-items: center;
gap: 10px;
flex: 1;
min-width: 0;
}
.hud-label {
color: var(--text-muted);
white-space: nowrap;
flex-shrink: 0;
}
.hud-checkbox { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.hud-name {
color: var(--accent);
font-weight: bold;
flex: 1;
min-width: 0;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* 未选中 / 未勾选:名字降级为普通灰字 */
.hud-name.is-none {
color: var(--text-muted);
font-weight: normal;
}
.hud-strength-group {
display: flex;
align-items: center;
gap: 10px;
flex-shrink: 0;
}
.hud-strength-group input {
width: 70px;
height: 32px;
padding: 0 8px;
text-align: center;
border-radius: 6px;
background: var(--input-bg);
border: 1px solid var(--border-light);
color: var(--text-main);
font-size: calc(14px * var(--base-scale));
box-sizing: border-box;
}
.hud-strength-group input:focus {
outline: none !important;
border-color: var(--accent) !important;
}
.hud-strength-group input:disabled {
opacity: .45;
cursor: not-allowed;
}
/* 小屏矮视口:再缩一档 */
@media (max-height: 820px) {
:root { --media-h: 168px; }
}
/* 图库滚动容器与网格 */
.gallery-scroll-container {
flex: 1; overflow-y: auto;
border: 1px solid var(--border); border-radius: 8px;
padding: 12px; background: rgba(0, 0, 0, 0.2);
}
.gallery-grid {
display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px;
}
.lora-card {
position: relative; aspect-ratio: 3 / 4;
border-radius: 8px; overflow: hidden; cursor: pointer;
border: 1.5px solid transparent; background-color: var(--input-bg);
transition: border-color 0.2s;
}
.lora-card:hover { border-color: rgba(255, 127, 80, 0.5); }
.lora-card.selected { border-color: var(--accent); box-shadow: 0 0 12px rgba(255, 127, 80, 0.3); }
.lora-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: filter 0.3s ease; }
.lora-card:hover img { filter: brightness(1.05); }
/* 卡片底部标题渐变遮罩 */
.card-info {
position: absolute; bottom: 0; left: 0; right: 0;
padding: 30px 10px 10px 10px;
background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
pointer-events: none;
}
.card-title {
color: #fff; font-size: calc(13px * var(--base-scale)); font-weight: 600; line-height: 1.3;
display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
/* ==========================================================================
⚙️ Output & Logs
========================================================================== */
.placeholder-text {
letter-spacing: .16em;
text-transform: uppercase;
color: var(--text-muted);
font-size: calc(13px * var(--base-scale));
text-align: center;
padding: 0 30px;
max-width: 100%;
word-wrap: break-word;
white-space: pre-wrap;
line-height: 1.6;
}
.log-header-title{
letter-spacing: .16em;
text-transform: uppercase;
color: var(--text-muted);
font-size: calc(14px * var(--base-scale));
}
/* 日志输出面板 */
.log-content {
flex: 1;
padding: 10px 12px;
overflow-y: auto;
font-family: monospace;
font-size: calc(12px * var(--base-scale));
line-height: 1.5;
color: #a0a0a0;
background: #0a0a0a;
max-height: 100%;
border-radius: 8px;
border: 1px solid var(--border);
scroll-behavior: smooth;
}
.log-line { margin-bottom: 4px; word-break: break-all; }
.log-line.highlight { color: var(--accent); }
.log-line.error { color: #ff4444; }
.log-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 12px;
font-weight: 600;
font-size: calc(13px * var(--base-scale));
color: var(--text-muted);
}
.log-header label {
display: flex;
align-items: center;
gap: 6px;
cursor: pointer;
font-size: calc(11px * var(--base-scale));
}
.log-header span {
font-weight: 600;
font-size: calc(13px * var(--base-scale));
color: var(--text-muted);
}
.log-header input[type="checkbox"] {
width: 14px !important;
height: 14px !important;
margin: 0 !important;
top: 1px !important;
}
.log-header input[type="checkbox"]:checked::after {
top: 1px !important;
left: 4px !important;
width: 2px;
height: 6px;
}
/* 日志复制按钮(绝对定位在日志区右上角) */
.copy-log-btn {
border: none;
cursor: pointer;
font-weight: 600;
font-size: calc(13px * var(--base-scale));
color: var(--text-muted);
display: flex;
align-items: center;
gap: 4px;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
position: absolute;
top: 8px;
right: 8px;
line-height: 12px;
background: #232323;
padding: 3px 6px;
border-radius: 3px;
}
/* ==========================================================================
📱 Responsive & Cursor
========================================================================== */
@media (max-width: 1024px) {
.layout { grid-template-columns: 1fr; }
.left-panel, .middle-panel, .right-panel { height: auto; min-height: 400px; max-height: none; }
}
/* 窄屏:纵向堆叠,高度放开(单列滚动本来就自然,固定高度反而浪费) */
@media (max-width: 640px) {
.preview-card-panel { height: auto; }
.preview-card { flex-direction: column; height: auto; gap: 12px; }
.preview-media {
flex: 0 0 auto;
width: min(58%, 220px);
height: auto;
aspect-ratio: 3 / 4;
align-self: center;
}
.preview-info { height: auto; justify-content: flex-start; overflow: visible; }
.pt-scroll { overflow: visible; }
}
select, input[type="checkbox"] { cursor: pointer; }
.lora-row label, .lora-row input[type="checkbox"] { cursor: pointer; }
/* ==========================================================================
✨ Shimmer Effects (扫光动画)
========================================================================== */
.shimmer-overlay {
position: absolute;
top: 0; left: 0; right: 0; bottom: 0;
z-index: 10;
pointer-events: none;
overflow: hidden;
border-radius: 6px;
}
.shimmer-overlay::before {
content: "";
position: absolute;
top: -50%; left: -50%;
width: 200%; height: 200%;
background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.12) 50%, transparent 70%);
animation: shimmer-sweep 1.5s infinite linear;
}
.selected-big-img.shimmer-active {
background: #151515;
animation: shimmer-bg-pulse 1.5s infinite linear;
}
/* Fix 2: 大图加载中的扫光脉冲背景(复用 shimmer-bg-pulse,视觉与 bigImage 扫光一致) */
.preview-media.loading {
background: #151515;
animation: shimmer-bg-pulse 1.5s infinite linear;
}
@keyframes shimmer-sweep {
0% { transform: translate(-40%, -40%); }
100% { transform: translate(40%, 40%); }
}
@keyframes shimmer-bg-pulse {
0%, 100% { background-color: #1a1a1a; }
50% { background-color: #252525; }
}
/* ==========================================================================
📐 Aspect Ratio & Custom Checkbox
========================================================================== */
.aspect-ratio-row { display: flex; gap: 8px; width: 100%; }
.ratio-btn {
flex: 1;
background: var(--input-bg);
border: 1px solid var(--border-light);
color: var(--text-main);
padding: 6px 0;
border-radius: 6px;
font-size: calc(12px * var(--base-scale));
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
font-family: inherit;
}
.ratio-btn.active {
background: var(--input-bg) !important;
border: 1px solid var(--accent) !important;
color: var(--accent) !important;
box-shadow: 0 0 6px rgba(255, 127, 80, 0.2);
}
/* 自定义 Checkbox 样式 */
input[type="checkbox"] {
-webkit-appearance: none !important;
appearance: none !important;
width: 18px !important;
height: 18px !important;
background-color: transparent !important;
border: 1px solid var(--border-light) !important;
border-radius: 4px !important;
cursor: pointer;
position: relative;
transition: all 0.2s ease;
flex-shrink: 0;
margin: 0;
vertical-align: middle;
}
input[type="checkbox"]:hover { border-color: #888 !important; }
input[type="checkbox"]:checked { background-color: var(--accent) !important; border-color: var(--accent) !important; }
input[type="checkbox"]:checked::after {
content: "";
position: absolute;
top: 2px;
left: 5px;
width: 4px;
height: 8px;
border: solid white !important;
border-width: 0 2px 2px 0 !important;
transform: rotate(45deg);
}
/* 禁用态:整块变灰,勾选后的橙色也降为中性灰 */
input[type="checkbox"]:disabled {
opacity: .45;
cursor: not-allowed;
border-color: #3a3a3a !important;
}
input[type="checkbox"]:disabled:checked {
background-color: #4a4a4a !important;
border-color: #4a4a4a !important;
}
/* ==========================================================================
🎲 Hover States
========================================================================== */
.seed-group button:hover {
background: #333 !important;
border-color: #d65a31 !important;
color: #fff !important;
}
.ratio-btn:hover {
background: #333 !important;
border-color: #d65a31 !important;
color: var(--text-main) !important;
}
/* ==========================================================================
🏷️ Trigger Words(chips 横排换行;无展开动画;无空态占位)
========================================================================== */
/* 现在它是滚动区里的第一行:跟着 chips 一起滚走 */
.pt-label {
display: block;
flex: 0 0 auto;
padding-top: 8px; /* 只在滚到顶时有呼吸感;滚走后不占位 */
font-size: calc(11px * var(--base-scale));
color: var(--text-muted);
text-transform: uppercase;
font-weight: 600;
letter-spacing: .1em;
line-height: 1;
margin-bottom: 8px;
}
.pt-scroll {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
/* ⚠️ 不能用负 margin 把滚动条推出父级:.pi-trigger 是 overflow:hidden,会连滚动条一起裁掉 */
padding-right: 4px;
/* 不用 scrollbar-width/thin:Chrome 下它会覆盖 ::-webkit-scrollbar,实测占位 10px 而不是 6px */
}
/* WebKit:6px、比面板底色亮一档,保证"有没有滚动"一眼可辨 */
.pt-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.pt-scroll::-webkit-scrollbar-track { background: transparent; }
.pt-scroll::-webkit-scrollbar-thumb { background: #5a5a5a; border-radius: 3px; }
.pt-scroll::-webkit-scrollbar-thumb:hover { background: #7a7a7a; }
.pt-scroll.is-scrolled::before { opacity: 1; }
.pt-list {
display: flex;
flex-wrap: wrap;
gap: 6px;
padding-bottom: 12px;
}
.pt-box {
max-width: 100%;
padding: 4px 8px;
border-radius: 6px;
cursor: pointer;
background: var(--input-bg);
transition: background .15s ease;
}
.pt-box:hover { background: var(--border); }
.pt-text {
display: block;
font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
font-size: 0.65rem;
line-height: 1.3;
color: #e8e8e8;
word-break: break-word;
}
.pt-box.copied { background: #2f2f2f; }
.pt-box.copied .pt-text { color: #e8e8e8; }
/* ==========================================================================
⏳ Generation Loader(灰色点阵扩散 + 淡出)
========================================================================== */
.gen-loader {
position: absolute;
inset: 0;
z-index: 5;
display: none; /* ← 关键:默认不渲染,之前就是丢了这段 */
flex-direction: column;
align-items: center;
justify-content: center;
gap: 18px;
background: var(--panel-bg);
opacity: 0;
transition: opacity .3s ease;
pointer-events: none;
}
.gen-loader.active { display: flex; }
.gen-loader.visible { opacity: 1; }
.gen-loader.fading { opacity: 0; }
.gen-loader-dots {
display: grid;
grid-template-columns: repeat(7, 15px); /* 精准 7×7 网格,保持你喜欢的 15px 宽松间距 */
grid-auto-rows: 15px;
justify-items: center;
align-items: center;
}
.gen-loader-dots i {
/* 1. 静态尺寸由 JS 按距离直接赋予,天生自带“中心大、边缘针尖”的球体梯度! */
width: var(--size, 6px);
height: var(--size, 6px);
border-radius: 50%;
/* 直接使用 JS 按距离分配的专属亮度颜色 */
background: var(--border-light);
/* 2. 动画不再归零破坏梯度,而是在各自静态大小的基础上做 0.35 ~ 1.35 倍的涟漪起伏 */
transform: scale(0);
opacity: 0.35;
animation: genDotWave 2.2s ease-in-out infinite;
animation-delay: var(--d, 0s);
}
@keyframes genSphereRipple {
0%, 100% {
transform: scale(0);
opacity: 0;
}
30% {
transform: scale(1.35);
opacity: 1;
}
65% {
transform: scale(0);
opacity: 0;
}
}
/* 关键:波峰极窄(只在 25% 处瞬间冲顶),其余时间全部保持针尖大小 */
/* @keyframes genRipplePulse {
0%, 100% {
transform: scale(0.08);
opacity: 0.22;
}
25% {
transform: scale(1.1);
opacity: 1;
}
55% {
transform: scale(0.08);
opacity: 0.22;
}
} */
/* 中心 0 → 十字 0.12s → 四角 0.24s,向外扩散 */
/* .gen-loader-dots i:nth-child(1) { animation-delay: .24s; }
.gen-loader-dots i:nth-child(2) { animation-delay: .12s; }
.gen-loader-dots i:nth-child(3) { animation-delay: .24s; }
.gen-loader-dots i:nth-child(4) { animation-delay: .12s; }
.gen-loader-dots i:nth-child(5) { animation-delay: 0s; }
.gen-loader-dots i:nth-child(6) { animation-delay: .12s; }
.gen-loader-dots i:nth-child(7) { animation-delay: .24s; }
.gen-loader-dots i:nth-child(8) { animation-delay: .12s; }
.gen-loader-dots i:nth-child(9) { animation-delay: .24s; } */
@keyframes genDotWave {
0%, 100% { opacity: .18; transform: scale(.55); background: var(--border-light); }
45% { opacity: .95; transform: scale(1); background: #8f8f8f; }
65% { opacity: .70; transform: scale(.85); background: var(--border-light); }
}
.gen-loader-text {
font-size: calc(12px * var(--base-scale));
letter-spacing: .16em;
text-transform: uppercase;
color: var(--text-muted);
animation: genTextPulse 2.2s ease-in-out infinite
}
@keyframes genTextPulse {
0%, 100% { opacity: .40; }
50% { opacity: .90; }
}
#result-image.reveal {
animation: genImageReveal .55s cubic-bezier(.22, .61, .36, 1) both;
opacity: 1; /* ← 新增:动画结束后的最终态兜底 */
transform: scale(1);
}
@keyframes genImageReveal {
from { opacity: 0; transform: scale(.965); }
to { opacity: 1; transform: scale(1); }
} |