style.css 17.0 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;
}
A
AUTOMATIC 已提交
77

E
EyeDeck 已提交
78 79 80 81 82 83 84 85 86 87 88 89
.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;
}

90
[id$=_random_seed], [id$=_random_subseed], [id$=_reuse_seed], [id$=_reuse_subseed], #open_folder{
91 92
    min-width: 2.3em;
    height: 2.5em;
93 94 95 96 97
    flex-grow: 0;
    padding-left: 0.25em;
    padding-right: 0.25em;
}

M
Michoko 已提交
98
#hidden_element{
M
Michoko 已提交
99 100 101
    display: none;
}

102
[id$=_seed_row], [id$=_subseed_row]{
103
    gap: 0.5rem;
104
    padding: 0.6em;
105 106
}

107
[id$=_subseed_show_box]{
108 109 110 111
    min-width: auto;
    flex-grow: 0;
}

112
[id$=_subseed_show_box] > div{
113 114 115 116
    border: 0;
    height: 100%;
}

117
[id$=_subseed_show]{
118 119 120
    min-width: auto;
    flex-grow: 0;
    padding: 0;
121 122
}

123
[id$=_subseed_show] label{
124 125 126
    height: 100%;
}

127
#txt2img_actions_column, #img2img_actions_column{
128
    gap: 0;
129 130
}

131 132
#txt2img_tools, #img2img_tools{
    gap: 0.4em;
A
AUTOMATIC 已提交
133 134
}

A
AUTOMATIC 已提交
135 136 137
#interrogate_col{
    min-width: 0 !important;
    max-width: 8em !important;
138
    margin-right: 1em;
A
AUTOMATIC 已提交
139
    gap: 0;
G
Greendayle 已提交
140
}
A
AUTOMATIC 已提交
141
#interrogate, #deepbooru{
A
AUTOMATIC 已提交
142
    margin: 0em 0.25em 0.5em 0.25em;
A
AUTOMATIC 已提交
143 144
    min-width: 8em;
    max-width: 8em;
A
AUTOMATIC 已提交
145 146 147
}

#style_pos_col, #style_neg_col{
148
    min-width: 8em !important;
A
AUTOMATIC 已提交
149 150
}

A
AUTOMATIC 已提交
151 152 153 154 155 156 157 158
#txt2img_styles_row, #img2img_styles_row{
    gap: 0.25em;
}

#txt2img_styles_row > button, #img2img_styles_row > button{
    margin: 0;
}

159
#txt2img_styles, #img2img_styles{
A
AUTOMATIC 已提交
160
    padding: 0;
A
AUTOMATIC 已提交
161 162
}

163 164 165 166
#txt2img_styles > label > div, #img2img_styles > label > div{
    min-height: 3.2em;
}

167
ul.list-none{
168
    max-height: 35em;
169
    z-index: 2000;
170 171
}

A
AUTOMATIC 已提交
172 173
.gr-form{
    background: transparent;
A
AUTOMATIC 已提交
174 175
}

176 177 178 179 180
.my-4{
    margin-top: 0;
    margin-bottom: 0;
}

181 182 183 184
#resize_mode{
    flex: 1.5;
}

A
AUTOMATIC 已提交
185 186 187 188 189 190 191 192
button{
    align-self: stretch !important;
}

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

A
AUTOMATIC 已提交
193 194 195 196
#x_type, #y_type{
    max-width: 10em;
}

197
#txt2img_preview, #img2img_preview, #ti_preview{
A
AUTOMATIC 已提交
198 199 200 201 202 203
    position: absolute;
    width: 320px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
I
innovaciones 已提交
204
    margin-top: 34px;
A
AUTOMATIC 已提交
205
    z-index: 100;
I
innovaciones 已提交
206 207 208
    border: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
A
AUTOMATIC 已提交
209 210
}

I
innovaciones 已提交
211
@media screen and (min-width: 768px) {
212
    #txt2img_preview, #img2img_preview, #ti_preview {
I
innovaciones 已提交
213 214 215 216 217
        position: absolute;
    }
}

