style.css 20.7 KB
Newer Older
C
catboxanon 已提交
1 2 3
/* temporary fix to load default gradio font in frontend instead of backend */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600&display=swap');
B
Ben 已提交
4

A
AUTOMATIC 已提交
5
/* general gradio fixes */
6

A
AUTOMATIC 已提交
7
:root, .dark{
A
AUTOMATIC 已提交
8 9
    --checkbox-label-gap: 0.25em 0.1em;
    --section-header-text-size: 12pt;
A
AUTOMATIC 已提交
10
    --block-background-fill: transparent;
A
AUTOMATIC1111 已提交
11

B
Ben 已提交
12 13
}

14
.block.padded:not(.gradio-accordion) {
15
    padding: 0 !important;
16 17
}

A
AUTOMATIC 已提交
18 19
div.gradio-container{
    max-width: unset !important;
B
Ben 已提交
20 21
}

A
AUTOMATIC 已提交
22 23
.hidden{
    display: none;
B
Ben 已提交
24 25
}

A
AUTOMATIC 已提交
26 27 28
.compact{
    background: transparent !important;
    padding: 0 !important;
W
whw1sfb 已提交
29
}
E
EyeDeck 已提交
30

A
AUTOMATIC 已提交
31 32 33 34 35 36
div.form{
    border-width: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
    gap: 0.5em;
M
Michoko 已提交
37 38
}

A
AUTOMATIC 已提交
39 40 41 42 43 44
.block.gradio-dropdown,
.block.gradio-slider,
.block.gradio-checkbox,
.block.gradio-textbox,
.block.gradio-radio,
.block.gradio-checkboxgroup,
45
.block.gradio-number,
46
.block.gradio-colorpicker {
A
AUTOMATIC 已提交
47 48
    border-width: 0 !important;
    box-shadow: none !important;
E
EyeDeck 已提交
49 50
}

51 52 53 54
div.gradio-group, div.styler{
    border-width: 0 !important;
    background: none;
}
A
AUTOMATIC 已提交
55 56
.gap.compact{
    padding: 0;
57
    gap: 0.2em 0;
58 59
}

A
AUTOMATIC 已提交
60
div.compact{
61
    gap: 1em;
E
EyeDeck 已提交
62 63
}

64 65 66 67
.gradio-dropdown label span:not(.has-info),
.gradio-textbox label span:not(.has-info),
.gradio-number label span:not(.has-info)
{
A
AUTOMATIC 已提交
68
    margin-bottom: 0;
A
AUTOMATIC 已提交
69 70
}

71 72 73 74 75
.gradio-dropdown ul.options{
    z-index: 3000;
    min-width: fit-content;
    max-width: inherit;
    white-space: nowrap;
76 77 78
}

.gradio-dropdown ul.options li.item {
79
    padding: 0.05em 0;
80 81 82
}

.gradio-dropdown ul.options li.item.selected {
83 84 85 86 87
    background-color: var(--neutral-100);
}

.dark .gradio-dropdown ul.options li.item.selected {
    background-color: var(--neutral-900);
88 89
}

A
AUTOMATIC 已提交
90 91
.gradio-dropdown div.wrap.wrap.wrap.wrap{
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
92 93
}

P
pieresimakp 已提交
94
.gradio-dropdown:not(.multiselect) .wrap-inner.wrap-inner.wrap-inner{
A
AUTOMATIC 已提交
95
    flex-wrap: unset;
I
ItsOlegDm 已提交
96
}
A
AUTOMATIC 已提交
97 98 99 100

.gradio-dropdown .single-select{
    white-space: nowrap;
    overflow: hidden;
I
ItsOlegDm 已提交
101
}
A
AUTOMATIC 已提交
102

103 104
.gradio-dropdown .token-remove.remove-all.remove-all{
    display: none;
E
EyeDeck 已提交
105 106
}

107 108
.gradio-dropdown.multiselect .token-remove.remove-all.remove-all{
    display: flex;
E
EyeDeck 已提交
109 110
}

A
AUTOMATIC 已提交
111 112
.gradio-slider input[type="number"]{
    width: 6em;
E
EyeDeck 已提交
113 114
}

