style.css 20.0 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;
B
Ben 已提交
11 12
}

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

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

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

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

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

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

A
AUTOMATIC 已提交
51 52
.gap.compact{
    padding: 0;
53
    gap: 0.2em 0;
54 55
}

A
AUTOMATIC 已提交
56
div.compact{
57
    gap: 1em;
E
EyeDeck 已提交
58 59
}

60 61 62 63
.gradio-dropdown label span:not(.has-info),
.gradio-textbox label span:not(.has-info),
.gradio-number label span:not(.has-info)
{
A
AUTOMATIC 已提交
64
    margin-bottom: 0;
A
AUTOMATIC 已提交
65 66
}

67 68 69 70 71
.gradio-dropdown ul.options{
    z-index: 3000;
    min-width: fit-content;
    max-width: inherit;
    white-space: nowrap;
72 73 74
}

.gradio-dropdown ul.options li.item {
75
    padding: 0.05em 0;
76 77 78
}

.gradio-dropdown ul.options li.item.selected {
79 80 81 82 83
    background-color: var(--neutral-100);
}

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

A
AUTOMATIC 已提交
86 87
.gradio-dropdown div.wrap.wrap.wrap.wrap{
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
88 89
}

P
pieresimakp 已提交
90
.gradio-dropdown:not(.multiselect) .wrap-inner.wrap-inner.wrap-inner{
A
AUTOMATIC 已提交
91
    flex-wrap: unset;
I
ItsOlegDm 已提交
92
}
A
AUTOMATIC 已提交
93 94 95 96

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

99 100
.gradio-dropdown .token-remove.remove-all.remove-all{
    display: none;
E
EyeDeck 已提交
101 102
}

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

A
AUTOMATIC 已提交
107 108
.gradio-slider input[type="number"]{
    width: 6em;
E
EyeDeck 已提交
109 110
}

A
AUTOMATIC 已提交
111 112
.block.gradio-checkbox {
    margin: 0.75em 1.5em 0 0;
113 114
}

A
AUTOMATIC 已提交
115 116 117 118 119
.gradio-html div.wrap{
    height: 100%;
}
div.gradio-html.min{
    min-height: 0;
M
Michoko 已提交
120 121
}

122 123
.block.gradio-gallery{
    background: var(--input-background-fill);
124 125
}

126 127 128
.gradio-container .prose a, .gradio-container .prose a:visited{
    color: unset;
    text-decoration: none;
129 130
}

131 132 133 134
a{
    font-weight: bold;
    cursor: pointer;
}
135 136


A
AUTOMATIC 已提交
137
/* general styled components */
138

A
AUTOMATIC 已提交
139 140 141 142 143 144 145
.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;
146 147
}

148 149 150 151 152 153 154 155 156 157 158 159
.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 已提交
160 161 162
.checkboxes-row{
    margin-bottom: 0.5em;
    margin-left: 0em;
163
}
A
AUTOMATIC 已提交
164 165 166
.checkboxes-row > div{
    flex: 0;
    white-space: nowrap;
167
    min-width: auto;
168 169
}

A
AUTOMATIC 已提交
170 171 172 173 174 175 176 177 178 179 180 181 182 183
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;
184 185
}

186

A
AUTOMATIC 已提交
187
/* txt2img/img2img specific */
A
AUTOMATIC 已提交
188

A
AUTOMATIC 已提交
189 190 191 192
.block.token-counter{
    position: absolute;
    display: inline-block;
    right: 1em;
A
AUTOMATIC 已提交
193
    min-width: 0 !important;
A
AUTOMATIC 已提交
194 195
    width: auto;
    z-index: 100;
A
AUTOMATIC 已提交
196
    top: -0.75em;
G
Greendayle 已提交
197
}
198

A
AUTOMATIC 已提交
199 200 201 202 203
.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 已提交
204 205
}

A
AUTOMATIC 已提交
206 207 208
.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 已提交
209 210
}

