style.css 17.8 KB
Newer Older
B
Ben 已提交
1 2 3 4
.container {
    max-width: 100%;
}

5 6 7 8 9 10 11 12 13 14 15 16
.token-counter{
    position: absolute;
    display: inline-block;
    right: 2em;
    min-width: 0 !important;
    width: auto;
    z-index: 100;
}

.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;
B
Ben 已提交
17 18
}

19 20 21 22 23 24
.token-counter div{
    display: inline;
}

.token-counter span{
    padding: 0.1em 0.75em;
B
Ben 已提交
25 26
}

B
Ben 已提交
27 28 29 30 31 32 33 34 35 36
#sh{
    min-width: 2em;
    min-height: 2em;
    max-width: 2em;
    max-height: 2em;
    flex-grow: 0;
    padding-left: 0.25em;
    padding-right: 0.25em;
    margin: 0.1em 0;
    opacity: 0%;
A
AUTOMATIC 已提交
37
    cursor: default;
B
Ben 已提交
38 39
}

40
.output-html p {margin: 0 0.5em;}
E
EyeDeck 已提交
41

M
Michoko 已提交
42 43 44 45 46 47
.row > *,
.row > .gr-form > * {
    min-width: min(120px, 100%);
    flex: 1 1 0%;
}

E
EyeDeck 已提交
48 49 50 51 52
.performance {
    font-size: 0.85em;
    color: #444;
}

53 54 55 56
.performance p{
    display: inline-block;
}

E
EyeDeck 已提交
57 58 59 60 61 62
.performance .time {
    margin-right: 0;
}

.performance .vram {
}
A
AUTOMATIC 已提交
63

64
#txt2img_generate, #img2img_generate {
A
AUTOMATIC 已提交
65
    min-height: 4.5em;
A
AUTOMATIC 已提交
66 67
}

68 69 70 71 72 73
@media screen and (min-width: 2500px) {
    #txt2img_gallery, #img2img_gallery {
        min-height: 768px;
    }
}

74 75 76
#txt2img_gallery img, #img2img_gallery img{
    object-fit: scale-down;
}
I
ItsOlegDm 已提交
77 78 79 80 81 82
#txt2img_actions_column, #img2img_actions_column {
	margin: 0.35rem 0.75rem 0.35rem 0;	
}
#script_list {
    padding: .625rem .75rem 0 .625rem;
}
E
EyeDeck 已提交
83 84 85 86 87 88 89 90 91 92 93 94
.justify-center.overflow-x-scroll {
    justify-content: left;
}

.justify-center.overflow-x-scroll button:first-of-type {
    margin-left: auto;
}

.justify-center.overflow-x-scroll button:last-of-type {
    margin-right: auto;
}

95
[id$=_random_seed], [id$=_random_subseed], [id$=_reuse_seed], [id$=_reuse_subseed], #open_folder{
96 97
    min-width: 2.3em;
    height: 2.5em;
98 99 100 101 102
    flex-grow: 0;
    padding-left: 0.25em;
    padding-right: 0.25em;
}

M
Michoko 已提交
103
#hidden_element{
M
Michoko 已提交
104 105 106
    display: none;
}

107
[id$=_seed_row], [id$=_subseed_row]{
108
    gap: 0.5rem;
109
    padding: 0.6em;
110 111
}

112
[id$=_subseed_show_box]{
113 114 115 116
    min-width: auto;
    flex-grow: 0;
}

117
[id$=_subseed_show_box] > div{
118 119 120 121
    border: 0;
    height: 100%;
}

122
[id$=_subseed_show]{
123 124 125
    min-width: auto;
    flex-grow: 0;
    padding: 0;
126 127
}

128
[id$=_subseed_show] label{
129 130 131
    height: 100%;
}

132
#txt2img_actions_column, #img2img_actions_column{
133
    gap: 0;
I
ItsOlegDm 已提交
134
    margin-right: .75rem;
135 136
}

137 138
#txt2img_tools, #img2img_tools{
    gap: 0.4em;
A
AUTOMATIC 已提交
139 140
}

A
AUTOMATIC 已提交
141 142 143
#interrogate_col{
    min-width: 0 !important;
    max-width: 8em !important;