A
AUTOMATIC 已提交
115 116
.block.gradio-checkbox {
    margin: 0.75em 1.5em 0 0;
117 118
}

A
AUTOMATIC 已提交
119 120 121 122 123
.gradio-html div.wrap{
    height: 100%;
}
div.gradio-html.min{
    min-height: 0;
M
Michoko 已提交
124 125
}

126 127
.block.gradio-gallery{
    background: var(--input-background-fill);
128 129
}

130 131 132
.gradio-container .prose a, .gradio-container .prose a:visited{
    color: unset;
    text-decoration: none;
133 134
}

135 136 137 138
a{
    font-weight: bold;
    cursor: pointer;
}
139

C
catboxanon 已提交
140 141
/* gradio 3.39 puts a lot of overflow: hidden all over the place for an unknown reason. */
div.gradio-container, .block.gradio-textbox, div.gradio-group, div.gradio-dropdown{
C
catboxanon 已提交
142 143 144
    overflow: visible !important;
}

M
MMP0 已提交
145 146 147 148 149
/* align-items isn't enough and elements may overflow in Safari. */
.unequal-height {
    align-content: flex-start;
}

150

A
AUTOMATIC 已提交
151
/* general styled components */
152

A
AUTOMATIC 已提交
153 154 155 156 157 158 159
.gradio-button.tool{
    max-width: 2.2em;
    min-width: 2.2em !important;
    height: 2.4em;
    align-self: end;
    line-height: 1em;
    border-radius: 0.5em;
160 161
}

162 163 164 165 166 167 168 169 170 171 172 173
.gradio-button.secondary-down{
    background: var(--button-secondary-background-fill);
    color: var(--button-secondary-text-color);
}
.gradio-button.secondary-down, .gradio-button.secondary-down:hover{
    box-shadow: 1px 1px 1px rgba(0,0,0,0.25) inset, 0px 0px 3px rgba(0,0,0,0.15) inset;
}
.gradio-button.secondary-down:hover{
    background: var(--button-secondary-background-fill-hover);
    color: var(--button-secondary-text-color-hover);
}

A
AUTOMATIC 已提交
174 175 176 177 178 179 180 181 182 183 184 185 186 187
button.custom-button{
    border-radius: var(--button-large-radius);
    padding: var(--button-large-padding);
    font-weight: var(--button-large-text-weight);
    border: var(--button-border-width) solid var(--button-secondary-border-color);
    background: var(--button-secondary-background-fill);
    color: var(--button-secondary-text-color);
    font-size: var(--button-large-text-size);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: var(--button-transition);
    box-shadow: var(--button-shadow);
    text-align: center;
188 189
}

A
AUTOMATIC1111 已提交
190
div.block.gradio-accordion {
C
catboxanon 已提交
191 192 193 194 195 196
    border: 1px solid var(--block-border-color) !important;
    border-radius: 8px !important;
    margin: 2px 0;
    padding: 8px 8px;
}

197

A
AUTOMATIC 已提交
198
/* txt2img/img2img specific */
A
AUTOMATIC 已提交
199

A
AUTOMATIC 已提交
200 201 202 203
.block.token-counter{
    position: absolute;
    display: inline-block;
    right: 1em;
A
AUTOMATIC 已提交
204
    min-width: 0 !important;
A
AUTOMATIC 已提交
205 206
    width: auto;
    z-index: 100;
A
AUTOMATIC 已提交
207
    top: -0.75em;
G
Greendayle 已提交
208
}
209

A
AUTOMATIC 已提交
210 211 212 213 214
.block.token-counter span{
    background: var(--input-background-fill) !important;
    box-shadow: 0 0 0.0 0.3em rgba(192,192,192,0.15), inset 0 0 0.6em rgba(192,192,192,0.075);
    border: 2px solid rgba(192,192,192,0.4) !important;
    border-radius: 0.4em;
A
AUTOMATIC 已提交
215 216
}

A
AUTOMATIC 已提交
217 218 219
.block.token-counter.error span{
    box-shadow: 0 0 0.0 0.3em rgba(255,0,0,0.15), inset 0 0 0.6em rgba(255,0,0,0.075);
    border: 2px solid rgba(255,0,0,0.4) !important;
A
AUTOMATIC 已提交
220 221
}

