stable-diffusion-webui/style.css

2117 lines
37 KiB
CSS

:root {
--main-bg-color: #1a1a1a;
}
.livePreview > img,
#img2img_gallery .overflow-y-auto,
#txt2img_gallery .overflow-y-auto
{
background: var(--main-bg-color);
}
.container {
max-width: 100%;
}
.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 .3em rgba(255, 0, 0, .15), inset 0 0 .6em rgba(255, 0, 0, .075);
border: 2px solid rgba(255, 0, 0, .4) !important;
}
.token-counter div {
display: inline;
}
.token-counter span {
padding: .1em .75em;
}
#sh {
min-width: 2em;
min-height: 2em;
max-width: 2em;
max-height: 2em;
flex-grow: 0;
padding-left: .25em;
padding-right: .25em;
margin: .1em 0;
opacity: 0%;
cursor: default;
}
.output-html p {
margin: 0 .5em;
}
.row>*,
.row>.gr-form>* {
min-width: min(120px, 100%);
flex: 1 1 0%;
}
.performance {
font-size: .85em;
color: #444;
}
.performance p {
display: inline-block;
}
.performance .time {
margin-right: 0;
}
#img2img_generate,
#txt2img_generate {
min-height: 4.5em;
}
@media screen and (min-width:2500px) {
#img2img_gallery,
#txt2img_gallery {
min-height: 768px;
}
}
#img2img_gallery img,
#txt2img_gallery img {
object-fit: scale-down;
}
#img2img_actions_column,
#txt2img_actions_column {
margin: .35rem .75rem .35rem 0;
}
.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;
}
[id$=_random_seed],
[id$=_random_subseed],
[id$=_reuse_seed],
[id$=_reuse_subseed] {
min-width: 2.3em;
height: 2.5em;
flex-grow: 0;
padding-left: .25em;
padding-right: .25em;
}
#open_folder {
min-width: 2.3em;
flex-grow: 0;
padding-left: .25em;
padding-right: .25em;
}
#hidden_element,
#img2img_preview div.left-0.top-0,
#ti_preview div.left-0.top-0,
#txt2img_preview div.left-0.top-0,
.extra-network-cards .card .actions .additional {
display: none;
}
#img2img_actions_column,
#txt2img_actions_column {
gap: 0;
margin-right: .75rem;
}
#img2img_tools,
#txt2img_tools {
gap: .4em;
}
#interrogate_col {
margin-right: 1em;
}
img2img_styles_row {
min-width: 8em !important;
}
#img2img_styles_row,
#txt2img_styles_row {
gap: .25em;
margin-top: .3em;
}
#img2img_styles_row>button,
#txt2img_styles_row>button {
margin: 0;
}
#img2img_styles>label>div,
#txt2img_styles>label>div {
min-height: 2.7em;
}
ul.list-none {
max-height: 35em;
z-index: 2000;
}
.my-4 {
margin-top: 0;
margin-bottom: 0;
}
button {
align-self: stretch !important;
}
.gr-panel,
.overflow-hidden {
overflow: visible !important;
}
#x_type,
#y_type {
max-width: 10em;
}
#img2img_preview,
#ti_preview,
#txt2img_preview {
position: absolute;
width: 320px;
left: 0;
right: 0;
margin-left: auto;
margin-right: auto;
z-index: 100;
border: 0;
border-top-left-radius: 0;
border-top-right-radius: 0;
}
@media screen and (min-width:768px) {
#img2img_preview,
#ti_preview,
#txt2img_preview {
position: absolute;
}
}
@media screen and (max-width:767px) {
#img2img_preview,
#ti_preview,
#txt2img_preview {
position: relative;
}
}
.gr-block.gr-box span.text-gray-500,
fieldset span.text-gray-500,
label.block span {
position: absolute;
top: -.7em;
line-height: 1.2em;
padding: 0;
margin: 0 .5em;
background-color: #fff;
box-shadow: 6px 0 6px 0#fff, -6px 0 6px 0#fff;
z-index: 300;
}
.dark .gr-block.gr-box span.text-gray-500,
.dark fieldset span.text-gray-500,
.dark label.block span {
box-shadow: none;
border: 1px solid rgba(128, 128, 128, .1);
border-radius: 6px;
border-top: 1px solid rgb(55 65 81);
border-left: 1px solid rgb(55 65 81);
border-right: 1px solid rgb(55 65 81);
background-color: transparent !important;
top: 0 !important;
border: 0 !important;
position: relative;
padding: 5px 1px !important;
}
#img2img_column_batch,
#txt2img_column_batch {
min-width: min(13.5em, 100%) !important;
}
#settings .gr-block.gr-box span.text-gray-500,
#settings fieldset span.text-gray-500,
#settings label.block span {
position: relative;
border: 0;
margin-right: 0;
}
#settings .gr-panel div.flex-col div.justify-between div {
position: relative;
z-index: 200;
}
#settings,
.extra-network-thumbs .card:hover .additional a {
display: block;
}
#settings>div {
border: 0;
margin-left: 10em;
}
#settings>div.flex-wrap {
float: left;
display: block;
margin-left: 0;
width: 10em;
}
#settings>div.flex-wrap button {
display: block;
border: 0;
text-align: left;
padding: .25em .5em;
}
#settings_result {
height: 1.4em;
margin: 0 1.2em;
}
input[type=range] {
margin: .7em 0 0;
}
#mask_bug_info {
text-align: center;
display: block;
margin-top: -.75em;
margin-bottom: -.75em;
}
.transition.opacity-20 {
opacity: 1 !important;
}
.min-h-\[4rem\],
.min-h-\[6rem\] {
min-height: unset !important;
}
.progressDiv {
background: #b4c0cc;
margin-bottom: -3px;
}
.dark .progressDiv {
background: #424c5b;
}
.progressDiv .progress {
background: #0060df;
font-weight: 700;
overflow: visible;
white-space: nowrap;
}
.livePreview {
z-index: 300;
margin: -4px;
}
.dark .livePreview {
background-color: rgb(17 24 39/var(--tw-bg-opacity));
}
.livePreview img {
position: absolute;
width: 100%;
height: 100%;
object-fit: scale-down;
}
#lightboxModal {
display: none;
position: fixed;
z-index: 1001;
padding-top: 100px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(20, 20, 20, .95);
user-select: none;
-webkit-user-select: none;
}
.modalControls {
display: grid;
grid-template-columns: 32px 32px 32px 1fr 32px;
grid-template-areas: "zoom tile save space close";
position: absolute;
top: 0;
left: 0;
right: 0;
padding: 16px;
gap: 16px;
background-color: rgba(0, 0, 0, .2);
}
.modalClose {
grid-area: close;
}
.modalZoom {
grid-area: zoom;
}
.modalSave {
grid-area: save;
}
.modalTileImage {
grid-area: tile;
}
.modalClose,
.modalSave,
.modalTileImage,
.modalZoom {
color: #fff;
font-size: 35px;
font-weight: 700;
cursor: pointer;
}
.modalSave {
font-size: 28px;
margin-top: 8px;
}
.modalClose:focus,
.modalClose:hover,
.modalSave:focus,
.modalSave:hover,
.modalZoom:focus,
.modalZoom:hover {
color: #999;
text-decoration: none;
cursor: pointer;
}
#modalImage {
display: block;
margin-left: auto;
margin-right: auto;
margin-top: auto;
width: auto;
}
.modalImageFullscreen {
object-fit: contain;
height: 90%;
}
.modalNext,
.modalPrev {
cursor: pointer;
position: absolute;
top: 50%;
width: auto;
padding: 16px;
margin-top: -50px;
color: #fff;
font-weight: 700;
font-size: 20px;
transition: .6s ease;
border-radius: 0 3px 3px 0;
user-select: none;
-webkit-user-select: none;
}
.modalNext {
right: 0;
border-radius: 3px 0 0 3px;
}
.modalNext:hover,
.modalPrev:hover {
background-color: rgba(0, 0, 0, .8);
}
#imageARPreview {
position: absolute;
top: 0;
left: 0;
border: 2px solid red;
background: rgba(255, 0, 0, .3);
z-index: 900;
pointer-events: none;
display: none;
}
#img2img_generate_box,
#txt2img_generate_box {
position: relative;
}
#img2img_interrupt,
#img2img_skip,
#txt2img_interrupt,
#txt2img_skip {
position: absolute;
width: 50%;
height: 100%;
background: #b4c0cc;
display: none;
}
#img2img_interrupt,
#txt2img_interrupt {
left: 0;
border-radius: .5rem 0 0 .5rem;
}
#img2img_skip,
#txt2img_skip {
right: 0;
border-radius: 0 .5rem .5rem 0;
}
.extra-network-cards .card ul a:hover,
.red {
color: red;
}
.gallery-item {
--tw-bg-opacity: 0 !important;
}
#context-menu {
z-index: 9999;
position: absolute;
display: block;
padding: 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;
}
#quicksettings>div,
#quicksettings>fieldset {
max-width: 24em;
min-width: 24em;
padding: 0;
border: 0;
box-shadow: none;
background: 0 0;
margin-right: 10px;
}
#quicksettings>div>div>div>label>span {
position: relative;
margin-right: 9em;
margin-bottom: -1em;
}
canvas[key=mask] {
z-index: 12 !important;
filter: invert();
mix-blend-mode: multiply;
pointer-events: none;
}
.gr-box>div>div>input.gr-text-input {
position: absolute;
right: .85em;
top: .8em;
z-index: 200;
border-radius: 0;
width: 64px;
margin: 0;
text-align: left;
padding: 5px 2px 5px 5px;
height: 25px !important;
}
#quicksettings .gr-box>div>div>input.gr-text-input {
top: -1.12em;
}
.row.gr-compact {
overflow: visible;
}
#img2img_image,
#img2img_image>.h-60,
#img2img_image>.h-60>div,
#img2img_image>.h-60>div>img {
max-height: 480px !important;
}
#img2img_sketch,
#img2img_sketch>.h-60,
#img2img_sketch>.h-60>div,
#img2img_sketch>.h-60>div>img,
#img2maskimg,
#inpaint_sketch {
height: 480px !important;
max-height: 480px !important;
min-height: 480px !important;
}
#img2maskimg>.h-60,
#img2maskimg>.h-60>div,
#img2maskimg>.h-60>div>img {
max-height: 480px !important;
}
#inpaint_sketch>.h-60,
#inpaint_sketch>.h-60>div,
#inpaint_sketch>.h-60>div>img {
height: 480px !important;
max-height: 480px !important;
min-height: 480px !important;
}
#tab_extensions table {
border-collapse: collapse;
}
#tab_extensions table td,
#tab_extensions table th {
padding: .25em .5em;
border: 1px solid #494c50;
}
#tab_extensions table input[type=checkbox] {
margin-right: .5em;
top: -2px;
}
#tab_extensions button {
max-width: 16em;
}
#tab_extensions input[disabled=disabled] {
opacity: .5;
}
.extension-tag {
font-weight: 700;
font-size: 95%;
}
#available_extensions .info {
margin: 0;
}
#available_extensions .date_added {
opacity: .85;
font-size: 90%;
}
#image_buttons_extras button,
#image_buttons_img2img button,
#image_buttons_txt2img button {
min-width: auto;
padding-left: .5em;
padding-right: .5em;
}
.gr-form {
background-color: #fff;
}
.dark .gr-compact,
.dark .gr-form {
background-color: rgb(31 41 55/var(--tw-bg-opacity));
}
.gr-button-tool,
.gr-button-tool-top {
max-width: 2.5em;
min-width: 2.5em !important;
height: 2.4em;
}
.gr-button-tool {
margin: .6em 0 .55em;
}
#settings .gr-button-tool,
.gr-button-tool-top {
margin: 1.6em .7em .55em 0;
}
#modelmerger_results_container {
margin-top: 1em;
overflow: visible;
}
#modelmerger_models {
gap: 0;
}
#modelmerger_interp_description>p {
margin: 0 !important;
text-align: center;
}
#modelmerger_interp_description {
margin: .35rem .75rem 1.23rem;
}
footer {
display: none !important;
}
#footer {
text-align: center;
}
#footer div {
display: inline-block;
}
#footer .versions {
font-size: 85%;
opacity: .85;
}
#txtimg_hr_finalres {
min-height: 0 !important;
padding: .625rem .75rem;
margin-left: -.75em;
}
#txtimg_hr_finalres .resolution {
font-weight: 700;
}
#img2img_checkboxes,
#txt2img_checkboxes {
margin-bottom: .5em;
margin-left: 0;
}
#img2img_checkboxes>div,
#txt2img_checkboxes>div {
flex: 0;
white-space: nowrap;
min-width: auto;
}
#axis_options,
#img2img_copy_to_img2img,
#img2img_copy_to_inpaint,
#img2img_copy_to_inpaint_sketch,
#img2img_copy_to_sketch {
margin-left: 0;
}
.inactive {
opacity: .5;
}
[id*=_prompt_container] {
gap: 0;
}
[id*=_prompt_container]>div {
margin: 0 !important;
}
.gr-compact {
border: 0;
overflow: visible;
}
.dark .gr-compact {
margin-left: 0;
}
.gr-compact .gr-block,
.gr-compact .gr-form {
border: 0;
box-shadow: none;
}
.gr-compact .gr-box {
border-radius: .5rem !important;
border-width: 1px !important;
}
#mode_img2img>div>div {
gap: 0 !important;
}
[id*=img2img_copy_to_],
div#group-seed>div>div>div>div,
div#group-subseed>div>div>div>div {
border: 0;
}
[id*=img2img_label_copy_to_] {
font-size: 1em;
font-weight: 700;
text-align: center;
line-height: 2.4em;
}
.extra-networks>div>[id*=_extra_] {
margin: .3em;
}
.extra-network-subdirs {
padding: .2em .35em;
}
.extra-network-subdirs button {
margin: 0 .15em;
}
#img2img_extra_networks .search,
#txt2img_extra_networks .search {
display: inline-block;
max-width: 16em;
margin: .3em;
align-self: center;
}
#img2img_extra_view,
#txt2img_extra_view {
width: auto;
}
.extra-network-cards .nocards,
.extra-network-thumbs .nocards {
margin: 1.25em .5em .5em;
}
.extra-network-cards .nocards h1,
.extra-network-thumbs .nocards h1 {
font-size: 1.5em;
margin-bottom: 1em;
}
.extra-network-cards .nocards li,
.extra-network-thumbs .nocards li {
margin-left: .5em;
}
.extra-network-thumbs {
display: flex;
flex-flow: row wrap;
gap: 10px;
}
.extra-network-cards .card,
.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 .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);
color: #fff;
}
.extra-network-thumbs .card:hover .actions .name {
white-space: normal;
word-break: break-all;
}
.extra-network-cards .card {
display: inline-block;
margin: .5em;
width: 16em;
height: 24em;
box-shadow: 0 0 5px rgba(128, 128, 128, .5);
border-radius: .2em;
background-size: auto 100%;
background-position: center;
overflow: hidden;
}
.extra-network-cards .card:hover {
box-shadow: 0 0 2px .3em rgba(0, 128, 255, .35);
}
.extra-network-cards .card .actions {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: .5em;
color: #fff;
background: rgba(0, 0, 0, .5);
box-shadow: 0 0 .25em .25em rgba(0, 0, 0, .5);
text-shadow: 0 0 .2em #000;
}
.extra-network-cards .card .actions:hover {
box-shadow: 0 0 .75em .75em rgba(0, 0, 0, .5) !important;
}
.extra-network-cards .card .actions .name {
font-size: 1.7em;
font-weight: 700;
line-break: anywhere;
}
.extra-network-cards .card .actions:hover .additional {
display: block;
}
.extra-network-cards .card ul {
margin: .25em 0 .75em .25em;
cursor: unset;
}
.extra-network-cards .card ul a {
cursor: pointer;
}
#img2img_actions_column,
#txt2img_actions_column {
min-width: unset !important;
flex-grow: 0 !important;
}
#img2img_actions_column>button,
#txt2img_actions_column>button {
flex-grow: 0;
padding-left: .25em;
padding-right: .25em;
margin: .1em 0;
}
#interrogate_col {
max-width: 8em !important;
}
#img2img_styles_row,
#txt2img_styles_row {
min-width: 8em !important;
}
#txt2img_styles #img2img_styles {
margin-top: 1em;
}
.gr-form {
background: 0 0;
}
#quicksettings div {
margin: 0;
}
#quicksettings .gr-button-tool {
border: 1px solid #494c50 !important;
}
.dark .gr-compact {
background: #202124;
border-radius: 0 !important;
padding: .5em;
}
#settings>div {
padding: 0;
}
#seed_row,
#subseed_row {
gap: .5rem;
}
#subseed_show,
#subseed_show_box {
min-width: auto;
flex-grow: 0;
}
#subseed_show_box>div {
border: 0;
height: 100%;
}
#subseed_show {
padding: 0;
}
#subseed_show label {
height: 100%;
}
#img2img_seed_row,
#txt2img_seed_row,
div#group-seed>div>div>div>div>div,
div#group-subseed>div>div>div>div>div {
padding: 0;
}
div.sub-group .gr-box {
background: #222325;
}
#img2img_seed_row button,
#txt2img_seed_row button,
#img2img_subseed_row button,
#txt2img_subseed_row button
{
border-radius: 0 !important;
display: flex;
align-self: self-end !important;
height: 34px;
width: 34px !important;
min-width: 34px;
max-width: unset;
}
/*
div.sub-group div{
border:none !important;
}
*/
.dark .gr-panel {
--tw-bg-opacity: 1;
background-color: rgb(17 24 39/var(--tw-bg-opacity));
border: 0;
border-radius: 0;
}
.dark .\!border,
.dark .\!border-gray-300,
.dark .border,
.dark .border-gray-100,
.dark .border-gray-200,
.dark .border-gray-300 {
--tw-border-opacity: 1;
border-color: rgb(55 65 81/var(--tw-border-opacity));
border-radius: 0 !important;
}
div.gr-form>:last-child {
border-radius: 0 !important;
}
div.gr-form>:first-child {
border-radius: 0 !important;
}
div.svelte-10ogue4>:last-child,
div.svelte-10ogue4>div:last-child {
border-radius: 0 !important;
}
div.svelte-10ogue4>:first-child,
div.svelte-10ogue4>div:first-child {
border-radius: 0 !important;
}
.dark .gr-input {
--tw-border-opacity: 1;
border-color: rgb(55 65 81/var(--tw-border-opacity));
--tw-text-opacity: 1;
color: rgb(229 231 235/var(--tw-text-opacity));
margin-top: 0;
border-radius: 0;
padding: 6px;
}
.dark .gr-button-primary,
.dark .gr-button-secondary {
--tw-border-opacity: 1;
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
--tw-text-opacity: 1;
color: rgb(255 255 255/var(--tw-text-opacity));
border-radius: 0;
}
.dark .gr-button-secondary {
border-color: rgb(75 85 99/var(--tw-border-opacity));
--tw-gradient-from: #4b5563;
--tw-gradient-to: rgb(75 85 99 / 0);
--tw-gradient-to: #374151;
}
.dark .gr-button-primary {
border-color: rgb(238 116 0/var(--tw-border-opacity));
--tw-gradient-from: #CE6400;
--tw-gradient-to: rgb(206 100 0 / 0);
--tw-gradient-to: #CE6400;
}
#interrogate_col {
min-width: 100px !important;
}
#img2img_styles,
#txt2img_styles,
textarea {
margin-top: 0;
}
.dark .dark\:bg-gray-950 {
background-color: #1a1a1a;
}
.dark .gr-panel {
background-color: #202124;
}
.dark .gr-box {
background-color: #292a2d;
}
#img2img_negative_token_counter span,
#img2img_token_counter span,
#txt2img_negative_token_counter span,
#txt2img_token_counter span,
.dark .\!border,
.dark .\!border-gray-300,
.dark .border,
.dark .border-gray-100,
.dark .border-gray-200,
.dark .border-gray-300,
.dark .dark\:border-gray-700,
.dark .gr-input {
border-color: #494c50;
}
.dark .gr-input {
background-color: #202124;
}
.dark .gr-check-radio {
border-color: #494c50;
background-color: #292a2d;
}
.text-gray-400 {
color: #9aa0a6;
}
.dark .gr-input-label {
--tw-gradient-from: unset;
background-color: #202124;
}
.dark .gr-check-radio:checked {
background-color: #03d0a8;
}
.dark .gr-button {
border-color: #494c50;
background-color: #202124;
--tw-gradient-from: unset;
}
.dark .gr-button:hover {
border-color: #494c50;
background-color: #03d0a8;
}
.dark .\!bg-gray-200,
.dark .bg-gray-200 {
background-color: #494c50 !important;
}
.gr-panel {
border: 0 !important;
}
.gr-box>div>div>label {
width: calc(100% - 64px) !important;
}
.dark .gr-block {
min-width: 150px;
}
#toprow div {
border: 0;
gap: 0;
background: #202124;
}
#img2img_res_switch_btn,
#txt2img_res_switch_btn {
height: auto;
}
.token,
.token+div input {
margin: 0 !important;
}
#interrogate_col {
display: flex;
flex-flow: wrap;
gap: .5em !important;
}
#deepbooru,
#interrogate {
margin: 0;
min-width: unset;
max-width: unset;
width: 37px;
flex-grow: unset;
}
#img2img_actions_column>button,
#txt2img_actions_column>button {
min-width: 2.2em;
min-height: 2.2em;
max-width: 2.2em;
max-height: 2.2em;
}
#img2img_actions_column+div,
#img2img_actions_column+div+div {
justify-content: space-between;
}
#img2img_progressbar,
#ti_progressbar,
#txt2img_progressbar {
padding-left: 0;
padding-right: 0;
position: relative;
height: 14px !important;
background: #202124 !important;
}
#img2img_token_counter,
#txt2img_token_counter {
position: absolute;
right: 0;
top: -1px;
}
#img2img_negative_token_counter,
#txt2img_negative_token_counter {
height: 2.2em !important;
line-height: 2.2em;
position: absolute;
right: 0;
top: -1px;
}
.progressDiv {
background: #141414 !important;
border-radius: 0 !important;
height: 16px;
position: absolute;
z-index: 1000;
top: 8px;
width: calc(100% - 16px) !important;
left: 8px;
border: 1px solid #494c50;
}
.progressDiv .progress {
width: 0%;
height: 14px;
background: #03d0a8;
color: #fff;
line-height: 14px;
text-align: right;
border-radius: 0;
padding: 0 2px;
font-size: 14px;
}
.gradio-container .mx-auto {
padding-top: 1rem;
padding-bottom: 1rem;
}
#img2img_toprow div,
#txt2img_toprow div,
.dark .gr-button {
margin: 0;
}
.gr-form {
min-width: 150px;
}
#img2img_toprow,
#txt2img_toprow {
padding: 0;
margin: 0;
background: #1a1a1a;
}
.gr-input-label,
label.bg-white {
padding-top: 2px;
}
.gr-input-label div:first-child {
position: relative;
top: 3px;
}
#img2img_styles_row,
#txt2img_styles_row {
display: flex;
flex-direction: row;
}
.row.gr-compact {
border: 0 !important;
border-radius: 0 !important;
}
.gap-4 {
gap: .5em;
}
.gr-box-unrounded {
background: 0 0;
}
.gr-text-input {
height: 32px !important;
}
#img2img_image,
#img2img_image>.h-60,
#img2img_image>.h-60>div,
#img2img_image>.h-60>div>img,
#img2maskimg>.h-60,
#img2maskimg>.h-60>div,
#img2maskimg>.h-60>div>img,
.dark .dark\:bg-gray-900,
img2maskimg {
background-color: #1a1a1a;
}
#lightboxModal {
background-color: #000;
}
.gallery-item {
border-radius: 0 !important;
}
.dark .gr-check-radio {
margin-top: 2px;
}
.dark .\!text-gray-700,
.dark .\!text-gray-800,
.dark .text-gray-700,
.dark .text-gray-800,
.dark .text-gray-900 {
display: flex;
}
.flex.flex-wrap.gap-2 {
margin-top: 0 !important;
}
div.svelte-10ogue4>:not(.absolute) {
margin-bottom: .5em;
}
div.svelte-10ogue4>*+:not(.absolute) {
border-top-width: 1px !important;
}
div.svelte-10ogue4 #script-list {
border-top-width: 1px !important;
}
#img2img_image,
#img2img_image>.h-60,
#img2img_image>.h-60>div,
#img2img_image>.h-60>div>img,
#img2maskimg>.h-60,
#img2maskimg>.h-60>div,
#img2maskimg>.h-60>div>img,
img2maskimg {
height: auto !important;
min-height: unset !important;
}
div.sub-group {
padding: 9px 9px 0;
border: 1px solid #494c50;
margin-top: -9px;
border-top: none;
}
#txt2img_seed,
#img2img_seed,
#txt2img_subseed,
#img2img_subseed
{
padding:0;
}
#txt2img_seed_row > div,
#img2img_seed_row > div,
#txt2img_subseed_row > div,
#img2img_subseed_row > div
{
border:none;
}
div#script_list {
border-top: 1px solid #494c50 !important;
}
#img2img_image div.flex-col,
#img2maskimg div.flex-col {
padding: calc((100%/1.618)*.4);
}
#resize_mode {
flex: 1;
}
.dark .gr-check-radio {
position: relative;
top: 3px;
}
.dark .\!text-gray-700,
.dark .\!text-gray-800,
.dark .text-gray-700,
.dark .text-gray-800,
.dark .text-gray-900 {
align-items: baseline;
margin-top: 1px;
}
.dark {
background-color: #1a1a1a;
}
#open_folder,
#random_seed,
#random_subseed,
#reuse_seed,
#reuse_subseed {
height: 34px;
align-self: flex-end !important;
}
#img2img_neg_prompt,
#img2img_prompt,
#img2img_styles,
#txt2img_neg_prompt,
#txt2img_prompt,
#txt2img_styles {
padding: 0;
}
#img2img_neg_prompt,
#img2img_prompt,
#txt2img_neg_prompt,
#txt2img_prompt {
margin-top: 3px;
}
#img2img_prompt,
#txt2img_prompt {
margin-bottom: .8em;
}
#img2img_neg_prompt span,
#img2img_prompt span,
#txt2img_neg_prompt span,
#txt2img_prompt span {
color: #797f86;
border: 1px solid #494c50 !important;
margin: 0;
border-radius: 0;
padding-left: 5px !important;
}
#img2img_neg_prompt label,
#img2img_prompt label,
#txt2img_neg_prompt label,
#txt2img_prompt label {
background: #1a1a1a;
border: 1px solid #494c50;
}
#toprow div {
background: 0 0 !important;
min-width: unset !important;
}
#img2img_actions_column,
#txt2img_actions_column {
padding: 0;
display: flex;
justify-content: flex-start;
}
#img2img_styles label,
#setting_sd_model_checkpoint label,
#txt2img_styles label {
display: flex;
align-items: center;
}
#setting_sd_model_checkpoint span {
align-self: flex-start;
}
#img2img_styles span,
#txt2img_styles span {
display: block;
align-self: flex-start;
}
#img2img_styles label>div,
#txt2img_styles label>div {
width: 100%;
background: #202124;
}
#img2img_styles,
#txt2img_styles {
background: 0 0;
}
#setting_sd_model_checkpoint span {
display: none;
}
#refresh_localization,
#refresh_sd_hypernetwork,
#refresh_sd_model_checkpoint,
#refresh_sd_vae,
#refresh_train_embedding_name,
#refresh_train_hypernetwork_name {
max-width: 34px;
min-width: 34px;
height: 34px;
}
#img2img_token_counter,
#txt2img_token_counter {
height: 2.2em !important;
line-height: 2.2em;
}
#img2img_preview,
#ti_preview,
#txt2img_preview {
object-fit: scale-down;
height: auto !important;
margin-top: 57px;
}
#img2img_gallery,
#txt2img_gallery {
position: relative;
min-height: unset;
max-height: unset;
height: auto;
}
#img2img_settings+div {
margin-top: 30px;
}
.dark .bg-white,
.dark .dark\:border-gray-700,
.p-2,
.tabitem {
background-color: #1a1a1a !important;
}
.dark .dark\:hover\:border-gray-600:hover {
border: 1px solid #03d0a8;
background-color: #1a1a1a;
}
.dark .dark\:hover\:border-gray-600>div.cursor-pointer {
padding: 12px !important;
margin: -12px !important;
width: auto !important;
}
.dark .dark\:hover\:border-gray-600:hover>div.cursor-pointer {
background: #03d0a8 !important;
color: #1a1a1a !important;
font-weight: 700 !important;
}
.dark .dark\:hover\:border-gray-600>div.cursor-pointer+div {
margin-top: .8em !important;
}
.tabs>div>button {
border-bottom: 2px solid #494c50;
}
.tabs>div>.bg-white {
border: 2px solid #1a1a1a;
border-bottom: 2px solid #03d0a8;
color: #03d0a8;
}
#img2img_interrupt,
#img2img_skip,
#txt2img_interrupt,
#txt2img_skip {
background: #202124;
}
#img2img_interrupt:hover,
#img2img_skip:hover,
#txt2img_interrupt:hover,
#txt2img_skip:hover {
background: #ef4444;
}
#quicksettings-header {
align-items: flex-end;
flex-direction: column;
}
#quicksettings {
align-items: center;
flex-direction: row;
width: auto;
}
#quicksettings div {
border: 0;
background: 0 0 !important;
padding: 0;
}
#img2img_gallery div,
#txt2img_gallery div {
background: 0 0 !important;
position: relative;
}
#img2img_gallery,
#txt2img_gallery {
display: flex;
flex-direction: row;
overflow: hidden !important;
}
#img2img_gallery .modify-upload,
#txt2img_gallery .modify-upload {
position: absolute;
}
#img2img_gallery .overflow-y-auto,
#txt2img_gallery .overflow-y-auto {
max-height: unset;
min-height: unset;
width: 100%;
}
#img2img_gallery .overflow-y-auto>div:first-child,
#txt2img_gallery .overflow-y-auto>div:first-child {
height: calc(100vh - 237px);
}
#img2img_gallery div>img,
#txt2img_gallery div>img {
height: calc(100% - 60px);
width: auto;
object-fit: scale-down;
}
#img2img_gallery .backdrop-blur,
#txt2img_gallery .backdrop-blur {
background: #1a1a1a !important;
height: auto;
min-height: auto;
width: 100%;
min-width: 100%;
max-height: calc(100vh - 220px);
}
#img2img_gallery img+div,
#txt2img_gallery img+div {
background: #202124 !important;
}
.livePreview {
position: absolute !important;
width: calc(100% - 18px) !important;
max-height: calc(100vh - 280px) !important;
top: 13px;
left: 13px;
right: 0;
bottom: 63px;
pointer-events: all;
overflow: hidden !important;
/*background-color: #1a1a1a !important;*/
background-color: transparent !important;
}
#img2img_gallery div>div,
#txt2img_gallery div>div {
min-height: auto;
}
#img2img_gallery .overflow-y-auto,
#txt2img_gallery .overflow-y-auto {
min-height: calc(100vh - 220px) !important;
}
#quicksettings {
align-self: end;
background: 0 0;
}
.dark .gr-box {
height: auto !important;
border-radius: 0 !important;
}
#img2img_copy_to_img2img,
#img2img_copy_to_inpaint,
#img2img_copy_to_inpaint_sketch,
#img2img_copy_to_sketch {
background: #292a2d;
}
#img2img_copy_to_img2img button,
#img2img_copy_to_inpaint button,
#img2img_copy_to_inpaint_sketch button,
#img2img_copy_to_sketch button {
min-width: fit-content;
border: 1px solid #494c50 !important;
}
#img2img_settings,
#txt2img_settings {
min-width: min(680px, 100%) !important;
flex: 1 1 0%;
}
#img2img_settings_scroll,
#txt2img_settings_scroll {
height: calc(100vh - 296px);
overflow-y: auto !important;
overflow-x: hidden;
padding-top: 0.5em;
}
#img2img_results,
#txt2img_results {
overflow-x: hidden !important;
/*flex-grow: 2 !important;*/
max-height: calc(100vh - 200px);
overflow-y: auto !important;
}
.flex.row>div {
flex-grow: 1;
flex-shrink: 1;
flex-basis: 5%;
}
input:focus {
border-color: #03d0a8 !important;
}
.gr-button {
border-radius: 0 !important;
}
#img2img_neg_prompt label, #img2img_prompt label, #txt2img_neg_prompt label, #txt2img_prompt label {
border: 0;
}
#img2img_neg_prompt span, #img2img_prompt span, #txt2img_neg_prompt span, #txt2img_prompt span {
border-bottom: 0 !important;
}
textarea{
overflow: hidden !important;
}
pre {
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
}
#settings .gr-button-tool {
align-self: flex-end !important;
margin-bottom: 10px;
margin-right: 10px;
min-width: 34px !important;
max-width: 34px;
height: 34px;
}
@media only screen and (max-width: 1024px) {
/* For tablets: */
#img2img_gallery .overflow-y-auto,
#txt2img_gallery .overflow-y-auto {
min-height: unset !important;
}
#img2img_settings_scroll,
#txt2img_settings_scroll {
height: auto !important;
}
#img2img_results,
#txt2img_results {
max-height: unset !important;
}
#img2img_settings::before, #txt2img_settings::before {
display:none;
}
#txt2img_actions_column, #img2img_actions_column {
flex-basis: 100%;
}
.dark .gr-block {
padding: 3px;
}
.gap-4 {
gap: 2px !important;
}
.gr-box>div>div>input.gr-text-input {
right: 3px;
top: 3px;
padding: 5px 2px 5px 5px;
}
#txt2img_settings,
#img2img_settings,
#txt2img_results,
#img2img_results,
.tabs > div
{
padding:0;
border:none;
}
div.sub-group {
padding: 4px 3px 0;
margin-top: -3px;
}
div.sub-group > div {
margin-bottom: 3px !important;
}
/* accordion */
.p-3 {
padding: 8px;
}
.dark .dark\:hover\:border-gray-600>div.cursor-pointer {
padding: 8px !important;
margin: -8px !important;
}
#img2img_settings_scroll,
#txt2img_settings_scroll {
padding-top: 0;
}
.dark .gr-block,
.gr-form,
#txt2img_seed,
#img2img_seed,
#txt2img_subseed,
#img2img_subseed,
#txt2img_seed_row > div,
#img2img_seed_row > div,
#txt2img_subseed_row > div,
#img2img_subseed_row > div {
min-width:90px;
}
#img2img_gallery, #txt2img_gallery {
margin-bottom: 0px;
}
div.svelte-10ogue4>:not(.absolute) {
margin-bottom: 3px;
}
#img2img_tools, #txt2img_tools {
gap: 2px;
}
.dark .dark\:hover\:border-gray-600>div.cursor-pointer+div {
margin-top: 4px !important;
}
}
/* Scroll mask fader*/
#img2img_settings::before,
#txt2img_settings::before {
pointer-events: none;
content: "";
position: absolute;
z-index: 1000;
height: calc(100vh - 288px);
top: 88px;
left: 0;
bottom: 0;
width: 100%;
background: linear-gradient(0deg, rgb(26 26 26), transparent 2%, transparent 98%, rgb(26 26 26) 100%);
}
/* Sliders Scrollbars */
::-webkit-scrollbar {
width: 10px;
}
#img2img_settings_scroll::-webkit-scrollbar,
#txt2img_settings_scroll::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
box-shadow: inset 0 0 10px 10px #1a1a1a;
}
::-webkit-scrollbar-thumb {
box-shadow: inset 0 0 10px 10px #292a2d;
}
::-webkit-scrollbar-button {
display: none;
}
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-track {
border-left: solid 6px #1a1a1a;
border-radius: 0;
}
#img2img_settings_scroll::-webkit-scrollbar-thumb,
#img2img_settings_scroll::-webkit-scrollbar-track,
#txt2img_settings_scroll::-webkit-scrollbar-thumb,
#txt2img_settings_scroll::-webkit-scrollbar-track {
border-left: solid 8px transparent;
}
@media screen and (-webkit-min-device-pixel-ratio:0) {
input[type=range] {
overflow: hidden;
width: 100%;
-webkit-appearance: none;
background-color: #202124;
border: 1px solid #494c50;
}
input[type=range]::-webkit-slider-runnable-track {
height: 14px;
-webkit-appearance: none;
color: #03d0a8;
margin-top: -1px;
}
input[type=range]::-webkit-slider-thumb {
width: 14px;
-webkit-appearance: none;
height: 14px;
cursor: ew-resize;
background: #03d0a8;
box-shadow: -1024px 0 0 1024px #03d0a8;
}
}
/* Firefox */
input[type=range]::-moz-range-progress {
background-color: #03d0a8;
height: 14px;
border: 1px solid #03d0a8;
}
input[type=range]::-moz-range-track {
background-color: #202124;
}
#txt2img_results,
#img2img_results,
#img2img_settings_scroll,
#txt2img_settings_scroll {
scrollbar-color: #292a2d #1a1a1a !important;
scrollbar-width: thin !important;
}
input[type=range]{
width: 100%;
}
input[type=range]::-moz-range-track {
width: 100%;
background: #202124;
border: none;
border-radius: 0px;
}
input[type=range]::-moz-range-thumb {
border: 1px solid #03d0a8;
width: 14px;
border-radius: 0%;
background: #03d0a8;
}
/*hide the outline behind the border*/
input[type=range]:-moz-focusring{
outline: 1px solid #03d0a8;
outline-offset: -1px;
}
input[type=range]:focus::-moz-range-track {
background: #202124;
}
input[type="number"] {
-moz-appearance: textfield;
}
input[type="number"]:hover,
input[type="number"]:focus {
-moz-appearance: initial;
}
/* IE maybe later */
input[type=range]::-ms-fill-lower {
background-color: #03d0a8;
}
input[type=range]::-ms-fill-upper {
background-color: #202124;
}