@media screen and (max-width: 767px) {
218
    #txt2img_preview, #img2img_preview, #ti_preview {
I
innovaciones 已提交
219 220 221 222
        position: relative;
    }
}

223
#txt2img_preview div.left-0.top-0, #img2img_preview div.left-0.top-0, #ti_preview div.left-0.top-0{
A
AUTOMATIC 已提交
224 225 226
    display: none;
}

A
AUTOMATIC 已提交
227
fieldset span.text-gray-500, .gr-block.gr-box span.text-gray-500,  label.block span{
A
AUTOMATIC 已提交
228
    position: absolute;
229
    top: -0.7em;
230
    line-height: 1.2em;
231 232
    padding: 0;
    margin: 0 0.5em;
A
AUTOMATIC 已提交
233

234
    background-color: white;
235
    box-shadow:  6px 0 6px 0px white, -6px 0 6px 0px white;
236 237

    z-index: 300;
238 239
}

A
AUTOMATIC 已提交
240
.dark fieldset span.text-gray-500, .dark .gr-block.gr-box span.text-gray-500, .dark label.block span{
241
    background-color: rgb(31, 41, 55);
A
AUTOMATIC 已提交
242 243 244 245
    box-shadow: none;
    border: 1px solid rgba(128, 128, 128, 0.1);
    border-radius: 6px;
    padding: 0.1em 0.5em;
246 247 248 249
}

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

A
AUTOMATIC 已提交
252 253 254
#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 已提交
255
    margin-right: 8em;
A
AUTOMATIC 已提交
256
}
A
AUTOMATIC 已提交
257

A
AUTOMATIC 已提交
258 259
#settings .gr-panel div.flex-col div.justify-between div{
    position: relative;
260
    z-index: 200;
A
AUTOMATIC 已提交
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
#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 已提交
290 291 292 293
input[type="range"]{
    margin: 0.5em 0 -0.3em 0;
}

A
AUTOMATIC 已提交
294 295 296
#mask_bug_info {
  text-align: center;
  display: block;
297 298
  margin-top: -0.75em;
  margin-bottom: -0.75em;
A
AUTOMATIC 已提交
299
}
A
AUTOMATIC 已提交
300

301 302 303
#txt2img_negative_prompt, #img2img_negative_prompt{
}

