style.css 16.5 KB
Newer Older
B
Ben 已提交
1

A
AUTOMATIC 已提交
2
/* general gradio fixes */
3

A
AUTOMATIC 已提交
4
:root, .dark{
A
AUTOMATIC 已提交
5 6
    --checkbox-label-gap: 0.25em 0.1em;
    --section-header-text-size: 12pt;
A
AUTOMATIC 已提交
7
    --block-background-fill: transparent;
B
Ben 已提交
8 9
}

10
.block.padded:not(.gradio-accordion) {
11
    padding: 0 !important;
12 13
}

A
AUTOMATIC 已提交
14 15
div.gradio-container{
    max-width: unset !important;
B
Ben 已提交
16 17
}

A
AUTOMATIC 已提交
18 19
.hidden{
    display: none;
B
Ben 已提交
20 21
}

A
AUTOMATIC 已提交
22 23 24
.compact{
    background: transparent !important;
    padding: 0 !important;
W
whw1sfb 已提交
25
}
E
EyeDeck 已提交
26

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

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

A
AUTOMATIC 已提交
48 49
.gap.compact{
    padding: 0;
50
    gap: 0.2em 0;
51 52
}

A
AUTOMATIC 已提交
53
div.compact{
54
    gap: 1em;
E
EyeDeck 已提交
55 56
}

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

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

.gradio-dropdown ul.options li.item {
72
    padding: 0.05em 0;
73 74 75
}

.gradio-dropdown ul.options li.item.selected {
76 77 78 79 80
    background-color: var(--neutral-100);
}

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

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

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

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

96 97
.gradio-dropdown .token-remove.remove-all.remove-all{
    display: none;
E
EyeDeck 已提交
98 99
}

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

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

A
AUTOMATIC 已提交
108 109
.block.gradio-checkbox {
    margin: 0.75em 1.5em 0 0;
110 111
}

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

119 120
.block.gradio-gallery{
    background: var(--input-background-fill);
121 122
}

123 124 125
.gradio-container .prose a, .gradio-container .prose a:visited{
    color: unset;
    text-decoration: none;
126 127
}

128 129


A
AUTOMATIC 已提交
130
/* general styled components */
131

A
AUTOMATIC 已提交
132 133 134 135 136 137 138
.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;
139 140
}

141 142 143 144 145 146 147 148 149 150 151 152
.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 已提交
153 154 155
.checkboxes-row{
    margin-bottom: 0.5em;
    margin-left: 0em;
156
}
A
AUTOMATIC 已提交
157 158 159
.checkboxes-row > div{
    flex: 0;
    white-space: nowrap;
160
    min-width: auto;
161 162
}

A
AUTOMATIC 已提交
163 164 165 166 167 168 169 170 171 172 173 174 175 176
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;
177 178
}

179

A
AUTOMATIC 已提交
180
/* txt2img/img2img specific */
A
AUTOMATIC 已提交
181

A
AUTOMATIC 已提交
182 183 184 185
.block.token-counter{
    position: absolute;
    display: inline-block;
    right: 1em;
A
AUTOMATIC 已提交
186
    min-width: 0 !important;
A
AUTOMATIC 已提交
187 188
    width: auto;
    z-index: 100;
A
AUTOMATIC 已提交
189
    top: -0.75em;
G
Greendayle 已提交
190
}
191

A
AUTOMATIC 已提交
192 193 194 195 196
.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 已提交
197 198
}

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

A
AUTOMATIC 已提交
204 205
.block.token-counter div{
    display: inline;
A
AUTOMATIC 已提交
206 207
}

A
AUTOMATIC 已提交
208 209
.block.token-counter span{
    padding: 0.1em 0.75em;
A
AUTOMATIC 已提交
210
}
I
ItsOlegDm 已提交
211

A
AUTOMATIC 已提交
212 213 214 215
[id$=_subseed_show]{
    min-width: auto !important;
    flex-grow: 0 !important;
    display: flex;
A
AUTOMATIC 已提交
216 217
}

A
AUTOMATIC 已提交
218 219 220
[id$=_subseed_show] label{
    margin-bottom: 0.5em;
    align-self: end;
221 222
}

A
AUTOMATIC 已提交
223 224 225
.performance {
    font-size: 0.85em;
    color: #444;
226 227
}