A
AUTOMATIC 已提交
222 223
.block.token-counter div{
    display: inline;
A
AUTOMATIC 已提交
224 225
}

A
AUTOMATIC 已提交
226 227
.block.token-counter span{
    padding: 0.1em 0.75em;
A
AUTOMATIC 已提交
228
}
I
ItsOlegDm 已提交
229

230 231 232 233 234 235 236 237 238 239 240 241 242 243 244
[id$=_subseed_show]{
    min-width: auto !important;
    flex-grow: 0 !important;
    display: flex;
}

[id$=_subseed_show] label{
    margin-bottom: 0.65em;
    align-self: end;
}

[id$=_seed_extras] > div{
    gap: 0.5em;
}

245 246 247 248
.html-log .comments{
    padding-top: 0.5em;
}

249 250 251 252
.html-log .comments:empty{
    padding-top: 0;
}

253
.html-log .performance {
A
AUTOMATIC 已提交
254 255
    font-size: 0.85em;
    color: #444;
A
AUTOMATIC1111 已提交
256
    display: flex;
257 258
}

259
.html-log .performance p{
A
AUTOMATIC 已提交
260
    display: inline-block;
A
AUTOMATIC 已提交
261 262
}

263
.html-log .performance p.time, .performance p.vram, .performance p.time abbr, .performance p.vram abbr {
A
AUTOMATIC1111 已提交
264 265 266 267
    margin-bottom: 0;
    color: var(--block-title-text-color);
}

268
.html-log .performance p.time {
269 270
}

271
.html-log .performance p.vram {
A
AUTOMATIC1111 已提交
272 273 274
    margin-left: auto;
}

275
.html-log .performance .measurement{
A
AUTOMATIC1111 已提交
276 277
    color: var(--body-text-color);
    font-weight: bold;
278 279
}

A
AUTOMATIC 已提交
280 281
#txt2img_generate, #img2img_generate {
    min-height: 4.5em;
A
AUTOMATIC 已提交
282 283
}

A
AUTOMATIC 已提交
284 285 286 287
@media screen and (min-width: 2500px) {
    #txt2img_gallery, #img2img_gallery {
        min-height: 768px;
    }
A
AUTOMATIC 已提交
288 289
}

290 291
.gradio-gallery .thumbnails img {
    object-fit: scale-down !important;
A
AUTOMATIC 已提交
292
}
A
AUTOMATIC 已提交
293 294 295 296 297
#txt2img_actions_column, #img2img_actions_column {
    gap: 0.5em;
}
#txt2img_tools, #img2img_tools{
    gap: 0.4em;
A
AUTOMATIC 已提交
298 299
}

A
AUTOMATIC 已提交
300 301 302 303 304 305
.interrogate-col{
    min-width: 0 !important;
    max-width: fit-content;
    gap: 0.5em;
}
.interrogate-col > button{
306
    flex: 1;
A
AUTOMATIC 已提交
307 308
}

A
AUTOMATIC 已提交
309 310 311 312
.generate-box{
    position: relative;
}
.gradio-button.generate-box-skip, .gradio-button.generate-box-interrupt{
A
AUTOMATIC 已提交
313
    position: absolute;
A
AUTOMATIC 已提交
314 315 316
    width: 50%;
    height: 100%;
    display: none;
317 318 319 320
    background: #b4c0cc;
}
.gradio-button.generate-box-skip:hover, .gradio-button.generate-box-interrupt:hover{
    background: #c2cfdb;
A
AUTOMATIC 已提交
321 322
}
.gradio-button.generate-box-interrupt{
A
AUTOMATIC 已提交
323
    left: 0;
A
AUTOMATIC 已提交
324 325 326
    border-radius: 0.5rem 0 0 0.5rem;
}
.gradio-button.generate-box-skip{
A
AUTOMATIC 已提交
327
    right: 0;
A
AUTOMATIC 已提交
328
    border-radius: 0 0.5rem 0.5rem 0;
A
AUTOMATIC 已提交
329 330
}