A
AUTOMATIC 已提交
211 212
.block.token-counter div{
    display: inline;
A
AUTOMATIC 已提交
213 214
}

A
AUTOMATIC 已提交
215 216
.block.token-counter span{
    padding: 0.1em 0.75em;
A
AUTOMATIC 已提交
217
}
I
ItsOlegDm 已提交
218

A
AUTOMATIC 已提交
219 220 221 222
[id$=_subseed_show]{
    min-width: auto !important;
    flex-grow: 0 !important;
    display: flex;
A
AUTOMATIC 已提交
223 224
}

A
AUTOMATIC 已提交
225 226 227
[id$=_subseed_show] label{
    margin-bottom: 0.5em;
    align-self: end;
228 229
}

230 231 232 233
.html-log .comments{
    padding-top: 0.5em;
}

234 235 236 237
.html-log .comments:empty{
    padding-top: 0;
}

238
.html-log .performance {
A
AUTOMATIC 已提交
239 240
    font-size: 0.85em;
    color: #444;
A
AUTOMATIC1111 已提交
241
    display: flex;
242 243
}

244
.html-log .performance p{
A
AUTOMATIC 已提交
245
    display: inline-block;
A
AUTOMATIC 已提交
246 247
}

248
.html-log .performance p.time, .performance p.vram, .performance p.time abbr, .performance p.vram abbr {
A
AUTOMATIC1111 已提交
249 250 251 252
    margin-bottom: 0;
    color: var(--block-title-text-color);
}

253
.html-log .performance p.time {
254 255
}

256
.html-log .performance p.vram {
A
AUTOMATIC1111 已提交
257 258 259
    margin-left: auto;
}

260
.html-log .performance .measurement{
A
AUTOMATIC1111 已提交
261 262
    color: var(--body-text-color);
    font-weight: bold;
263 264
}

A
AUTOMATIC 已提交
265 266
#txt2img_generate, #img2img_generate {
    min-height: 4.5em;
A
AUTOMATIC 已提交
267 268
}

A
AUTOMATIC 已提交
269 270 271 272
@media screen and (min-width: 2500px) {
    #txt2img_gallery, #img2img_gallery {
        min-height: 768px;
    }
A
AUTOMATIC 已提交
273 274
}

275
#txt2img_gallery img, #img2img_gallery img, #extras_gallery img{
A
AUTOMATIC 已提交
276
    object-fit: scale-down;
A
AUTOMATIC 已提交
277
}
A
AUTOMATIC 已提交
278 279 280 281 282
#txt2img_actions_column, #img2img_actions_column {
    gap: 0.5em;
}
#txt2img_tools, #img2img_tools{
    gap: 0.4em;
A
AUTOMATIC 已提交
283 284
}

A
AUTOMATIC 已提交
285 286 287 288 289 290
.interrogate-col{
    min-width: 0 !important;
    max-width: fit-content;
    gap: 0.5em;
}
.interrogate-col > button{
291
    flex: 1;
A
AUTOMATIC 已提交
292 293
}

A
AUTOMATIC 已提交
294 295 296 297
.generate-box{
    position: relative;
}
.gradio-button.generate-box-skip, .gradio-button.generate-box-interrupt{
A
AUTOMATIC 已提交
298
    position: absolute;
A
AUTOMATIC 已提交
299 300 301
    width: 50%;
    height: 100%;
    display: none;
302 303 304 305
    background: #b4c0cc;
}
.gradio-button.generate-box-skip:hover, .gradio-button.generate-box-interrupt:hover{
    background: #c2cfdb;
A
AUTOMATIC 已提交
306 307
}
.gradio-button.generate-box-interrupt{
A
AUTOMATIC 已提交
308
    left: 0;
A
AUTOMATIC 已提交
309 310 311
    border-radius: 0.5rem 0 0 0.5rem;
}
.gradio-button.generate-box-skip{
A
AUTOMATIC 已提交
312
    right: 0;
A
AUTOMATIC 已提交
313
    border-radius: 0 0.5rem 0.5rem 0;
A
AUTOMATIC 已提交
314 315
}