A
AUTOMATIC 已提交
228 229
.performance p{
    display: inline-block;
A
AUTOMATIC 已提交
230 231
}

A
AUTOMATIC 已提交
232 233
.performance .time {
    margin-right: 0;
234 235
}

A
AUTOMATIC 已提交
236
.performance .vram {
237 238
}

A
AUTOMATIC 已提交
239 240
#txt2img_generate, #img2img_generate {
    min-height: 4.5em;
A
AUTOMATIC 已提交
241 242
}

A
AUTOMATIC 已提交
243 244 245 246
@media screen and (min-width: 2500px) {
    #txt2img_gallery, #img2img_gallery {
        min-height: 768px;
    }
A
AUTOMATIC 已提交
247 248
}

249
#txt2img_gallery img, #img2img_gallery img, #extras_gallery img{
A
AUTOMATIC 已提交
250
    object-fit: scale-down;
A
AUTOMATIC 已提交
251
}
A
AUTOMATIC 已提交
252 253 254 255 256
#txt2img_actions_column, #img2img_actions_column {
    gap: 0.5em;
}
#txt2img_tools, #img2img_tools{
    gap: 0.4em;
A
AUTOMATIC 已提交
257 258
}

A
AUTOMATIC 已提交
259 260 261 262 263 264
.interrogate-col{
    min-width: 0 !important;
    max-width: fit-content;
    gap: 0.5em;
}
.interrogate-col > button{
265
    flex: 1;
A
AUTOMATIC 已提交
266 267
}

A
AUTOMATIC 已提交
268 269 270 271
.generate-box{
    position: relative;
}
.gradio-button.generate-box-skip, .gradio-button.generate-box-interrupt{
A
AUTOMATIC 已提交
272
    position: absolute;
A
AUTOMATIC 已提交
273 274 275
    width: 50%;
    height: 100%;
    display: none;
276 277 278 279
    background: #b4c0cc;
}
.gradio-button.generate-box-skip:hover, .gradio-button.generate-box-interrupt:hover{
    background: #c2cfdb;
A
AUTOMATIC 已提交
280 281
}
.gradio-button.generate-box-interrupt{
A
AUTOMATIC 已提交
282
    left: 0;
A
AUTOMATIC 已提交
283 284 285
    border-radius: 0.5rem 0 0 0.5rem;
}
.gradio-button.generate-box-skip{
A
AUTOMATIC 已提交
286
    right: 0;
A
AUTOMATIC 已提交
287
    border-radius: 0 0.5rem 0.5rem 0;
A
AUTOMATIC 已提交
288 289
}

290
#txtimg_hr_finalres{
A
AUTOMATIC 已提交
291 292 293
    min-height: 0 !important;
    padding: .625rem .75rem;
    margin-left: -0.75em
I
innovaciones 已提交
294 295
}

296 297 298 299 300 301
#img2img_scale_resolution_preview.block{
    display: flex;
    align-items: end;
}

#txtimg_hr_finalres .resolution, #img2img_scale_resolution_preview .resolution{
A
AUTOMATIC 已提交
302
    font-weight: bold;
I
innovaciones 已提交
303 304
}

A
AUTOMATIC 已提交
305 306
.inactive{
    opacity: 0.5;
A
AUTOMATIC 已提交
307 308
}

A
AUTOMATIC 已提交
309 310 311
[id$=_column_batch]{
    min-width: min(13.5em, 100%) !important;
}
A
AUTOMATIC 已提交
312

A
AUTOMATIC 已提交
313
div.dimensions-tools{
A
AUTOMATIC 已提交
314 315
    min-width: 0 !important;
    max-width: fit-content;
A
AUTOMATIC 已提交
316 317
    flex-direction: row;
    align-content: center;
318
}
319

320 321 322 323
div#extras_scale_to_tab div.form{
    flex-direction: row;
}

A
AUTOMATIC 已提交
324 325 326 327
#mode_img2img .gradio-image > div.fixed-height, #mode_img2img .gradio-image > div.fixed-height img{
    height: 480px !important;
    max-height: 480px !important;
    min-height: 480px !important;
328 329
}

Z
zetclansu 已提交
330 331 332 333 334 335 336
#img2img_sketch, #img2maskimg, #inpaint_sketch {
    overflow: overlay !important;
    resize: auto;
    background: var(--panel-background-fill);
    z-index: 5;
}