144
    margin-right: 1em;
A
AUTOMATIC 已提交
145
    gap: 0;
G
Greendayle 已提交
146
}
A
AUTOMATIC 已提交
147
#interrogate, #deepbooru{
A
AUTOMATIC 已提交
148
    margin: 0em 0.25em 0.5em 0.25em;
A
AUTOMATIC 已提交
149 150
    min-width: 8em;
    max-width: 8em;
A
AUTOMATIC 已提交
151 152 153
}

#style_pos_col, #style_neg_col{
154
    min-width: 8em !important;
A
AUTOMATIC 已提交
155 156
}

A
AUTOMATIC 已提交
157 158
#txt2img_styles_row, #img2img_styles_row{
    gap: 0.25em;
I
ItsOlegDm 已提交
159
    margin-top: 0.3em;
A
AUTOMATIC 已提交
160 161 162 163 164
}

#txt2img_styles_row > button, #img2img_styles_row > button{
    margin: 0;
}
I
ItsOlegDm 已提交
165

166
#txt2img_styles, #img2img_styles{
A
AUTOMATIC 已提交
167
    padding: 0;
A
AUTOMATIC 已提交
168 169
}

170 171 172 173
#txt2img_styles > label > div, #img2img_styles > label > div{
    min-height: 3.2em;
}

174
ul.list-none{
175
    max-height: 35em;
176
    z-index: 2000;
177 178
}

A
AUTOMATIC 已提交
179 180
.gr-form{
    background: transparent;
A
AUTOMATIC 已提交
181 182
}

183 184 185 186 187
.my-4{
    margin-top: 0;
    margin-bottom: 0;
}

188 189 190 191
#resize_mode{
    flex: 1.5;
}

A
AUTOMATIC 已提交
192 193 194 195 196 197 198 199
button{
    align-self: stretch !important;
}

.overflow-hidden, .gr-panel{
    overflow: visible !important;
}

A
AUTOMATIC 已提交
200 201 202 203
#x_type, #y_type{
    max-width: 10em;
}

204
#txt2img_preview, #img2img_preview, #ti_preview{
A
AUTOMATIC 已提交
205 206 207 208 209 210
    position: absolute;
    width: 320px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
I
innovaciones 已提交
211
    margin-top: 34px;
A
AUTOMATIC 已提交
212
    z-index: 100;
I
innovaciones 已提交
213 214 215
    border: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
A
AUTOMATIC 已提交
216 217
}

I
innovaciones 已提交
218
@media screen and (min-width: 768px) {
219
    #txt2img_preview, #img2img_preview, #ti_preview {
I
innovaciones 已提交
220 221 222 223 224
        position: absolute;
    }
}

@media screen and (max-width: 767px) {
225
    #txt2img_preview, #img2img_preview, #ti_preview {
I
innovaciones 已提交
226 227 228 229
        position: relative;
    }
}

230
#txt2img_preview div.left-0.top-0, #img2img_preview div.left-0.top-0, #ti_preview div.left-0.top-0{
A
AUTOMATIC 已提交
231 232 233
    display: none;
}

A
AUTOMATIC 已提交
234
fieldset span.text-gray-500, .gr-block.gr-box span.text-gray-500,  label.block span{
A
AUTOMATIC 已提交
235
    position: absolute;
236
    top: -0.7em;
237
    line-height: 1.2em;
238 239
    padding: 0;
    margin: 0 0.5em;
A
AUTOMATIC 已提交
240

241
    background-color: white;
242
    box-shadow:  6px 0 6px 0px white, -6px 0 6px 0px white;
243 244

    z-index: 300;
245 246
}

A
AUTOMATIC 已提交
247
.dark fieldset span.text-gray-500, .dark .gr-block.gr-box span.text-gray-500, .dark label.block span{
248
    background-color: rgb(31, 41, 55);
A
AUTOMATIC 已提交
249 250 251 252
    box-shadow: none;
    border: 1px solid rgba(128, 128, 128, 0.1);
    border-radius: 6px;
    padding: 0.1em 0.5em;
253 254 255 256
}

#txt2img_column_batch, #img2img_column_batch{
    min-width: min(13.5em, 100%) !important;