331 332 333 334 335 336
#img2img_scale_resolution_preview.block{
    display: flex;
    align-items: end;
}

#txtimg_hr_finalres .resolution, #img2img_scale_resolution_preview .resolution{
A
AUTOMATIC 已提交
337
    font-weight: bold;
I
innovaciones 已提交
338 339
}

340 341 342 343 344
#txtimg_hr_finalres div.pending, #img2img_scale_resolution_preview div.pending {
    opacity: 1;
    transition: opacity 0s;
}

A
AUTOMATIC 已提交
345 346
.inactive{
    opacity: 0.5;
A
AUTOMATIC 已提交
347 348
}

A
AUTOMATIC 已提交
349 350 351
[id$=_column_batch]{
    min-width: min(13.5em, 100%) !important;
}
A
AUTOMATIC 已提交
352

A
AUTOMATIC 已提交
353
div.dimensions-tools{
354
    min-width: 1.6em !important;
A
AUTOMATIC 已提交
355
    max-width: fit-content;
356 357
    flex-direction: column;
    place-content: center;
358
}
359

360 361 362 363
div#extras_scale_to_tab div.form{
    flex-direction: row;
}

Z
zetclansu 已提交
364 365 366 367 368 369 370
#img2img_sketch, #img2maskimg, #inpaint_sketch {
    overflow: overlay !important;
    resize: auto;
    background: var(--panel-background-fill);
    z-index: 5;
}

371 372
.image-buttons > .form{
    justify-content: center;
373 374
}

375
.infotext {
376
    overflow-wrap: break-word;
A
AUTOMATIC 已提交
377
}
378

379 380 381 382 383 384 385 386 387 388 389 390
#img2img_column_batch{
    align-self: end;
    margin-bottom: 0.9em;
}

#img2img_unused_scale_by_slider{
    visibility: hidden;
    width: 0.5em;
    max-width: 0.5em;
    min-width: 0.5em;
}

A
AUTOMATIC 已提交
391 392
/* settings */
#quicksettings {
M
missionfloyd 已提交
393
    align-items: end;
A
AUTOMATIC 已提交
394
}
A
AUTOMATIC 已提交
395

A
AUTOMATIC 已提交
396
#quicksettings > div, #quicksettings > fieldset{
397 398
    max-width: 36em;
    width: fit-content;
A
AUTOMATIC1111 已提交
399
    flex: 0 1 fit-content;
A
AUTOMATIC 已提交
400
    padding: 0;
A
AUTOMATIC 已提交
401
    border: none;
A
AUTOMATIC 已提交
402 403
    box-shadow: none;
    background: none;
A
AUTOMATIC 已提交
404
}
405 406 407
#quicksettings > div.gradio-dropdown{
    min-width: 24em !important;
}
A
AUTOMATIC 已提交
408

409 410 411 412 413 414 415 416 417
#settings{
    display: block;
}

#settings > div{
    border: none;
    margin-left: 10em;
}

A
AUTOMATIC 已提交
418
#settings > div.tab-nav{
419 420 421 422 423 424
    float: left;
    display: block;
    margin-left: 0;
    width: 10em;
}

A
AUTOMATIC 已提交
425
#settings > div.tab-nav button{
426 427 428
    display: block;
    border: none;
    text-align: left;
429
    white-space: initial;
430 431 432 433 434 435 436
}

#settings_result{
    height: 1.4em;
    margin: 0 1.2em;
}

A
AUTOMATIC 已提交
437
table.popup-table{
438 439
    background: var(--body-background-fill);
    color: var(--body-text-color);
440 441
    border-collapse: collapse;
    margin: 1em;
442
    border: 4px solid var(--body-background-fill);
443 444
}

A
AUTOMATIC 已提交
445
table.popup-table td{
446
    padding: 0.4em;
447
    border: 1px solid rgba(128, 128, 128, 0.5);
448 449
    max-width: 36em;
}
A
AUTOMATIC 已提交
450

A
AUTOMATIC 已提交
451 452 453 454
table.popup-table .muted{
    color: #aaa;
}

455 456 457 458 459 460
table.popup-table .link{
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
}