337 338
.image-buttons button{
    min-width: auto;
339 340
}

341
.infotext {
342
    overflow-wrap: break-word;
A
AUTOMATIC 已提交
343
}
344

345 346 347 348 349 350 351 352 353 354 355 356
#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 已提交
357 358 359
/* settings */
#quicksettings {
    width: fit-content;
M
missionfloyd 已提交
360
    align-items: end;
A
AUTOMATIC 已提交
361
}
A
AUTOMATIC 已提交
362

A
AUTOMATIC 已提交
363 364 365 366
#quicksettings > div, #quicksettings > fieldset{
    max-width: 24em;
    min-width: 24em;
    padding: 0;
A
AUTOMATIC 已提交
367
    border: none;
A
AUTOMATIC 已提交
368 369
    box-shadow: none;
    background: none;
A
AUTOMATIC 已提交
370 371
}

372 373 374 375 376 377 378 379 380
#settings{
    display: block;
}

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

A
AUTOMATIC 已提交
381
#settings > div.tab-nav{
382 383 384 385 386 387
    float: left;
    display: block;
    margin-left: 0;
    width: 10em;
}

A
AUTOMATIC 已提交
388
#settings > div.tab-nav button{
389 390 391
    display: block;
    border: none;
    text-align: left;
392
    white-space: initial;
393 394 395 396 397 398 399
}

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

A
AUTOMATIC 已提交
400

A
AUTOMATIC 已提交
401
/* live preview */
A
AUTOMATIC 已提交
402
.progressDiv{
I
ItsOlegDm 已提交
403
    position: relative;
404 405
    height: 20px;
    background: #b4c0cc;
A
AUTOMATIC 已提交
406
    border-radius: 3px !important;
I
ItsOlegDm 已提交
407
    margin-bottom: -3px;
A
AUTOMATIC 已提交
408 409 410
}

.dark .progressDiv{
411
    background: #424c5b;
A
AUTOMATIC 已提交
412 413 414
}

.progressDiv .progress{
415 416 417 418 419 420 421 422
    width: 0%;
    height: 20px;
    background: #0060df;
    color: white;
    font-weight: bold;
    line-height: 20px;
    padding: 0 8px 0 0;
    text-align: right;
A
AUTOMATIC 已提交
423
    border-radius: 3px;
424 425
    overflow: visible;
    white-space: nowrap;
A
AUTOMATIC 已提交
426
    padding: 0 0.5em;
427 428 429 430 431 432 433 434 435
}

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

436 437 438 439
.dark .livePreview{
    background-color: rgb(17 24 39 / var(--tw-bg-opacity));
}

440
.livePreview img{
A
AUTOMATIC 已提交
441
    position: absolute;
442 443 444
    object-fit: contain;
    width: 100%;
    height: 100%;
A
AUTOMATIC 已提交
445
}
A
AUTOMATIC 已提交
446

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

449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488
.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);
}


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

D
DepFA 已提交
491
#lightboxModal{
492 493 494 495 496 497 498 499 500 501 502 503
    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 已提交
504 505
}

506
.modalControls {
507 508 509
    display: flex;
    gap: 1em;
    padding: 1em;
510 511 512
    background-color: rgba(0,0,0,0.2);
}
.modalClose {
513
    margin-left: auto;
D
DepFA 已提交
514
}
515
.modalControls span{
516
    color: white;
517
    font-size: 35px;
518 519
    font-weight: bold;
    cursor: pointer;
520
    width: 1em;
521 522
}

523 524 525
.modalControls span:hover, .modalControls span:focus{
    color: #999;
    text-decoration: none;
D
DepFA 已提交
526 527
}

528
#lightboxModal > img {
D
DepFA 已提交
529
    display: block;
530
    margin: auto;
D
DepFA 已提交
531 532 533
    width: auto;
}

534
#lightboxModal > img.modalImageFullscreen{
D
DepFA 已提交
535
    object-fit: contain;
536
    height: 100%;
D
DepFA 已提交
537 538
}

D
DepFA 已提交
539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564
.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 已提交
565

566 567 568 569 570 571 572 573 574 575 576
#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 已提交
577
/* context menu (ie for the generate button) */
578

D
DepFA 已提交
579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604
#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;
}
605

606

A
AUTOMATIC 已提交
607
/* extensions */
608