A
AUTOMATIC 已提交
257
}
258

A
AUTOMATIC 已提交
259 260 261
#settings fieldset span.text-gray-500, #settings .gr-block.gr-box span.text-gray-500, #settings label.block span{
    position: relative;
    border: none;
A
AUTOMATIC 已提交
262
    margin-right: 8em;
A
AUTOMATIC 已提交
263
}
A
AUTOMATIC 已提交
264

A
AUTOMATIC 已提交
265 266
#settings .gr-panel div.flex-col div.justify-between div{
    position: relative;
267
    z-index: 200;
A
AUTOMATIC 已提交
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
#settings{
    display: block;
}

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

#settings > div.flex-wrap{
    float: left;
    display: block;
    margin-left: 0;
    width: 10em;
}

#settings > div.flex-wrap button{
    display: block;
    border: none;
    text-align: left;
}

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

A
AUTOMATIC 已提交
297 298 299 300
input[type="range"]{
    margin: 0.5em 0 -0.3em 0;
}

A
AUTOMATIC 已提交
301 302 303
#mask_bug_info {
  text-align: center;
  display: block;
304 305
  margin-top: -0.75em;
  margin-bottom: -0.75em;
A
AUTOMATIC 已提交
306
}
A
AUTOMATIC 已提交
307

308 309 310
#txt2img_negative_prompt, #img2img_negative_prompt{
}

A
AUTOMATIC 已提交
311 312 313 314 315 316
/* gradio 3.8 adds opacity to progressbar which makes it blink; disable it here */
.transition.opacity-20 {
  opacity: 1 !important;
}

/* more gradio's garbage cleanup */
A
AUTOMATIC 已提交
317 318
.min-h-\[4rem\] { min-height: unset !important; }
.min-h-\[6rem\] { min-height: unset !important; }
A
AUTOMATIC 已提交
319

A
AUTOMATIC 已提交
320
.progressDiv{
I
ItsOlegDm 已提交
321
    position: relative;
322 323
    height: 20px;
    background: #b4c0cc;
A
AUTOMATIC 已提交
324
    border-radius: 3px !important;
I
ItsOlegDm 已提交
325
    margin-bottom: -3px;
A
AUTOMATIC 已提交
326 327 328
}

.dark .progressDiv{
329
    background: #424c5b;
A
AUTOMATIC 已提交
330 331 332
}

.progressDiv .progress{
333 334 335 336 337 338 339 340
    width: 0%;
    height: 20px;
    background: #0060df;
    color: white;
    font-weight: bold;
    line-height: 20px;
    padding: 0 8px 0 0;
    text-align: right;
A
AUTOMATIC 已提交
341
    border-radius: 3px;
342 343
    overflow: visible;
    white-space: nowrap;
A
AUTOMATIC 已提交
344
    padding: 0 0.5em;
345 346 347 348 349 350 351 352 353
}

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

354 355 356 357
.dark .livePreview{
    background-color: rgb(17 24 39 / var(--tw-bg-opacity));
}

358
.livePreview img{
A
AUTOMATIC 已提交
359
    position: absolute;
360 361 362
    object-fit: contain;
    width: 100%;
    height: 100%;
A
AUTOMATIC 已提交
363
}
A
AUTOMATIC 已提交
364

D
DepFA 已提交
365 366 367
#lightboxModal{
  display: none;
  position: fixed;
D
DepFA 已提交
368
  z-index: 1001;
D
DepFA 已提交
369 370 371 372 373 374
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
375
  background-color: rgba(20, 20, 20, 0.95);
376 377
  user-select: none;
  -webkit-user-select: none;
D
DepFA 已提交
378 379
}

380 381
.modalControls {
    display: grid;
382
    grid-template-columns: 32px 32px 32px 1fr 32px;
383
    grid-template-areas: "zoom tile save space close";
384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 16px;
    gap: 16px;
    background-color: rgba(0,0,0,0.2);
}

.modalClose {
    grid-area: close;
}

.modalZoom {
    grid-area: zoom;
}

401 402 403 404
.modalSave {
    grid-area: save;
}

405 406 407 408
.modalTileImage {
    grid-area: tile;
}