316
#txtimg_hr_finalres{
A
AUTOMATIC 已提交
317 318 319
    min-height: 0 !important;
    padding: .625rem .75rem;
    margin-left: -0.75em
I
innovaciones 已提交
320 321
}

322 323 324 325 326 327
#img2img_scale_resolution_preview.block{
    display: flex;
    align-items: end;
}

#txtimg_hr_finalres .resolution, #img2img_scale_resolution_preview .resolution{
A
AUTOMATIC 已提交
328
    font-weight: bold;
I
innovaciones 已提交
329 330
}

331 332 333 334 335
#txtimg_hr_finalres div.pending, #img2img_scale_resolution_preview div.pending {
    opacity: 1;
    transition: opacity 0s;
}

A
AUTOMATIC 已提交
336 337
.inactive{
    opacity: 0.5;
A
AUTOMATIC 已提交
338 339
}

A
AUTOMATIC 已提交
340 341 342
[id$=_column_batch]{
    min-width: min(13.5em, 100%) !important;
}
A
AUTOMATIC 已提交
343

A
AUTOMATIC 已提交
344
div.dimensions-tools{
A
AUTOMATIC 已提交
345 346
    min-width: 0 !important;
    max-width: fit-content;
347 348
    flex-direction: column;
    place-content: center;
349
}
350

351 352 353 354
div#extras_scale_to_tab div.form{
    flex-direction: row;
}

Z
zetclansu 已提交
355 356 357 358 359 360 361
#img2img_sketch, #img2maskimg, #inpaint_sketch {
    overflow: overlay !important;
    resize: auto;
    background: var(--panel-background-fill);
    z-index: 5;
}

362 363
.image-buttons button{
    min-width: auto;
364 365
}

366
.infotext {
367
    overflow-wrap: break-word;
A
AUTOMATIC 已提交
368
}
369

370 371 372 373 374 375 376 377 378 379 380 381
#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 已提交
382 383
/* settings */
#quicksettings {
384
    width: fit-content;
M
missionfloyd 已提交
385
    align-items: end;
A
AUTOMATIC 已提交
386
}
A
AUTOMATIC 已提交
387

A
AUTOMATIC 已提交
388
#quicksettings > div, #quicksettings > fieldset{
389
    max-width: 24em;
A
AUTOMATIC 已提交
390 391
    min-width: 24em;
    padding: 0;
A
AUTOMATIC 已提交
392
    border: none;
A
AUTOMATIC 已提交
393 394
    box-shadow: none;
    background: none;
A
AUTOMATIC 已提交
395 396
}

397 398 399 400 401 402 403 404 405
#settings{
    display: block;
}

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

A
AUTOMATIC 已提交
406
#settings > div.tab-nav{
407 408 409 410 411 412
    float: left;
    display: block;
    margin-left: 0;
    width: 10em;
}

A
AUTOMATIC 已提交
413
#settings > div.tab-nav button{
414 415 416
    display: block;
    border: none;
    text-align: left;
417
    white-space: initial;
418 419 420 421 422 423 424
}

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

A
AUTOMATIC 已提交
425
table.popup-table{
426 427 428 429 430 431
    background: white;
    border-collapse: collapse;
    margin: 1em;
    border: 4px solid white;
}

A
AUTOMATIC 已提交
432
table.popup-table td{
433 434 435 436
    padding: 0.4em;
    border: 1px solid #ccc;
    max-width: 36em;
}
A
AUTOMATIC 已提交
437

A
AUTOMATIC 已提交
438 439 440 441
table.popup-table .muted{
    color: #aaa;
}

442 443 444 445 446 447
table.popup-table .link{
    text-decoration: underline;
    cursor: pointer;
    font-weight: bold;
}

A
AUTOMATIC 已提交
448 449 450 451
.ui-defaults-none{
    color: #aaa !important;
}