609
#tab_extensions table{
610 611 612
    border-collapse: collapse;
}

A
AUTOMATIC 已提交
613
#tab_extensions table td, #tab_extensions table th{
614 615 616 617
    border: 1px solid #ccc;
    padding: 0.25em 0.5em;
}

A
AUTOMATIC 已提交
618
#tab_extensions table input[type="checkbox"]{
619
    margin-right: 0.5em;
A
AUTOMATIC 已提交
620
    appearance: checkbox;
621 622 623 624 625 626
}

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

A
AUTOMATIC 已提交
627 628 629
#tab_extensions input[disabled="disabled"]{
    opacity: 0.5;
}
630

631 632 633 634 635
.extension-tag{
    font-weight: bold;
    font-size: 95%;
}

636 637 638 639 640 641 642 643 644
#available_extensions .info{
    margin: 0;
}

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

A
AUTOMATIC 已提交
645
/* replace original footer with ours */
646

A
AUTOMATIC 已提交
647 648 649 650 651 652 653 654 655 656 657
footer {
    display: none !important;
}

#footer{
    text-align: center;
}

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

A
AUTOMATIC 已提交
659 660 661 662 663
#footer .versions{
    font-size: 85%;
    opacity: 0.85;
}

A
AUTOMATIC 已提交
664
/* extra networks UI */
665

R
Reimoo 已提交
666
.extra-network-cards{
667
    height: 725px;
R
Reimoo 已提交
668 669 670 671
    overflow: scroll;
    resize: vertical;
}

A
AUTOMATIC 已提交
672 673
.extra-networks > div > [id *= '_extra_']{
    margin: 0.3em;
A
AUTOMATIC 已提交
674
}
A
AUTOMATIC 已提交
675

676 677 678
.extra-network-subdirs{
    padding: 0.2em 0.35em;
}
A
AUTOMATIC 已提交
679

680 681 682
.extra-network-subdirs button{
    margin: 0 0.15em;
}
A
AUTOMATIC 已提交
683
.extra-networks .tab-nav .search{
A
AUTOMATIC 已提交
684 685 686
    display: inline-block;
    max-width: 16em;
    margin: 0.3em;
687
    align-self: center;
A
AUTOMATIC 已提交
688
    width: 16em;
A
AUTOMATIC 已提交
689 690
}

691 692 693 694 695
#txt2img_extra_view, #img2img_extra_view {
    width: auto;
}

.extra-network-cards .nocards, .extra-network-thumbs .nocards{
A
AUTOMATIC 已提交
696 697 698
    margin: 1.25em 0.5em 0.5em 0.5em;
}

699
.extra-network-cards .nocards h1, .extra-network-thumbs .nocards h1{
A
AUTOMATIC 已提交
700 701 702 703
    font-size: 1.5em;
    margin-bottom: 1em;
}

704
.extra-network-cards .nocards li, .extra-network-thumbs .nocards li{
A
AUTOMATIC 已提交
705 706 707
    margin-left: 0.5em;
}

708 709 710 711 712 713 714 715 716 717 718 719

.extra-network-cards .card .metadata-button:before, .extra-network-thumbs .card .metadata-button:before{
    content: "🛈";
}
.extra-network-cards .card .metadata-button, .extra-network-thumbs .card .metadata-button{
    display: none;
    position: absolute;
    right: 0;
    color: white;
    text-shadow: 2px 2px 3px black;
    padding: 0.25em;
    font-size: 22pt;
720
    width: 1.5em;
721 722 723 724 725 726 727 728 729
}
.extra-network-cards .card:hover .metadata-button, .extra-network-thumbs .card:hover .metadata-button{
    display: inline-block;
}
.extra-network-cards .card .metadata-button:hover, .extra-network-thumbs .card .metadata-button:hover{
    color: red;
}


730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746
.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 {
747
    display: inline-block;
748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774
}

.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 已提交
775
    color: white;
776 777 778 779 780 781 782
}

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

A
AUTOMATIC 已提交
783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818
.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;
    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 已提交
819 820 821 822
.extra-network-cards .card .actions *{
    color: white;
}

A
AUTOMATIC 已提交
823 824 825 826 827 828 829 830 831 832
.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;
}

833 834 835 836 837 838 839 840 841 842 843
.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 已提交
844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859
.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;
}