A
AUTOMATIC 已提交
304 305 306 307 308 309
/* 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 已提交
310 311
.min-h-\[4rem\] { min-height: unset !important; }
.min-h-\[6rem\] { min-height: unset !important; }
A
AUTOMATIC 已提交
312

A
AUTOMATIC 已提交
313
.progressDiv{
314 315 316 317
    position: absolute;
    height: 20px;
    top: -20px;
    background: #b4c0cc;
A
AUTOMATIC 已提交
318
    border-radius: 3px !important;
A
AUTOMATIC 已提交
319 320 321
}

.dark .progressDiv{
322
    background: #424c5b;
A
AUTOMATIC 已提交
323 324 325
}

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

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

347 348 349 350
.dark .livePreview{
    background-color: rgb(17 24 39 / var(--tw-bg-opacity));
}

351
.livePreview img{
A
AUTOMATIC 已提交
352
    position: absolute;
353 354 355
    object-fit: contain;
    width: 100%;
    height: 100%;
A
AUTOMATIC 已提交
356
}
A
AUTOMATIC 已提交
357

D
DepFA 已提交
358 359 360
#lightboxModal{
  display: none;
  position: fixed;
D
DepFA 已提交
361
  z-index: 1001;
D
DepFA 已提交
362 363 364 365 366 367
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
368
  background-color: rgba(20, 20, 20, 0.95);
369 370
  user-select: none;
  -webkit-user-select: none;
D
DepFA 已提交
371 372
}

373 374
.modalControls {
    display: grid;
375
    grid-template-columns: 32px 32px 32px 1fr 32px;
376
    grid-template-areas: "zoom tile save space close";
377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393
    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;
}

394 395 396 397
.modalSave {
    grid-area: save;
}

398 399 400 401
.modalTileImage {
    grid-area: tile;
}

A
AUTOMATIC 已提交
402
.modalClose,
403 404
.modalZoom,
.modalTileImage {
D
DepFA 已提交
405 406 407
  color: white;
  font-size: 35px;
  font-weight: bold;
D
DepFA 已提交
408 409 410
  cursor: pointer;
}

411 412
.modalSave {
    color: white;
413 414
    font-size: 28px;
    margin-top: 8px;
415 416 417 418
    font-weight: bold;
    cursor: pointer;
}

D
DepFA 已提交
419
.modalClose:hover,
D
DepFA 已提交
420
.modalClose:focus,
421 422
.modalSave:hover,
.modalSave:focus,
D
DepFA 已提交
423 424
.modalZoom:hover,
.modalZoom:focus {
D
DepFA 已提交
425 426 427 428 429 430 431 432 433 434 435 436 437
  color: #999;
  text-decoration: none;
  cursor: pointer;
}

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

D
DepFA 已提交
438
.modalImageFullscreen {
D
DepFA 已提交
439
    object-fit: contain;
D
DepFA 已提交
440 441 442
    height: 90%;
}

D
DepFA 已提交
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
.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 已提交
469 470 471 472 473 474 475 476 477

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

481 482
#txt2img_generate_box, #img2img_generate_box{
    position: relative;
483 484
}

485 486 487 488 489 490 491 492 493 494 495
#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 已提交
496
}
497 498 499 500
#txt2img_skip, #img2img_skip{
    right: 0;
    border-radius: 0 0.5rem 0.5rem 0;
}
501 502 503 504

.red {
	color: red;
}
505 506 507 508

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

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

537 538 539 540
#quicksettings {
    gap: 0.4em;
}

541
#quicksettings > div, #quicksettings > fieldset{
A
AUTOMATIC 已提交
542
    max-width: 24em;
543
    min-width: 24em;
544
    padding: 0;
A
AUTOMATIC 已提交
545 546 547
    border: none;
    box-shadow: none;
    background: none;
548
}
549

A
AUTOMATIC 已提交
550
#quicksettings > div > div > div > label > span {
V
Vladimir Repin 已提交
551 552 553 554 555
    position: relative;
    margin-right: 9em;
    margin-bottom: -1em;
}

556 557 558 559 560 561
canvas[key="mask"] {
    z-index: 12 !important;
    filter: invert();
    mix-blend-mode: multiply;
    pointer-events: none;
}
A
AUTOMATIC 已提交
562 563 564 565 566 567 568


/* 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;
569
    z-index: 400;
A
AUTOMATIC 已提交
570 571
    width: 8em;
}
A
AUTOMATIC 已提交
572 573 574
#quicksettings .gr-box > div > div > input.gr-text-input {
  top: -1.12em;
}
575 576 577 578

.row.gr-compact{
    overflow: visible;
}
579 580

#img2img_image, #img2img_image > .h-60, #img2img_image > .h-60 > div, #img2img_image > .h-60 > div > img,
581 582 583
#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
584 585 586 587
{
    height: 480px !important;
    max-height: 480px !important;
    min-height: 480px !important;
588
}
589

590 591
/* Extensions */

592
#tab_extensions table{
593 594 595
    border-collapse: collapse;
}

A
AUTOMATIC 已提交
596
#tab_extensions table td, #tab_extensions table th{
597 598 599 600
    border: 1px solid #ccc;
    padding: 0.25em 0.5em;
}

A
AUTOMATIC 已提交
601
#tab_extensions table input[type="checkbox"]{
602 603 604 605 606 607 608
    margin-right: 0.5em;
}

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

A
AUTOMATIC 已提交
609 610 611
#tab_extensions input[disabled="disabled"]{
    opacity: 0.5;
}
612

613 614 615 616 617
.extension-tag{
    font-weight: bold;
    font-size: 95%;
}

618 619 620 621 622 623 624 625 626
#available_extensions .info{
    margin: 0;
}

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

A
AUTOMATIC 已提交
627 628 629 630 631 632
#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 已提交
633 634 635 636 637 638 639 640
.gr-form{
    background-color: white;
}

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