A
AUTOMATIC 已提交
461 462 463 464
.ui-defaults-none{
    color: #aaa !important;
}

465 466 467 468
#settings span{
    color: var(--body-text-color);
}

469
#settings .gradio-textbox, #settings .gradio-slider, #settings .gradio-number, #settings .gradio-dropdown, #settings .gradio-checkboxgroup, #settings .gradio-radio{
470 471 472
    margin-top: 0.75em;
}

473
#settings span .settings-comment {
474 475 476 477 478 479 480 481 482 483 484
    display: inline
}

.settings-comment a{
    text-decoration: underline;
}

.settings-comment .info{
    opacity: 0.75;
}

485
#sysinfo_download a.sysinfo_big_link{
A
AUTOMATIC 已提交
486
    font-size: 24pt;
487 488 489
}

#sysinfo_download a{
A
AUTOMATIC 已提交
490 491 492 493 494 495 496
    text-decoration: underline;
}

#sysinfo_validity{
    font-size: 18pt;
}

497 498 499 500 501 502 503
#settings .settings-info{
    max-width: 48em;
    border: 1px dotted #777;
    margin: 0;
    padding: 1em;
}

A
AUTOMATIC 已提交
504

A
AUTOMATIC 已提交
505
/* live preview */
A
AUTOMATIC 已提交
506
.progressDiv{
507
    position: absolute;
508 509
    height: 20px;
    background: #b4c0cc;
A
AUTOMATIC 已提交
510
    border-radius: 3px !important;
511 512 513 514 515
    top: -20px;
}

[id$=_results].mobile{
    margin-top: 28px;
A
AUTOMATIC 已提交
516 517 518
}

.dark .progressDiv{
519
    background: #424c5b;
A
AUTOMATIC 已提交
520 521 522
}

.progressDiv .progress{
523 524 525 526 527 528 529 530
    width: 0%;
    height: 20px;
    background: #0060df;
    color: white;
    font-weight: bold;
    line-height: 20px;
    padding: 0 8px 0 0;
    text-align: right;
A
AUTOMATIC 已提交
531
    border-radius: 3px;
532 533
    overflow: visible;
    white-space: nowrap;
A
AUTOMATIC 已提交
534
    padding: 0 0.5em;
535 536 537 538 539
}

.livePreview{
    position: absolute;
    z-index: 300;
540 541 542
    background: var(--background-fill-primary);
    width: 100%;
    height: 100%;
543 544
}

545
.livePreview img{
A
AUTOMATIC 已提交
546
    position: absolute;
547 548
    object-fit: contain;
    width: 100%;
549
    height: calc(100% - 60px);  /* to match gradio's height */
A
AUTOMATIC 已提交
550
}
A
AUTOMATIC 已提交
551

A
AUTOMATIC 已提交
552 553
/* fullscreen popup (ie in Lora's (i) button) */

554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573
.popup-metadata{
    color: black;
    background: white;
    display: inline-block;
    padding: 1em;
    white-space: pre-wrap;
}

.global-popup{
    display: flex;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(20, 20, 20, 0.95);
}

574 575 576
.global-popup *{
    box-sizing: border-box;
}
577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596

.global-popup-close:before {
    content: "×";
}

.global-popup-close{
    position: fixed;
    right: 0.25em;
    top: 0;
    cursor: pointer;
    color: white;
    font-size: 32pt;
}

.global-popup-inner{
    display: inline-block;
    margin: auto;
    padding: 2em;
}

A
AUTOMATIC 已提交
597 598
/* fullpage image viewer */

D
DepFA 已提交
599
#lightboxModal{
600 601 602 603 604 605 606 607 608 609 610 611
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(20, 20, 20, 0.95);
    user-select: none;
    -webkit-user-select: none;
    flex-direction: column;
D
DepFA 已提交
612 613
}