A
AUTOMATIC 已提交
409
.modalClose,
410 411
.modalZoom,
.modalTileImage {
D
DepFA 已提交
412 413 414
  color: white;
  font-size: 35px;
  font-weight: bold;
D
DepFA 已提交
415 416 417
  cursor: pointer;
}

418 419
.modalSave {
    color: white;
420 421
    font-size: 28px;
    margin-top: 8px;
422 423 424 425
    font-weight: bold;
    cursor: pointer;
}

D
DepFA 已提交
426
.modalClose:hover,
D
DepFA 已提交
427
.modalClose:focus,
428 429
.modalSave:hover,
.modalSave:focus,
D
DepFA 已提交
430 431
.modalZoom:hover,
.modalZoom:focus {
D
DepFA 已提交
432 433 434 435 436 437 438 439 440 441 442 443 444
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

#modalImage {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    width: auto;
}

D
DepFA 已提交
445
.modalImageFullscreen {
D
DepFA 已提交
446
    object-fit: contain;
D
DepFA 已提交
447 448 449
    height: 90%;
}

D
DepFA 已提交
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
.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 已提交
476 477 478 479 480 481 482 483 484

#imageARPreview{
    position:absolute;
    top:0px;
    left:0px;
    border:2px solid red;
    background:rgba(255, 0, 0, 0.3);
    z-index: 900;
    pointer-events:none;
485 486 487
    display:none
}

488 489
#txt2img_generate_box, #img2img_generate_box{
    position: relative;
490 491
}

492 493 494 495 496 497 498 499 500 501 502
#txt2img_interrupt, #img2img_interrupt, #txt2img_skip, #img2img_skip{
    position: absolute;
    width: 50%;
    height: 100%;
    background: #b4c0cc;
    display: none;
}

#txt2img_interrupt, #img2img_interrupt{
    left: 0;
    border-radius: 0.5rem 0 0 0.5rem;
D
DepFA 已提交
503
}
504 505 506 507
#txt2img_skip, #img2img_skip{
    right: 0;
    border-radius: 0 0.5rem 0.5rem 0;
}
508 509 510 511

.red {
	color: red;
}
512 513 514 515

.gallery-item {
    --tw-bg-opacity: 0 !important;
}
516

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

544
#quicksettings {
I
ItsOlegDm 已提交
545
    width: fit-content;
546 547
}

548
#quicksettings > div, #quicksettings > fieldset{
A
AUTOMATIC 已提交
549
    max-width: 24em;
550
    min-width: 24em;
551
    padding: 0;
A
AUTOMATIC 已提交
552 553 554
    border: none;
    box-shadow: none;
    background: none;
I
ItsOlegDm 已提交
555
    margin-right: 10px;
556
}
557

A
AUTOMATIC 已提交
558
#quicksettings > div > div > div > label > span {
V
Vladimir Repin 已提交
559 560 561 562 563
    position: relative;
    margin-right: 9em;
    margin-bottom: -1em;
}

564 565 566 567 568 569
canvas[key="mask"] {
    z-index: 12 !important;
    filter: invert();
    mix-blend-mode: multiply;
    pointer-events: none;
}
A
AUTOMATIC 已提交
570 571 572 573 574 575 576


/* gradio 3.4.1 stuff for editable scrollbar values */
.gr-box > div > div > input.gr-text-input{
    position: absolute;
    right: 0.5em;
    top: -0.6em;
577
    z-index: 400;
I
ItsOlegDm 已提交
578
    width: 6em;
A
AUTOMATIC 已提交
579
}
A
AUTOMATIC 已提交
580 581 582
#quicksettings .gr-box > div > div > input.gr-text-input {
  top: -1.12em;
}
583 584 585 586

.row.gr-compact{
    overflow: visible;
}
587 588

#img2img_image, #img2img_image > .h-60, #img2img_image > .h-60 > div, #img2img_image > .h-60 > div > img,
589 590 591
#img2img_sketch, #img2img_sketch > .h-60, #img2img_sketch > .h-60 > div, #img2img_sketch > .h-60 > div > img,
#img2maskimg, #img2maskimg > .h-60, #img2maskimg > .h-60 > div, #img2maskimg > .h-60 > div > img,
#inpaint_sketch, #inpaint_sketch > .h-60, #inpaint_sketch > .h-60 > div, #inpaint_sketch > .h-60 > div > img
592 593 594 595
{
    height: 480px !important;
    max-height: 480px !important;
    min-height: 480px !important;
596
}
597