452 453 454 455
#settings span{
    color: var(--body-text-color);
}

456
#settings .gradio-textbox, #settings .gradio-slider, #settings .gradio-number, #settings .gradio-dropdown, #settings .gradio-checkboxgroup, #settings .gradio-radio{
457 458 459
    margin-top: 0.75em;
}

460
#settings span .settings-comment {
461 462 463 464 465 466 467 468 469 470 471
    display: inline
}

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

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

472
#sysinfo_download a.sysinfo_big_link{
A
AUTOMATIC 已提交
473
    font-size: 24pt;
474 475 476
}

#sysinfo_download a{
A
AUTOMATIC 已提交
477 478 479 480 481 482 483 484
    text-decoration: underline;
}

#sysinfo_validity{
    font-size: 18pt;
}


A
AUTOMATIC 已提交
485
/* live preview */
A
AUTOMATIC 已提交
486
.progressDiv{
I
ItsOlegDm 已提交
487
    position: relative;
488 489
    height: 20px;
    background: #b4c0cc;
A
AUTOMATIC 已提交
490
    border-radius: 3px !important;
I
ItsOlegDm 已提交
491
    margin-bottom: -3px;
A
AUTOMATIC 已提交
492 493 494
}

.dark .progressDiv{
495
    background: #424c5b;
A
AUTOMATIC 已提交
496 497 498
}

.progressDiv .progress{
499 500 501 502 503 504 505 506
    width: 0%;
    height: 20px;
    background: #0060df;
    color: white;
    font-weight: bold;
    line-height: 20px;
    padding: 0 8px 0 0;
    text-align: right;
A
AUTOMATIC 已提交
507
    border-radius: 3px;
508 509
    overflow: visible;
    white-space: nowrap;
A
AUTOMATIC 已提交
510
    padding: 0 0.5em;
511 512 513 514 515 516 517 518 519
}

.livePreview{
    position: absolute;
    z-index: 300;
    background-color: white;
    margin: -4px;
}

520 521 522 523
.dark .livePreview{
    background-color: rgb(17 24 39 / var(--tw-bg-opacity));
}

524
.livePreview img{
A
AUTOMATIC 已提交
525
    position: absolute;
526 527 528
    object-fit: contain;
    width: 100%;
    height: 100%;
A
AUTOMATIC 已提交
529
}
A
AUTOMATIC 已提交
530

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

533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552
.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);
}

553 554 555
.global-popup *{
    box-sizing: border-box;
}
556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575

.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 已提交
576 577
/* fullpage image viewer */

D
DepFA 已提交
578
#lightboxModal{
579 580 581 582 583 584 585 586 587 588 589 590
    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 已提交
591 592
}

593
.modalControls {
594 595 596
    display: flex;
    gap: 1em;
    padding: 1em;
597 598 599
    background-color: rgba(0,0,0,0.2);
}
.modalClose {
600
    margin-left: auto;
D
DepFA 已提交
601
}
602
.modalControls span{
603
    color: white;
604
    font-size: 35px;
605 606
    font-weight: bold;
    cursor: pointer;
607
    width: 1em;
608 609
}

610 611 612
.modalControls span:hover, .modalControls span:focus{
    color: #999;
    text-decoration: none;
D
DepFA 已提交
613 614
}

615
#lightboxModal > img {
D
DepFA 已提交
616
    display: block;
617
    margin: auto;
D
DepFA 已提交
618 619 620
    width: auto;
}

621
#lightboxModal > img.modalImageFullscreen{
D
DepFA 已提交
622
    object-fit: contain;
623
    height: 100%;
624
    width: 100%;
625
    min-height: 0;
D
DepFA 已提交
626 627
}

D
DepFA 已提交
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
.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 已提交
654

655 656 657 658 659 660 661 662 663 664 665
#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 已提交
666
/* context menu (ie for the generate button) */
667