A
AUTOMATIC 已提交
641
.gr-button-tool, .gr-button-tool-top{
A
AUTOMATIC 已提交
642 643 644
    max-width: 2.5em;
    min-width: 2.5em !important;
    height: 2.4em;
A
AUTOMATIC 已提交
645 646
}

A
AUTOMATIC 已提交
647
.gr-button-tool{
A
AUTOMATIC 已提交
648
    margin: 0.6em 0em 0.55em 0;
A
AUTOMATIC 已提交
649 650
}

A
AUTOMATIC 已提交
651 652 653 654 655
.gr-button-tool-top, #settings .gr-button-tool{
    margin: 1.6em 0.7em 0.55em 0;
}


656 657 658 659 660 661 662 663 664 665
#modelmerger_results_container{
    margin-top: 1em;
    overflow: visible;
}

#modelmerger_models{
    gap: 0;
}


A
AUTOMATIC 已提交
666 667 668 669 670
#quicksettings .gr-button-tool{
    margin: 0;
}


671 672 673 674
#img2img_settings > div.gr-form, #txt2img_settings > div.gr-form {
    padding-top: 0.9em;
}

A
AUTOMATIC 已提交
675
#img2img_settings div.gr-form .gr-form, #txt2img_settings div.gr-form .gr-form, #train_tabs div.gr-form .gr-form{
676 677 678 679
    border: none;
    padding-bottom: 0.5em;
}

A
AUTOMATIC 已提交
680 681 682 683 684 685 686 687 688 689 690
footer {
    display: none !important;
}

#footer{
    text-align: center;
}

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

A
AUTOMATIC 已提交
692 693 694 695 696
#footer .versions{
    font-size: 85%;
    opacity: 0.85;
}

697 698 699 700 701 702 703 704 705 706 707
#txtimg_hr_finalres{
    min-height: 0 !important;
    padding: .625rem .75rem;
    margin-left: -0.75em

}

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

A
AUTOMATIC 已提交
708 709
#txt2img_checkboxes, #img2img_checkboxes{
    margin-bottom: 0.5em;
710
    margin-left: 0em;
A
AUTOMATIC 已提交
711
}
712
#txt2img_checkboxes > div, #img2img_checkboxes > div{
713 714 715 716 717
    flex: 0;
    white-space: nowrap;
    min-width: auto;
}

718 719 720 721
#img2img_copy_to_img2img, #img2img_copy_to_sketch, #img2img_copy_to_inpaint, #img2img_copy_to_inpaint_sketch{
    margin-left: 0em;
}

E
EllangoK 已提交
722 723 724 725
#axis_options {
    margin-left: 0em;
}

726 727 728 729
.inactive{
    opacity: 0.5;
}

730 731 732 733 734 735 736 737
[id*='_prompt_container']{
    gap: 0;
}

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

A
AUTOMATIC 已提交
738 739 740 741 742 743 744 745
.gr-compact {
    border: none;
}

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

746 747 748 749
.gr-compact{
    overflow: visible;
}

A
AUTOMATIC 已提交
750 751 752 753 754 755 756 757 758 759 760 761 762
.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;
}

763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780
#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 已提交
781 782
.extra-networks > div > [id *= '_extra_']{
    margin: 0.3em;
A
AUTOMATIC 已提交
783
}
A
AUTOMATIC 已提交
784

A
AUTOMATIC 已提交
785 786 787 788 789 790


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

794 795 796 797 798
#txt2img_extra_view, #img2img_extra_view {
    width: auto;
}

.extra-network-cards .nocards, .extra-network-thumbs .nocards{
A
AUTOMATIC 已提交
799 800 801
    margin: 1.25em 0.5em 0.5em 0.5em;
}

802
.extra-network-cards .nocards h1, .extra-network-thumbs .nocards h1{
A
AUTOMATIC 已提交
803 804 805 806
    font-size: 1.5em;
    margin-bottom: 1em;
}

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

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
.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 已提交
856
    color: white;
857 858 859 860 861 862 863
}

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

A
AUTOMATIC 已提交
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
.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;
}