598 599
/* Extensions */

600
#tab_extensions table{
601 602 603
    border-collapse: collapse;
}

A
AUTOMATIC 已提交
604
#tab_extensions table td, #tab_extensions table th{
605 606 607 608
    border: 1px solid #ccc;
    padding: 0.25em 0.5em;
}

A
AUTOMATIC 已提交
609
#tab_extensions table input[type="checkbox"]{
610 611 612 613 614 615 616
    margin-right: 0.5em;
}

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

A
AUTOMATIC 已提交
617 618 619
#tab_extensions input[disabled="disabled"]{
    opacity: 0.5;
}
620

621 622 623 624 625
.extension-tag{
    font-weight: bold;
    font-size: 95%;
}

626 627 628 629 630 631 632 633 634
#available_extensions .info{
    margin: 0;
}

#available_extensions .date_added{
    opacity: 0.85;
    font-size: 90%;
}

A
AUTOMATIC 已提交
635 636 637 638 639 640
#image_buttons_txt2img button, #image_buttons_img2img button, #image_buttons_extras button{
    min-width: auto;
    padding-left: 0.5em;
    padding-right: 0.5em;
}

A
AUTOMATIC 已提交
641 642 643 644 645 646 647 648
.gr-form{
    background-color: white;
}

.dark .gr-form{
    background-color: rgb(31 41 55 / var(--tw-bg-opacity));
}

A
AUTOMATIC 已提交
649
.gr-button-tool, .gr-button-tool-top{
A
AUTOMATIC 已提交
650 651 652
    max-width: 2.5em;
    min-width: 2.5em !important;
    height: 2.4em;
A
AUTOMATIC 已提交
653 654
}

A
AUTOMATIC 已提交
655
.gr-button-tool{
A
AUTOMATIC 已提交
656
    margin: 0.6em 0em 0.55em 0;
A
AUTOMATIC 已提交
657 658
}

A
AUTOMATIC 已提交
659 660 661 662 663
.gr-button-tool-top, #settings .gr-button-tool{
    margin: 1.6em 0.7em 0.55em 0;
}


664 665 666 667 668 669 670 671 672 673
#modelmerger_results_container{
    margin-top: 1em;
    overflow: visible;
}

#modelmerger_models{
    gap: 0;
}


A
AUTOMATIC 已提交
674 675
#quicksettings .gr-button-tool{
    margin: 0;
I
ItsOlegDm 已提交
676 677
    border-color: unset;
	background-color: unset;
A
AUTOMATIC 已提交
678 679
}

I
ItsOlegDm 已提交
680 681 682 683 684 685 686
#modelmerger_interp_description>p {
    margin: 0!important;
    text-align: center;
}
#modelmerger_interp_description {
    margin: 0.35rem 0.75rem 1.23rem;
}
687 688
#img2img_settings > div.gr-form, #txt2img_settings > div.gr-form {
    padding-top: 0.9em;
I
ItsOlegDm 已提交
689 690 691 692 693 694 695 696
    padding-bottom: 0.9em;
}
#txt2img_settings {
    padding-top: 1.16em;
    padding-bottom: 0.9em;
}
#img2img_settings {
    padding-bottom: 0.9em;
697 698
}

A
AUTOMATIC 已提交
699
#img2img_settings div.gr-form .gr-form, #txt2img_settings div.gr-form .gr-form, #train_tabs div.gr-form .gr-form{
700 701 702 703
    border: none;
    padding-bottom: 0.5em;
}

A
AUTOMATIC 已提交
704 705 706 707 708 709 710 711 712 713 714
footer {
    display: none !important;
}

#footer{
    text-align: center;
}

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

A
AUTOMATIC 已提交
716 717 718 719 720
#footer .versions{
    font-size: 85%;
    opacity: 0.85;
}