614
.modalControls {
615 616 617
    display: flex;
    gap: 1em;
    padding: 1em;
618 619 620 621 622 623
    background-color:rgba(0,0,0,0);
    z-index: 1;
    transition: 0.2s ease background-color;
}
.modalControls:hover {
    background-color:rgba(0,0,0,0.9);
624 625
}
.modalClose {
626
    margin-left: auto;
D
DepFA 已提交
627
}
628
.modalControls span{
629
    color: white;
630
    text-shadow: 0px 0px 0.25em black;
631
    font-size: 35px;
632 633
    font-weight: bold;
    cursor: pointer;
634
    width: 1em;
635 636
}

637 638 639
.modalControls span:hover, .modalControls span:focus{
    color: #999;
    text-decoration: none;
D
DepFA 已提交
640 641
}

642
#lightboxModal > img {
D
DepFA 已提交
643
    display: block;
644
    margin: auto;
D
DepFA 已提交
645 646 647
    width: auto;
}

648
#lightboxModal > img.modalImageFullscreen{
D
DepFA 已提交
649
    object-fit: contain;
650
    height: 100%;
651
    width: 100%;
652
    min-height: 0;
D
DepFA 已提交
653 654
}

655 656 657 658 659 660 661
#modalImage{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
}

D
DepFA 已提交
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
.modalPrev,
.modalNext {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

.modalNext {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.modalPrev:hover,
.modalNext:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
D
DepFA 已提交
688

689 690 691 692 693 694 695 696 697 698 699
#imageARPreview {
    position: absolute;
    top: 0px;
    left: 0px;
    border: 2px solid red;
    background: rgba(255, 0, 0, 0.3);
    z-index: 900;
    pointer-events: none;
    display: none;
}

A
AUTOMATIC 已提交
700
/* context menu (ie for the generate button) */
701

D
DepFA 已提交
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
#context-menu{
    z-index:9999;
    position:absolute;
    display:block;
    padding:0px 0;
    border:2px solid #a55000;
    border-radius:8px;
    box-shadow:1px 1px 2px #CE6400;
    width: 200px;
}

.context-menu-items{
    list-style: none;
    margin: 0;
    padding: 0;
}

.context-menu-items a{
    display:block;
    padding:5px;
    cursor:pointer;
}

.context-menu-items a:hover{
    background: #a55000;
}
728

729

A
AUTOMATIC 已提交
730
/* extensions */
731

732
#tab_extensions table{
733 734 735
    border-collapse: collapse;
}

A
AUTOMATIC 已提交
736
#tab_extensions table td, #tab_extensions table th{
737 738 739 740
    border: 1px solid #ccc;
    padding: 0.25em 0.5em;
}

A
AUTOMATIC 已提交
741
#tab_extensions table input[type="checkbox"]{
742
    margin-right: 0.5em;
A
AUTOMATIC 已提交
743
    appearance: checkbox;
744 745 746 747 748 749
}

#tab_extensions button{
    max-width: 16em;
}

A
AUTOMATIC 已提交
750 751 752
#tab_extensions input[disabled="disabled"]{
    opacity: 0.5;
}
753

754 755 756 757 758
.extension-tag{
    font-weight: bold;
    font-size: 95%;
}

759 760 761 762
#available_extensions .info{
    margin: 0;
}

W
w-e-w 已提交
763 764 765 766 767
#available_extensions .info{
    margin: 0.5em 0;
    display: flex;
    margin-top: auto;
    opacity: 0.80;
768 769 770
    font-size: 90%;
}

W
w-e-w 已提交
771 772 773 774 775 776 777 778 779 780
#available_extensions .date_added{
    margin-right: auto;
    display: inline-block;
}

#available_extensions .star_count{
    margin-left: auto;
    display: inline-block;
}

A
AUTOMATIC 已提交
781
/* replace original footer with ours */
782

A
AUTOMATIC 已提交
783 784 785 786 787 788 789 790 791 792 793
footer {
    display: none !important;
}

#footer{
    text-align: center;
}

#footer div{
    display: inline-block;
}
A
AUTOMATIC 已提交
794

A
AUTOMATIC 已提交
795 796 797 798 799
#footer .versions{
    font-size: 85%;
    opacity: 0.85;
}

A
AUTOMATIC 已提交
800
/* extra networks UI */
801

R
Reimoo 已提交
802
.extra-network-cards{
803 804
    height: calc(100vh - 24rem);
    overflow: clip scroll;
805
    resize: vertical;
806
    min-height: 52rem;
807 808 809
}