D
DepFA 已提交
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
#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;
}
694

695

A
AUTOMATIC 已提交
696
/* extensions */
697

698
#tab_extensions table{
699 700 701
    border-collapse: collapse;
}

A
AUTOMATIC 已提交
702
#tab_extensions table td, #tab_extensions table th{
703 704 705 706
    border: 1px solid #ccc;
    padding: 0.25em 0.5em;
}

A
AUTOMATIC 已提交
707
#tab_extensions table input[type="checkbox"]{
708
    margin-right: 0.5em;
A
AUTOMATIC 已提交
709
    appearance: checkbox;
710 711 712 713 714 715
}

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

A
AUTOMATIC 已提交
716 717 718
#tab_extensions input[disabled="disabled"]{
    opacity: 0.5;
}
719

720 721 722 723 724
.extension-tag{
    font-weight: bold;
    font-size: 95%;
}

725 726 727 728
#available_extensions .info{
    margin: 0;
}

W
w-e-w 已提交
729 730 731 732 733
#available_extensions .info{
    margin: 0.5em 0;
    display: flex;
    margin-top: auto;
    opacity: 0.80;
734 735 736
    font-size: 90%;
}

W
w-e-w 已提交
737 738 739 740 741 742 743 744 745 746
#available_extensions .date_added{
    margin-right: auto;
    display: inline-block;
}

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

A
AUTOMATIC 已提交
747
/* replace original footer with ours */
748

A
AUTOMATIC 已提交
749 750 751 752 753 754 755 756 757 758 759
footer {
    display: none !important;
}

#footer{
    text-align: center;
}

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

A
AUTOMATIC 已提交
761 762 763 764 765
#footer .versions{
    font-size: 85%;
    opacity: 0.85;
}

A
AUTOMATIC 已提交
766
/* extra networks UI */
767

R
Reimoo 已提交
768
.extra-network-cards{
769
    height: 725px;
R
Reimoo 已提交
770 771 772 773
    overflow: scroll;
    resize: vertical;
}

A
AUTOMATIC 已提交
774 775
.extra-networks > div > [id *= '_extra_']{
    margin: 0.3em;
A
AUTOMATIC 已提交
776
}
A
AUTOMATIC 已提交
777

778 779 780
.extra-network-subdirs{
    padding: 0.2em 0.35em;
}
A
AUTOMATIC 已提交
781

782 783 784
.extra-network-subdirs button{
    margin: 0 0.15em;
}
785 786 787
.extra-networks .tab-nav .search,
.extra-networks .tab-nav .sort,
.extra-networks .tab-nav .sortorder{
A
AUTOMATIC 已提交
788 789
    display: inline-block;
    margin: 0.3em;
790
    align-self: center;
791 792 793
}

.extra-networks .tab-nav .search {
A
AUTOMATIC 已提交
794
    width: 16em;
795 796 797 798 799 800
    max-width: 16em;
}

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

803 804 805 806 807
#txt2img_extra_view, #img2img_extra_view {
    width: auto;
}

.extra-network-cards .nocards, .extra-network-thumbs .nocards{
A
AUTOMATIC 已提交
808 809 810
    margin: 1.25em 0.5em 0.5em 0.5em;
}

811
.extra-network-cards .nocards h1, .extra-network-thumbs .nocards h1{
A
AUTOMATIC 已提交
812 813 814 815
    font-size: 1.5em;
    margin-bottom: 1em;
}

816
.extra-network-cards .nocards li, .extra-network-thumbs .nocards li{
A
AUTOMATIC 已提交
817 818 819
    margin-left: 0.5em;
}

820

821
.extra-network-cards .card .button-row, .extra-network-thumbs .card .button-row{
822 823 824
    display: none;
    position: absolute;
    color: white;
825 826
    right: 0;
}
827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843
.extra-network-cards .card:hover .button-row, .extra-network-thumbs .card:hover .button-row{
    display: flex;
}