721 722 723 724 725 726 727 728 729 730 731
#txtimg_hr_finalres{
    min-height: 0 !important;
    padding: .625rem .75rem;
    margin-left: -0.75em

}

#txtimg_hr_finalres .resolution{
    font-weight: bold;
}

A
AUTOMATIC 已提交
732 733
#txt2img_checkboxes, #img2img_checkboxes{
    margin-bottom: 0.5em;
734
    margin-left: 0em;
A
AUTOMATIC 已提交
735
}
736
#txt2img_checkboxes > div, #img2img_checkboxes > div{
737 738 739 740 741
    flex: 0;
    white-space: nowrap;
    min-width: auto;
}

742 743 744 745
#img2img_copy_to_img2img, #img2img_copy_to_sketch, #img2img_copy_to_inpaint, #img2img_copy_to_inpaint_sketch{
    margin-left: 0em;
}

E
EllangoK 已提交
746 747 748 749
#axis_options {
    margin-left: 0em;
}

750 751 752 753
.inactive{
    opacity: 0.5;
}

754 755 756 757 758 759 760 761
[id*='_prompt_container']{
    gap: 0;
}

[id*='_prompt_container'] > div{
    margin: -0.4em 0 0 0;
}

A
AUTOMATIC 已提交
762 763 764 765 766 767
.gr-compact {
    border: none;
}

.dark .gr-compact{
    background-color: rgb(31 41 55 / var(--tw-bg-opacity));
I
ItsOlegDm 已提交
768
	margin-left: 0;
A
AUTOMATIC 已提交
769 770
}

771 772 773 774
.gr-compact{
    overflow: visible;
}

A
AUTOMATIC 已提交
775 776 777 778 779 780 781 782 783 784 785 786 787
.gr-compact > *{
}

.gr-compact .gr-block, .gr-compact .gr-form{
    border: none;
    box-shadow: none;
}

.gr-compact .gr-box{
    border-radius: .5rem !important;
    border-width: 1px !important;
}

788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805
#mode_img2img > div > div{
    gap: 0 !important;
}

[id*='img2img_copy_to_'] {
    border: none;
}

[id*='img2img_copy_to_'] > button {
}

[id*='img2img_label_copy_to_'] {
    font-size: 1.0em;
    font-weight: bold;
    text-align: center;
    line-height: 2.4em;
}

A
AUTOMATIC 已提交
806 807
.extra-networks > div > [id *= '_extra_']{
    margin: 0.3em;
A
AUTOMATIC 已提交
808
}
A
AUTOMATIC 已提交
809

810 811 812
.extra-network-subdirs{
    padding: 0.2em 0.35em;
}
A
AUTOMATIC 已提交
813

814 815 816
.extra-network-subdirs button{
    margin: 0 0.15em;
}
A
AUTOMATIC 已提交
817 818 819 820 821

#txt2img_extra_networks .search, #img2img_extra_networks .search{
    display: inline-block;
    max-width: 16em;
    margin: 0.3em;
822
    align-self: center;
A
AUTOMATIC 已提交
823 824
}

825 826 827 828 829
#txt2img_extra_view, #img2img_extra_view {
    width: auto;
}

.extra-network-cards .nocards, .extra-network-thumbs .nocards{
A
AUTOMATIC 已提交
830 831 832
    margin: 1.25em 0.5em 0.5em 0.5em;
}

833
.extra-network-cards .nocards h1, .extra-network-thumbs .nocards h1{
A
AUTOMATIC 已提交
834 835 836 837
    font-size: 1.5em;
    margin-bottom: 1em;
}

838
.extra-network-cards .nocards li, .extra-network-thumbs .nocards li{
A
AUTOMATIC 已提交
839 840 841
    margin-left: 0.5em;
}

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
.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;
}

.extra-network-thumbs .card:hover .additional a {
    display: block;
}

.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 已提交
887
    color: white;
888 889 890 891 892 893 894
}

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

A
AUTOMATIC 已提交
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
.extra-network-cards .card{
    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;
    color: white;
    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;
}

.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;
}

.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;
}

I
ItsOlegDm 已提交
959 960 961
[id*='_prompt_container'] > div {
	margin: 0!important;
}