.extra-networks > div.tab-nav{
A
AUTOMATIC1111 已提交
810
    min-height: 3.4rem;
R
Reimoo 已提交
811 812
}

A
AUTOMATIC 已提交
813 814
.extra-networks > div > [id *= '_extra_']{
    margin: 0.3em;
A
AUTOMATIC 已提交
815
}
A
AUTOMATIC 已提交
816

817 818 819
.extra-network-subdirs{
    padding: 0.2em 0.35em;
}
A
AUTOMATIC 已提交
820

821 822 823
.extra-network-subdirs button{
    margin: 0 0.15em;
}
824
.extra-networks .tab-nav .search,
825 826 827
.extra-networks .tab-nav .sort,
.extra-networks .tab-nav .show-dirs
{
A
AUTOMATIC 已提交
828
    margin: 0.3em;
829
    align-self: center;
830
    width: auto;
831 832 833
}

.extra-networks .tab-nav .search {
A
AUTOMATIC 已提交
834
    width: 16em;
835 836 837 838 839 840
    max-width: 16em;
}

.extra-networks .tab-nav .sort {
    width: 12em;
    max-width: 12em;
A
AUTOMATIC 已提交
841 842
}

843 844 845 846
#txt2img_extra_view, #img2img_extra_view {
    width: auto;
}

847
.extra-network-cards .nocards{
A
AUTOMATIC 已提交
848 849 850
    margin: 1.25em 0.5em 0.5em 0.5em;
}

851
.extra-network-cards .nocards h1{
A
AUTOMATIC 已提交
852 853 854 855
    font-size: 1.5em;
    margin-bottom: 1em;
}

856
.extra-network-cards .nocards li{
A
AUTOMATIC 已提交
857 858 859
    margin-left: 0.5em;
}

860

861
.extra-network-cards .card .button-row{
862 863 864
    display: none;
    position: absolute;
    color: white;
865
    right: 0;
866
    z-index: 1
867
}
868
.extra-network-cards .card:hover .button-row{
869 870 871
    display: flex;
}

872
.extra-network-cards .card .card-button{
873 874 875
    color: white;
}

876
.extra-network-cards .card .metadata-button:before{
877 878 879
    content: "🛈";
}

880
.extra-network-cards .card .edit-button:before{
881 882 883 884
    content: "🛠";
}

.extra-network-cards .card .card-button {
885
    text-shadow: 2px 2px 3px black;
886
    padding: 0.25em 0.1em;
887
    font-size: 200%;
888
    width: 1.5em;
889
}
890
.extra-network-cards .card .card-button:hover{
891 892 893 894
    color: red;
}


895
.standalone-card-preview.card .preview{
896 897 898 899 900 901
    position: absolute;
    object-fit: cover;
    width: 100%;
    height:100%;
}

902
.extra-network-cards .card, .standalone-card-preview.card{
A
AUTOMATIC 已提交
903
    display: inline-block;
904 905 906
    margin: 0.5rem;
    width: 16rem;
    height: 24rem;
A
AUTOMATIC 已提交
907
    box-shadow: 0 0 5px rgba(128, 128, 128, 0.5);
908
    border-radius: 0.2rem;
A
AUTOMATIC 已提交
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
    position: relative;

    background-size: auto 100%;
    background-position: center;
    overflow: hidden;
    cursor: pointer;

    background-image: url('./file=html/card-no-preview.png')
}

.extra-network-cards .card:hover{
    box-shadow: 0 0 2px 0.3em rgba(0, 128, 255, 0.35);
}

.extra-network-cards .card .actions .additional{
    display: none;
}

.extra-network-cards .card .actions{
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5em;
    background: rgba(0,0,0,0.5);
    box-shadow: 0 0 0.25em 0.25em rgba(0,0,0,0.5);
    text-shadow: 0 0 0.2em black;
}

A
AUTOMATIC 已提交
938 939 940 941
.extra-network-cards .card .actions *{
    color: white;
}