.extra-network-cards .card .card-button, .extra-network-thumbs .card .card-button{
    color: white;
}

.extra-network-cards .card .metadata-button:before, .extra-network-thumbs .card .metadata-button:before{
    content: "🛈";
}

.extra-network-cards .card .edit-button:before, .extra-network-thumbs .card .edit-button:before{
    content: "🛠";
}

.extra-network-cards .card .card-button {
844 845 846
    text-shadow: 2px 2px 3px black;
    padding: 0.25em;
    font-size: 22pt;
847
    width: 1.5em;
848
}
849
.extra-network-thumbs .card .card-button {
850 851 852 853 854 855
    text-shadow: 1px 1px 2px black;
    padding: 0;
    font-size: 16pt;
    width: 1em;
    top: -0.25em;
}
856
.extra-network-cards .card .card-button:hover, .extra-network-thumbs .card .card-button:hover{
857 858 859 860
    color: red;
}


861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876
.extra-network-thumbs {
    display: flex;
    flex-flow: row wrap;
    gap: 10px;
}

.extra-network-thumbs .card {
    height: 6em;
    width: 6em;
    cursor: pointer;
    background-image: url('./file=html/card-no-preview.png');
    background-size: cover;
    background-position: center center;
    position: relative;
}

877
.extra-network-thumbs .card .preview, .standalone-card-preview.card .preview{
878 879 880 881 882 883
    position: absolute;
    object-fit: cover;
    width: 100%;
    height:100%;
}

884
.extra-network-thumbs .card:hover .additional a {
885
    display: inline-block;
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
}

.extra-network-thumbs .actions .additional a {
    background-image: url('./file=html/image-update.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    display: none;
    font-size: 0;
    text-align: -9999;
}

.extra-network-thumbs .actions .name {
    position: absolute;
    bottom: 0;
    font-size: 10px;
    padding: 3px;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: rgba(0,0,0,.5);
M
Mykeehu 已提交
913
    color: white;
914 915 916 917 918 919 920
}

.extra-network-thumbs .card:hover .actions .name {
    white-space: normal;
    word-break: break-all;
}

921
.extra-network-cards .card, .standalone-card-preview.card{
A
AUTOMATIC 已提交
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
    display: inline-block;
    margin: 0.5em;
    width: 16em;
    height: 24em;
    box-shadow: 0 0 5px rgba(128, 128, 128, 0.5);
    border-radius: 0.2em;
    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 已提交
957 958 959 960
.extra-network-cards .card .actions *{
    color: white;
}

A
AUTOMATIC 已提交
961 962 963 964 965 966 967 968 969 970
.extra-network-cards .card .actions:hover{
    box-shadow: 0 0 0.75em 0.75em rgba(0,0,0,0.5) !important;
}

.extra-network-cards .card .actions .name{
    font-size: 1.7em;
    font-weight: bold;
    line-break: anywhere;
}

971 972 973 974 975 976 977 978 979 980 981
.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 已提交
982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998
.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 已提交
999 1000 1001 1002 1003 1004
.extra-network-cards .card .preview{
    position: absolute;
    object-fit: cover;
    width: 100%;
    height:100%;
}
1005 1006

div.block.gradio-box.edit-user-metadata {
1007
    width: 56em;
1008 1009 1010 1011 1012 1013 1014 1015 1016
    background: var(--body-background-fill);
    padding: 2em !important;
}

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

A
AUTOMATIC1111 已提交
1017 1018 1019 1020
.edit-user-metadata .file-metadata{
    color: var(--body-text-color);
}

1021 1022 1023 1024 1025 1026 1027
.edit-user-metadata .file-metadata th{
    text-align: left;
}

.edit-user-metadata .wrap.translucent{
    background: var(--body-background-fill);
}
1028 1029 1030 1031 1032 1033 1034
.edit-user-metadata .gradio-highlightedtext span{
    word-break: break-word;
}

.edit-user-metadata-buttons{
    margin-top: 1.5em;
}