A
AUTOMATIC 已提交
942 943 944 945 946 947
.extra-network-cards .card .actions .name{
    font-size: 1.7em;
    font-weight: bold;
    line-break: anywhere;
}

948 949 950 951 952 953 954 955 956 957 958
.extra-network-cards .card .actions .description {
    display: block;
    max-height: 3em;
    white-space: pre-wrap;
    line-height: 1.1;
}

.extra-network-cards .card .actions .description:hover {
    max-height: none;
}

A
AUTOMATIC 已提交
959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975
.extra-network-cards .card .actions:hover .additional{
    display: block;
}

.extra-network-cards .card ul{
    margin: 0.25em 0 0.75em 0.25em;
    cursor: unset;
}

.extra-network-cards .card ul a{
    cursor: pointer;
}

.extra-network-cards .card ul a:hover{
    color: red;
}

M
missionfloyd 已提交
976 977 978 979 980 981
.extra-network-cards .card .preview{
    position: absolute;
    object-fit: cover;
    width: 100%;
    height:100%;
}
982 983

div.block.gradio-box.edit-user-metadata {
984
    width: 56em;
985 986 987 988 989 990 991 992 993
    background: var(--body-background-fill);
    padding: 2em !important;
}

.edit-user-metadata .extra-network-name{
    font-size: 18pt;
    color: var(--body-text-color);
}

A
AUTOMATIC1111 已提交
994 995 996 997
.edit-user-metadata .file-metadata{
    color: var(--body-text-color);
}

998 999 1000 1001
.edit-user-metadata .file-metadata th{
    text-align: left;
}

1002 1003 1004 1005
.edit-user-metadata .file-metadata th, .edit-user-metadata .file-metadata td{
    padding: 0.3em 1em;
}

1006 1007 1008
.edit-user-metadata .wrap.translucent{
    background: var(--body-background-fill);
}
1009 1010 1011 1012 1013 1014 1015
.edit-user-metadata .gradio-highlightedtext span{
    word-break: break-word;
}

.edit-user-metadata-buttons{
    margin-top: 1.5em;
}
A
AUTOMATIC1111 已提交
1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028




div.block.gradio-box.popup-dialog, .popup-dialog {
    width: 56em;
    background: var(--body-background-fill);
    padding: 2em !important;
}

div.block.gradio-box.popup-dialog > div:last-child, .popup-dialog > div:last-child{
    margin-top: 1em;
}
1029 1030

div.block.input-accordion{
1031

1032 1033 1034 1035 1036 1037
}

.input-accordion-extra{
    flex: 0 0 auto !important;
    margin: 0 0.5em 0 auto;
}
1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053

div.accordions > div.input-accordion{
    min-width: fit-content !important;
}

div.accordions > div.gradio-accordion .label-wrap span{
    white-space: nowrap;
    margin-right: 0.25em;
}

div.accordions{
    gap: 0.5em;
}

div.accordions > div.input-accordion.input-accordion-open{
    flex: 1 auto;
1054
    flex-flow: column;
1055 1056
}

C
catboxanon 已提交
1057 1058 1059 1060 1061 1062 1063

/* sticky right hand columns */

#img2img_results, #txt2img_results, #extras_results {
    position: sticky;
    top: 0.5em;
}
1064

M
MMP0 已提交
1065
body.resizing {
M
MMP0 已提交
1066
    cursor: col-resize !important;
M
MMP0 已提交
1067 1068
}

M
MMP0 已提交
1069
body.resizing * {
M
MMP0 已提交
1070 1071
    pointer-events: none !important;
}
1072

M
MMP0 已提交
1073 1074 1075 1076
body.resizing .resize-handle {
    pointer-events: initial !important;
}

M
MMP0 已提交
1077 1078
.resize-handle {
    position: relative;
M
MMP0 已提交
1079 1080 1081 1082 1083
    cursor: col-resize;
    grid-column: 2 / 3;
    min-width: 16px !important;
    max-width: 16px !important;
    height: 100%;
M
MMP0 已提交
1084
}
1085

M
MMP0 已提交
1086 1087 1088 1089 1090 1091 1092
.resize-handle::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 7.5px;
    border-left: 1px dashed var(--border-color-primary);
1093
}