mirror of
https://github.com/anapnoe/stable-diffusion-webui-ux.git
synced 2026-09-11 16:48:44 +02:00
3151 lines
62 KiB
CSS
3151 lines
62 KiB
CSS
:host{--main-bg-color:hsl(0deg 0% 10%);--primary-color:hsl(168deg 97% 41%);--input-bg-color:hsl(225deg 6% 13%);--input-border-color:hsl(214deg 5% 30%);--panel-bg-color:hsl(225deg 5% 17%);--panel-border-color:hsl(214deg 5% 30%);--panel-border-radius:0px;--subgroup-bg-color:hsl(0deg 0% 10%);--subgroup-input-bg-color:hsl(225deg 6% 13%);--subgroup-input-border-color:hsl(214deg 5% 30%);--subpanel-bg-color:hsl(220deg 4% 14%);--subpanel-border-color:hsl(214deg 5% 30%);--subpanel-border-radius:8px;--textarea-focus-color:hsl(210deg 3% 36%);--input-focus-color:hsl(168deg 97% 41%);--outside-gap-size:8px;--inside-padding-size:8px;--tool-button-size:34px;--tool-button-radius:16px;--generate-button-height:70px;--cancel-color:hsl(0deg 84% 60%);--max-padding:max(var(--outside-gap-size),var(--inside-padding-size));--icon-color:hsl(168deg 97% 41%);--icon-hover-color:hsl(0deg 0% 10%);--icon-size:22px;--nav-bg-color:hsl(0deg 0% 4%);--nav-color:hsl(210deg 4% 80%);--nav-hover-color:hsl(0deg 0% 4%);--input-color:hsl(210deg 4% 80%);--label-color:hsl(210deg 4% 80%);--subgroup-input-color:hsl(0deg 0% 0%);--placeholder-color:hsl(214deg 5% 30%);--text-color:hsl(210deg 4% 80%);--mobile-outside-gap-size:2px;--mobile-inside-padding-size:2px;}/*BREAKPOINT_CSS_CONTENT*/
|
|
|
|
/*
|
|
Theme Name: DarkUX
|
|
Author: anapnoe
|
|
Author URI: https://github.com/anapnoe/stable-diffusion-webui
|
|
Version: 1.0
|
|
License: GNU General Public License
|
|
*/
|
|
:host{
|
|
--extra-networks-card-size: 1;
|
|
--extra-networks-card-real-size: calc(var(--extra-networks-card-size) * 14vh);
|
|
--extra-networks-visible-rows: 2;
|
|
--extra-networks-height: calc((var(--extra-networks-card-real-size) * var(--extra-networks-visible-rows)) + ( var(--inside-padding-size) * 2 ) );
|
|
--extra-networks-name-size: calc(var(--extra-networks-card-size) * 1em);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@media only screen and (max-width: 860px) {
|
|
:host{
|
|
--outside-gap-size: var(--mobile-outside-gap-size);
|
|
--inside-padding-size: var(--mobile-inside-padding-size);
|
|
}
|
|
}
|
|
|
|
body {
|
|
background-color: var(--main-bg-color) !important;
|
|
}
|
|
|
|
|
|
/* label color */
|
|
.dark .dark\:text-gray-200 {
|
|
color: var(--label-color);
|
|
}
|
|
|
|
/* checkbox radio */
|
|
.dark .text-gray-700 {
|
|
color: var(--input-color);
|
|
}
|
|
|
|
/* text color */
|
|
.dark .gr-box {
|
|
color: var(--text-color);
|
|
}
|
|
|
|
/* input color */
|
|
.dark .gr-input {
|
|
color: var(--input-color);
|
|
}
|
|
|
|
/* accordion label arrow */
|
|
.dark {
|
|
color: var(--input-color);
|
|
}
|
|
|
|
.dark .gr-button {
|
|
color: var(--input-color);
|
|
}
|
|
|
|
.dark .gr-button-primary {
|
|
color: var(--input-color);
|
|
}
|
|
|
|
.dark .gr-button-secondary {
|
|
color: var(--input-color);
|
|
}
|
|
|
|
.dark .gr-button:hover {
|
|
color: var(--main-bg-color);
|
|
}
|
|
|
|
.dark .gr-button-primary:hover {
|
|
color: var(--main-bg-color);
|
|
}
|
|
|
|
.dark .gr-button-secondary:hover {
|
|
color: var(--main-bg-color);
|
|
}
|
|
|
|
/* tabs */
|
|
.text-gray-400 {
|
|
color: var(--input-color);
|
|
}
|
|
.dark .hover\:text-gray-700:hover,
|
|
.text-gray-400:hover {
|
|
color: var(--text-color);
|
|
}
|
|
|
|
/*active color*/
|
|
.bg-white{
|
|
color: var(--input-color);
|
|
}
|
|
|
|
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
|
|
color: var(--placeholder-color) !important;
|
|
opacity: 1.0; /* Firefox */
|
|
}
|
|
|
|
:-ms-input-placeholder { /* Internet Explorer 10-11 */
|
|
color: var(--placeholder-color);
|
|
}
|
|
|
|
::-ms-input-placeholder { /* Microsoft Edge */
|
|
color: var(--placeholder-color);
|
|
}
|
|
|
|
/* fix overwrites */
|
|
.dark .dark\:text-white {
|
|
color: inherit;
|
|
}
|
|
|
|
/* icons */
|
|
|
|
[id^="refresh_"],
|
|
[id$="_refresh"],
|
|
[id$="_clear_prompt"],
|
|
[id$="2img_style_create"],
|
|
[id$="2img_style_apply"],
|
|
[id$="2img_extra_networks"],
|
|
[id$="paste"],
|
|
#img2img_actions_column [id$="interrogate"],
|
|
#img2img_actions_column [id$="deepbooru"],
|
|
[id^="open_folder"],
|
|
[id*="2img_random"],
|
|
[id*="2img_reuse"],
|
|
[id^="save_"],
|
|
[id^="save_zip_"],
|
|
[id="extras_tab"],
|
|
[id="img2img_tab"],
|
|
[id="inpaint_tab"],
|
|
[id="txt2img_tab"]
|
|
{
|
|
/*background-color: var(--panel-bg-color);*/
|
|
position: relative;
|
|
font-size: 0 !important;
|
|
}
|
|
|
|
|
|
|
|
[id$="_refresh"]::before,
|
|
[id^="refresh_"]::before,
|
|
[id$="_clear_prompt"]::before,
|
|
[id$="2img_style_create"]::before,
|
|
[id$="2img_style_apply"]::before,
|
|
[id$="2img_extra_networks"]::before,
|
|
[id$="paste"]::before,
|
|
#img2img_actions_column [id$="interrogate"]::before,
|
|
#img2img_actions_column [id$="deepbooru"]::before,
|
|
[id^="open_folder"]::before,
|
|
[id*="2img_random"]::before,
|
|
[id*="2img_reuse"]::before,
|
|
[id^="save_"]::before,
|
|
[id^="save_zip_"]::before,
|
|
[id="extras_tab"]::before,
|
|
[id="img2img_tab"]::before,
|
|
[id="inpaint_tab"]::before,
|
|
[id="txt2img_tab"]::before
|
|
{
|
|
content: ' ';
|
|
display: inline-block;
|
|
-webkit-mask-size: cover;
|
|
mask-size: cover;
|
|
background-color: var(--icon-color);
|
|
width: var(--icon-size);
|
|
height: var(--icon-size);
|
|
position: absolute;
|
|
}
|
|
|
|
[id*="2img_random"]::before,
|
|
[id*="2img_reuse"]::before
|
|
{
|
|
background-color: var(--primary-color);
|
|
}
|
|
[id$="_refresh"]:hover::before,
|
|
[id^="refresh_"]:hover::before,
|
|
[id$="_clear_prompt"]:hover::before,
|
|
[id$="2img_style_create"]:hover::before,
|
|
[id$="2img_style_apply"]:hover::before,
|
|
[id$="2img_extra_networks"]:hover::before,
|
|
[id$="paste"]:hover::before,
|
|
#img2img_actions_column [id$="interrogate"]:hover::before,
|
|
#img2img_actions_column [id$="deepbooru"]:hover::before,
|
|
[id^="open_folder"]:hover::before,
|
|
[id*="2img_random"]:hover::before,
|
|
[id*="2img_reuse"]:hover::before,
|
|
[id^="save_"]:hover::before,
|
|
[id^="save_zip_"]:hover::before,
|
|
[id="extras_tab"]:hover::before,
|
|
[id="img2img_tab"]:hover::before,
|
|
[id="inpaint_tab"]:hover::before,
|
|
[id="txt2img_tab"]:hover::before
|
|
{
|
|
background-color: var(--icon-hover-color);
|
|
}
|
|
|
|
[id$="_refresh"]::before,
|
|
[id^="refresh_"]::before
|
|
{
|
|
-webkit-mask: url(./file=html/svg/refresh-line.svg) no-repeat 50% 50%;
|
|
mask: url(./file=html/svg/refresh-line.svg) no-repeat 50% 50%;
|
|
}
|
|
|
|
[id$="_clear_prompt"]::before
|
|
{
|
|
-webkit-mask: url(./file=html/svg/delete-bin-5-line.svg) no-repeat 50% 50%;
|
|
mask: url(./file=html/svg/delete-bin-5-line.svg) no-repeat 50% 50%;
|
|
}
|
|
|
|
[id$="2img_style_create"]::before
|
|
{
|
|
-webkit-mask: url(./file=html/svg/save-3-line.svg) no-repeat 50% 50%;
|
|
mask: url(./file=html/svg/save-3-line.svg) no-repeat 50% 50%;
|
|
}
|
|
|
|
[id$="2img_style_apply"]::before
|
|
{
|
|
-webkit-mask: url(./file=html/svg/clipboard-line.svg) no-repeat 50% 50%;
|
|
mask: url(./file=html/svg/clipboard-line.svg) no-repeat 50% 50%;
|
|
}
|
|
|
|
[id$="paste"]::before
|
|
{
|
|
-webkit-mask: url(./file=html/svg/magic-line.svg) no-repeat 50% 50%;
|
|
mask: url(./file=html/svg/magic-line.svg) no-repeat 50% 50%;
|
|
}
|
|
|
|
[id$="2img_extra_networks"]::before
|
|
{
|
|
-webkit-mask: url(./file=html/svg/pantone-line.svg) no-repeat 50% 50%;
|
|
mask: url(./file=html/svg/pantone-line.svg) no-repeat 50% 50%;
|
|
}
|
|
|
|
#img2img_actions_column [id$="interrogate"]::before
|
|
{
|
|
-webkit-mask: url(./file=html/svg/question-answer-line.svg) no-repeat 50% 50%;
|
|
mask: url(./file=html/svg/question-answer-line.svg) no-repeat 50% 50%;
|
|
}
|
|
|
|
#img2img_actions_column [id$="deepbooru"]::before
|
|
{
|
|
-webkit-mask: url(./file=html/svg/question-answer-fill.svg) no-repeat 50% 50%;
|
|
mask: url(./file=html/svg/question-answer-fill.svg) no-repeat 50% 50%;
|
|
}
|
|
|
|
[id^="open_folder"]::before
|
|
{
|
|
-webkit-mask: url(./file=html/svg/folder-open-line.svg) no-repeat 50% 50%;
|
|
mask: url(./file=html/svg/folder-open-line.svg) no-repeat 50% 50%;
|
|
}
|
|
|
|
[id*="2img_random"]::before
|
|
{
|
|
-webkit-mask: url(./file=html/svg/dice-1.svg) no-repeat 50% 50%;
|
|
mask: url(./file=html/svg/dice-1.svg) no-repeat 50% 50%;
|
|
}
|
|
|
|
[id*="2img_reuse"]::before
|
|
{
|
|
-webkit-mask: url(./file=html/svg/recycle-line.svg) no-repeat 50% 50%;
|
|
mask: url(./file=html/svg/recycle-line.svg) no-repeat 50% 50%;
|
|
}
|
|
|
|
|
|
[id^="save_"]::before
|
|
{
|
|
-webkit-mask: url(./file=html/svg/save-2-line.svg) no-repeat 50% 50%;
|
|
mask: url(./file=html/svg/save-2-line.svg) no-repeat 50% 50%;
|
|
}
|
|
|
|
[id^="save_zip_"]::before
|
|
{
|
|
-webkit-mask: url(./file=html/svg/file-zip-line.svg) no-repeat 50% 50%;
|
|
mask: url(./file=html/svg/file-zip-line.svg) no-repeat 50% 50%;
|
|
}
|
|
|
|
[id="extras_tab"]::before
|
|
{
|
|
-webkit-mask: url(./file=html/svg/picture-in-picture-exit-line.svg) no-repeat 50% 50%;
|
|
mask: url(./file=html/svg/picture-in-picture-exit-line.svg) no-repeat 50% 50%;
|
|
}
|
|
|
|
[id="img2img_tab"]::before
|
|
{
|
|
-webkit-mask: url(./file=html/svg/landscape-line.svg) no-repeat 50% 50%;
|
|
mask: url(./file=html/svg/landscape-line.svg) no-repeat 50% 50%;
|
|
}
|
|
|
|
[id="inpaint_tab"]::before
|
|
{
|
|
-webkit-mask: url(./file=html/svg/paint-brush-line.svg) no-repeat 50% 50%;
|
|
mask: url(./file=html/svg/paint-brush-line.svg) no-repeat 50% 50%;
|
|
}
|
|
|
|
[id="txt2img_tab"]::before
|
|
{
|
|
-webkit-mask: url(./file=html/svg/t-box-fill.svg) no-repeat 50% 50%;
|
|
mask: url(./file=html/svg/t-box-fill.svg) no-repeat 50% 50%;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.livePreview > img,
|
|
#img2img_gallery .overflow-y-auto,
|
|
#txt2img_gallery .overflow-y-auto
|
|
{
|
|
background-color: var(--main-bg-color);
|
|
}
|
|
.gallery-item
|
|
{
|
|
background-color: var(--main-bg-color) !important;
|
|
}
|
|
|
|
|
|
.container {
|
|
max-width: 100%;
|
|
}
|
|
|
|
/* useless padding and margin img2img accordion*/
|
|
.my-4 {
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.gap-3 {
|
|
gap: 0;
|
|
}
|
|
|
|
|
|
#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-bottom: var(--outside-gap-size);
|
|
}
|
|
|
|
|
|
.row>*,
|
|
.row>.gr-form>* {
|
|
min-width: min(70px, 100%);
|
|
flex: 1 1 0%;
|
|
}
|
|
|
|
.performance {
|
|
font-size: .85em;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.performance p {
|
|
display: inline-block;
|
|
}
|
|
|
|
.performance .time {
|
|
margin-right: 0;
|
|
}
|
|
|
|
|
|
#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;
|
|
}
|
|
|
|
|
|
|
|
.gr-compact {
|
|
border: 0;
|
|
}
|
|
|
|
.dark .bg-white,
|
|
.dark .dark\:border-gray-700,
|
|
.p-2,
|
|
.tabitem {
|
|
background-color: var(--main-bg-color) !important;
|
|
}
|
|
|
|
|
|
.tabs .border-b-2{
|
|
border-color: var(--input-bg-color);
|
|
}
|
|
|
|
.tabs>div>button {
|
|
border-bottom: none;/*2px solid var(--input-bg-color);*/
|
|
padding: var(--outside-gap-size);
|
|
padding-top: 0;
|
|
}
|
|
|
|
.tabs>div>.bg-white {
|
|
border: 2px solid var(--main-bg-color);
|
|
border-bottom: 2px solid var(--primary-color);
|
|
|
|
}
|
|
#tabs > div:first-child > button.bg-white {
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
/* offcanvas menu */
|
|
#tabs > div:first-child {
|
|
position: fixed;
|
|
z-index: 9999;
|
|
display: block;
|
|
width: 90%;
|
|
height: 100%;
|
|
background-color: var(--nav-bg-color) !important;
|
|
top: 0;
|
|
padding-top: 70px;
|
|
left:0;
|
|
max-width: 320px;
|
|
transform: translateX(-100%);
|
|
transition: all 0.25s ease 0s;
|
|
box-shadow: rgba(0,0,0,0)-30px 0 30px 30px;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
|
|
}
|
|
|
|
#tabs > div:first-child.open {
|
|
transform: translateX(0);
|
|
box-shadow: rgba(0,0,0,0.4)-30px 0 30px 30px;
|
|
}
|
|
|
|
|
|
#tabs > div:first-child > button {
|
|
display: block;
|
|
width: 320px;
|
|
text-align: left;
|
|
background-color: transparent !important;
|
|
border-top: 2px !important;
|
|
border-bottom: 2px !important;
|
|
border-left: 0;
|
|
border-right: 0;
|
|
border-radius: 0 !important;
|
|
padding: 0px;
|
|
padding-left: 20px;
|
|
min-height: 37px;
|
|
color: var(--nav-color);
|
|
}
|
|
|
|
|
|
#tabs > div:first-child > button:hover{
|
|
|
|
background-color: var(--primary-color) !important;
|
|
color: var(--main-bg-color) !important;
|
|
|
|
}
|
|
|
|
#tabs > #nav_menu {
|
|
z-index: 9999;
|
|
background-color: var(--input-bg-color);
|
|
position: absolute;
|
|
width: 38px;
|
|
height: 38px;
|
|
top: -2px;
|
|
left: 0;
|
|
border-radius: 100%;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#tabs > #nav_menu.fixed {
|
|
position: fixed;
|
|
top:22px;
|
|
left:16px;
|
|
}
|
|
|
|
#tabs > #nav_menu::before {
|
|
content: ' ';
|
|
display: inline-block;
|
|
-webkit-mask-size: cover;
|
|
mask-size: cover;
|
|
background-color: var(--icon-color);
|
|
width: var(--icon-size);
|
|
height: var(--icon-size);
|
|
-webkit-mask: url(./file=html/svg/menu-line.svg) no-repeat 50% 50%;
|
|
mask: url(./file=html/svg/menu-line.svg) no-repeat 50% 50%;
|
|
cursor: pointer;
|
|
position: relative;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%) scale(1.0);
|
|
|
|
}
|
|
|
|
#tabs > #nav_menu:hover {
|
|
background-color: var(--primary-color);
|
|
}
|
|
#tabs > #nav_menu:hover::before {
|
|
background-color: var(--main-bg-color);
|
|
}
|
|
|
|
/* offcanvas quicksettings menu */
|
|
|
|
#quicksettings_overflow {
|
|
position: fixed;
|
|
z-index: 9999;
|
|
display: block;
|
|
width: 90%;
|
|
background-color: var(--main-bg-color) !important;
|
|
top: 70px;
|
|
bottom: 0px;
|
|
padding: 16px;
|
|
padding-top: 0px;
|
|
right: 0;
|
|
max-width: 480px;
|
|
transform: translateX(100%);
|
|
transition: all 0.25s ease 0s;
|
|
box-shadow: rgba(0,0,0,0) -30px 0 30px -30px;
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
#quicksettings_overflow.open {
|
|
transform: translateX(0);
|
|
box-shadow: rgba(0,0,0,0.4) -30px 0 30px -30px;
|
|
}
|
|
|
|
#quicksettings_overflow > div {
|
|
margin-bottom: var(--outside-gap-size);
|
|
}
|
|
#quicksettings_overflow > div button{
|
|
height:auto;
|
|
}
|
|
|
|
#quicksettings {
|
|
align-items: center;
|
|
flex-direction: row;
|
|
width: auto;
|
|
align-self: end;
|
|
background: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
#quick_row_sd_model_checkpoint {
|
|
margin-right:50px;
|
|
margin-left:50px;
|
|
position:relative;
|
|
z-index:9999;
|
|
|
|
}
|
|
|
|
#quick_row_sd_model_checkpoint div {
|
|
border: 0;
|
|
background: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
#quick_row_sd_model_checkpoint span {
|
|
display:none;
|
|
}
|
|
|
|
#quick_row_sd_model_checkpoint .gr-input {
|
|
padding-right: 37px;
|
|
min-height: 34px;
|
|
}
|
|
|
|
#quick_menu {
|
|
z-index: 9999;
|
|
background-color: var(--input-bg-color);
|
|
position: absolute;
|
|
width: 38px;
|
|
height: 38px;
|
|
top: -2px;
|
|
right: 0;
|
|
border-radius: 100%;
|
|
cursor: pointer;
|
|
}
|
|
|
|
#quick_menu.fixed {
|
|
position: fixed;
|
|
top:22px;
|
|
right:16px;
|
|
}
|
|
|
|
#quick_menu::before {
|
|
content: ' ';
|
|
display: inline-block;
|
|
-webkit-mask-size: cover;
|
|
mask-size: cover;
|
|
background-color: var(--icon-color);
|
|
width: var(--icon-size);
|
|
height: var(--icon-size);
|
|
-webkit-mask: url(./file=html/svg/more-2-fill.svg) no-repeat 50% 50%;
|
|
mask: url(./file=html/svg/menu-line.svg) no-repeat 50% 50%;
|
|
cursor: pointer;
|
|
position: relative;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%) scale(1.0);
|
|
|
|
}
|
|
|
|
#quick_menu:hover {
|
|
background-color: var(--primary-color);
|
|
}
|
|
#quick_menu:hover::before {
|
|
background-color: var(--main-bg-color);
|
|
}
|
|
|
|
|
|
|
|
/* footer to bottom of page */
|
|
.min-h-screen > .mx-auto.container{
|
|
display:flex;
|
|
flex-direction:column;
|
|
min-height: 100vh;
|
|
margin:0;
|
|
min-width: 300px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.min-h-screen > .mx-auto.container > div{
|
|
|
|
}
|
|
|
|
.min-h-screen > .mx-auto.container > div > #tabs{
|
|
flex:1;
|
|
}
|
|
|
|
.min-h-screen > .mx-auto.container > div > #footer{
|
|
min-height:32px;
|
|
}
|
|
|
|
.min-h-screen > .mx-auto.container > div > #quicksettings{
|
|
min-height:34px;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* what is this find out */
|
|
#settings_json{
|
|
display:none !important;
|
|
}
|
|
|
|
|
|
|
|
/* form seperator */
|
|
.dark .dark\:bg-gray-700 {
|
|
background-color: var(--panel-border-color) !important;
|
|
}
|
|
|
|
|
|
.dark .gr-box {
|
|
height: auto !important;
|
|
}
|
|
|
|
|
|
|
|
|
|
#tab_ti textarea{
|
|
align-self: flex-end !important;
|
|
}
|
|
|
|
/*
|
|
.gr-compact {
|
|
border: 0;
|
|
overflow: visible;
|
|
}
|
|
*/
|
|
|
|
.gr-button {
|
|
border-color: var(--panel-border-color);
|
|
background-color: var(--input-bg-color);
|
|
--tw-gradient-from: unset;
|
|
}
|
|
|
|
.gr-button:hover {
|
|
border-color: var(--panel-border-color);
|
|
background-color: var(--primary-color) !important;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#img2img_checkboxes,
|
|
#txt2img_checkboxes {
|
|
margin-bottom: .5em;
|
|
margin-left: 0;
|
|
}
|
|
|
|
#img2img_checkboxes>div,
|
|
#txt2img_checkboxes>div {
|
|
flex: 0;
|
|
white-space: nowrap;
|
|
min-width: auto;
|
|
}
|
|
|
|
div.svelte-10ogue4>:not(.absolute) {
|
|
margin-bottom: var(--outside-gap-size);
|
|
}
|
|
|
|
[id$="2img_settings_scroll"] div.svelte-10ogue4>*:first-child{
|
|
border-radius: var(--panel-border-radius) !important;
|
|
}
|
|
|
|
[id$="2img_settings_scroll"] div.svelte-10ogue4>*:last-child {
|
|
border-radius: var(--panel-border-radius) !important;
|
|
}
|
|
|
|
#script_list{
|
|
border-radius: var(--panel-border-radius) !important;
|
|
border-top: 1px solid var(--panel-border-color) !important;
|
|
}
|
|
|
|
/*
|
|
div.svelte-10ogue4>*:first-child{
|
|
border-radius: var(--panel-border-radius) !important;
|
|
}
|
|
|
|
div.svelte-10ogue4>*:last-child {
|
|
border-radius: var(--panel-border-radius) !important;
|
|
}
|
|
*/
|
|
|
|
div.svelte-10ogue4>*+:not(.absolute) {
|
|
border-top-width: 1px !important;
|
|
}
|
|
|
|
div.svelte-10ogue4 #script-list {
|
|
border-top-width: 1px !important;
|
|
}
|
|
|
|
|
|
.gap-4 {
|
|
gap: var(--outside-gap-size);
|
|
}
|
|
|
|
/*
|
|
.gr-padded{
|
|
margin-bottom: var(--outside-gap-size);
|
|
}
|
|
*/
|
|
|
|
|
|
.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 .gr-input {
|
|
margin-top: 0;
|
|
border-radius: 0;
|
|
padding: 6px;
|
|
}
|
|
|
|
.dark .gr-input-label {
|
|
--tw-gradient-from: unset;
|
|
background-color: var(--input-bg-color);
|
|
max-height: 34px;
|
|
}
|
|
.gr-input-label,
|
|
label.bg-white {
|
|
padding-top: 2px;
|
|
}
|
|
|
|
.gr-input-label div:first-child {
|
|
position: relative;
|
|
top: 3px;
|
|
}
|
|
.gr-text-input {
|
|
height: 32px !important;
|
|
}
|
|
|
|
.dark .gr-check-radio {
|
|
border-color: var(--panel-border-color);
|
|
background-color: var(--panel-bg-color);
|
|
}
|
|
.dark .gr-check-radio:checked {
|
|
background-color: var(--primary-color);
|
|
}
|
|
.dark .gr-check-radio {
|
|
margin-top: 2px;
|
|
}
|
|
.dark .gr-check-radio {
|
|
position: relative;
|
|
top: 3px;
|
|
}
|
|
|
|
.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;
|
|
top: 0;
|
|
border: 0;
|
|
position: relative;
|
|
padding: 5px 1px;
|
|
}
|
|
|
|
input[type=range] {
|
|
margin: .7em 0 0;
|
|
}
|
|
|
|
.gr-input-label,
|
|
label.bg-white {
|
|
padding-top: 2px;
|
|
}
|
|
|
|
.gr-input-label div:first-child {
|
|
position: relative;
|
|
top: 3px;
|
|
}
|
|
|
|
.gr-box>div>div>label {
|
|
width: calc(100% - 64px) !important;
|
|
}
|
|
|
|
.gr-box>div>div>input.gr-text-input {
|
|
position: absolute;
|
|
right: calc(var(--inside-padding-size) + 1px);
|
|
top: calc(var(--inside-padding-size) + 1px);
|
|
z-index: 200;
|
|
border-radius: 0;
|
|
width: 64px;
|
|
margin: 0;
|
|
text-align: left;
|
|
padding: 5px 2px 5px 5px;
|
|
height: 25px !important;
|
|
}
|
|
|
|
.gr-padded {
|
|
padding: var(--inside-padding-size);
|
|
}
|
|
|
|
/* label margin */
|
|
|
|
.gr-block.gr-box span.text-gray-500,
|
|
fieldset span.text-gray-500,
|
|
label.block span {
|
|
margin: 0 var(--inside-padding-size) 0 2px;
|
|
}
|
|
|
|
/***********************/
|
|
/* Panels */
|
|
/***********************/
|
|
|
|
/* outmost panel */
|
|
.gr-panel {
|
|
padding: var(--outside-gap-size);
|
|
border-radius: var(--panel-border-radius);
|
|
}
|
|
|
|
.dark .dark\:bg-gray-950 {
|
|
background-color: var(--main-bg-color);
|
|
}
|
|
|
|
.dark .gr-panel {
|
|
background-color: var(--input-bg-color);
|
|
}
|
|
|
|
.dark .gr-box {
|
|
background-color: var(--panel-bg-color);
|
|
}
|
|
|
|
.dark .gr-box:not(.border-dashed){
|
|
border-radius: var(--panel-border-radius);
|
|
}
|
|
|
|
|
|
[id*="_sub-group"] .gr-box:not(.border-dashed)
|
|
{
|
|
border-radius: var(--subpanel-border-radius);
|
|
}
|
|
|
|
.dark .gr-input,
|
|
.dark .gr-button,
|
|
.dark input {
|
|
background-color: var(--input-bg-color);
|
|
border-color: var(--input-border-color);
|
|
border-radius: var(--panel-border-radius);
|
|
--tw-gradient-from: none;
|
|
}
|
|
|
|
/***********************/
|
|
/* Tool buttons */
|
|
/***********************/
|
|
|
|
.gr-button {
|
|
border-radius: 0;
|
|
}
|
|
|
|
.gr-button-tool,
|
|
.gr-button-tool-top {
|
|
max-width: var(--tool-button-size);
|
|
min-width: var(--tool-button-size) !important;
|
|
height: var(--tool-button-size);
|
|
padding: var(--inside-padding-size);
|
|
border-radius: var(--tool-button-radius);
|
|
}
|
|
|
|
|
|
#textual_inversion_wiki{
|
|
position:absolute;
|
|
transform: translateX(-50%) rotate(-90deg);
|
|
}
|
|
|
|
[id$="2img_res_switch_btn"]
|
|
{
|
|
height: auto;
|
|
}
|
|
|
|
/*************/
|
|
/* Borders */
|
|
/*************/
|
|
.border,
|
|
.gr-input,
|
|
.gr-button,
|
|
input
|
|
{
|
|
border-radius: var(--panel-border-radius) !important;
|
|
}
|
|
|
|
.border {
|
|
border-color: var(--panel-border-color) !important;
|
|
}
|
|
/***********************/
|
|
/* Accordion */
|
|
/***********************/
|
|
|
|
|
|
.dark .dark\:hover\:border-gray-600:hover {
|
|
border: 1px solid var(--primary-color)!important;
|
|
background-color: var(--primary-color)!important;
|
|
border-radius: var(--panel-border-radius);
|
|
}
|
|
|
|
.dark .dark\:hover\:border-gray-600>div.cursor-pointer {
|
|
padding: calc( var(--max-padding) + 2px) !important;
|
|
padding-top: var(--max-padding) !important;
|
|
padding-bottom: var(--max-padding) !important;
|
|
width: auto !important;
|
|
}
|
|
|
|
.dark .dark\:hover\:border-gray-600>div.cursor-pointer+div {
|
|
background-color: var(--main-bg-color)!important;
|
|
border-bottom-left-radius: var(--panel-border-radius);
|
|
border-bottom-right-radius: var(--panel-border-radius);
|
|
padding: max(var(--outside-gap-size), var(--inside-padding-size));
|
|
}
|
|
|
|
.dark .dark\:hover\:border-gray-600:hover>div.cursor-pointer {
|
|
color: var(--main-bg-color) !important;
|
|
font-weight: 700 !important;
|
|
}
|
|
|
|
|
|
|
|
.p-3.border
|
|
{
|
|
border-radius: var(--panel-border-radius) !important;
|
|
padding:0;
|
|
}
|
|
/*
|
|
[id$=_prompt_image] + div {
|
|
flex-direction: row-reverse;
|
|
}
|
|
*/
|
|
|
|
/***********************/
|
|
/* Equal flexbox width */
|
|
/***********************/
|
|
|
|
.flex.row>div:not([id$="2img_results"]) {
|
|
flex-grow: 1;
|
|
flex-shrink: 1;
|
|
flex-basis: 10%;
|
|
}
|
|
|
|
/***********************/
|
|
/* Row Margins */
|
|
/***********************/
|
|
|
|
/*gr-block gr-box relative w-full border-solid border border-gray-200 gr-padded*/
|
|
/*
|
|
.gr-block.gr-box.relative div:not(:only-child){
|
|
margin: 0;
|
|
padding:0;
|
|
border:none;
|
|
}
|
|
*/
|
|
/*
|
|
.gr-block.gr-box.relative > .flex.row.gap-4 {
|
|
margin-top: var(--inside-padding-size);
|
|
}
|
|
*/
|
|
|
|
/***********/
|
|
/* Inpaint */
|
|
/***********/
|
|
|
|
#inpaint_controls > div:last-child
|
|
{
|
|
margin-bottom:0;
|
|
}
|
|
|
|
#inpaint_controls > div:first-child
|
|
{
|
|
margin-top: var(--inside-padding-size);
|
|
}
|
|
|
|
/* tab border frame */
|
|
.dark .border-gray-200 {
|
|
border-color: transparent;
|
|
}
|
|
|
|
/************************/
|
|
/* Seed Subseed Buttons */
|
|
/************************/
|
|
|
|
|
|
[id*="2img_seed_row"] button,
|
|
[id*="2img_subseed_row"] button
|
|
{
|
|
border-radius: 0;
|
|
display: flex;
|
|
align-self: self-end !important;
|
|
height: 34px;
|
|
width: 34px !important;
|
|
min-width: 34px;
|
|
max-width: unset;
|
|
flex-grow: 0;
|
|
}
|
|
/*
|
|
button
|
|
{
|
|
align-self: self-end !important;
|
|
}
|
|
*/
|
|
|
|
/*
|
|
dark .gr-button-secondary {
|
|
background-color: var(--input-bg-color);
|
|
border: 1px solid var(--panel-border-color);
|
|
|
|
}
|
|
|
|
dark .gr-button-secondary:hover {
|
|
background-color: var(--primary-color);
|
|
|
|
}
|
|
*/
|
|
|
|
/**********************/
|
|
/* SubGroup - Scripts */
|
|
/**********************/
|
|
|
|
|
|
/*[id$="2img_settings_scroll"] > div:last-child > div:not(:first-child).svelte-10ogue4,*/
|
|
#script_list ~ div,
|
|
[id*="_sub-group"]
|
|
{
|
|
padding: var(--outside-gap-size) var(--outside-gap-size) 0;
|
|
margin-top: calc(var(--outside-gap-size) * -1.0);
|
|
background-color: var(--subgroup-bg-color);
|
|
border: 1px solid var(--subpanel-border-color);
|
|
border-top: 0 !important;
|
|
border-radius: var(--panel-border-radius) !important;
|
|
}
|
|
|
|
#script_list{
|
|
border-bottom-right-radius: 0!important;
|
|
border-bottom-left-radius: 0!important;
|
|
}
|
|
|
|
#script_list ~ div{
|
|
border-top-right-radius: 0!important;
|
|
border-top-left-radius: 0!important;
|
|
}
|
|
|
|
#script_list ~ div .gr-box,
|
|
#script_list ~ div .gr-form,
|
|
[id*="_sub-group"] .gr-box,
|
|
[id*="_sub-group"] .gr-form
|
|
{
|
|
background-color: var(--subpanel-bg-color);
|
|
border-color: var(--subpanel-border-color) !important;
|
|
border-radius: var(--subpanel-border-radius) !important;
|
|
}
|
|
|
|
#script_list ~ div .gr-input,
|
|
#script_list ~ div .gr-button,
|
|
#script_list ~ div input,
|
|
[id*="_sub-group"] .gr-input,
|
|
[id*="_sub-group"] .gr-button,
|
|
[id*="_sub-group"] input
|
|
{
|
|
background-color: var(--subgroup-input-bg-color) !important;
|
|
border-color: var(--subgroup-input-border-color) !important;
|
|
border-radius: var(--subpanel-border-radius) !important;
|
|
|
|
}
|
|
|
|
#script_list ~ div .gr-button,
|
|
[id*="_sub-group"] .gr-button:hover{
|
|
background-color: var(--primary-color) !important;
|
|
}
|
|
|
|
#script_list ~ div .bg-gray-200,
|
|
[id*="_sub-group"] .bg-gray-200
|
|
{
|
|
background-color: var(--subpanel-border-color) !important;
|
|
}
|
|
|
|
|
|
|
|
[id*="_sub-group"] .output-html
|
|
{
|
|
padding: var(--outside-gap-size) var(--outside-gap-size) 0 !important;
|
|
}
|
|
|
|
[id*="_sub-group"] .output-html span.resolution:first-child{
|
|
color: var(--cancel-color);
|
|
}
|
|
|
|
[id*="_sub-group"] .output-html span.resolution:last-child{
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
|
|
|
|
[id$="-collapse"],
|
|
[id$="-collapse-one"] > div
|
|
{
|
|
border:0!important;
|
|
margin:0!important;
|
|
padding:0!important;
|
|
border-radius:0!important;
|
|
background-color:transparent!important;
|
|
overflow: visible !important;
|
|
}
|
|
|
|
|
|
/*[id$="-collapse-all"] div:not([class*="input"]):not(span):not(label):not([class*="gr-box"])*/
|
|
[id$="-collapse-all"] div:not([class*="input"])
|
|
{
|
|
border:none !important;
|
|
margin:0!important;
|
|
padding:0!important;
|
|
border-radius:0!important;
|
|
background-color:transparent!important;
|
|
|
|
}
|
|
|
|
[id$="-collapse-all"] button
|
|
{
|
|
align-self: flex-end;
|
|
}
|
|
|
|
|
|
|
|
/* word wrap for pre elements */
|
|
|
|
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+ */
|
|
}
|
|
|
|
|
|
|
|
/*********/
|
|
/* Focus */
|
|
/*********/
|
|
|
|
textarea:focus
|
|
{
|
|
border-color: var(--textarea-focus-color) !important;
|
|
}
|
|
|
|
.gr-input:focus
|
|
{
|
|
border-color: var(--input-focus-color) !important;
|
|
}
|
|
|
|
|
|
/***************************/
|
|
/* Quicksettings */
|
|
/***************************/
|
|
|
|
|
|
|
|
|
|
|
|
/***************************/
|
|
/* Generate Interrupt Skip */
|
|
/***************************/
|
|
|
|
[id$="_generate"],
|
|
[id$="2img_settings"] > button:first-child
|
|
{
|
|
min-height: var(--generate-button-height);
|
|
}
|
|
|
|
[id$="_interrupt"],
|
|
[id$="_skip"]
|
|
{
|
|
background-color: var(--input-bg-color);
|
|
position: absolute;
|
|
width: 50%;
|
|
height: 100%;
|
|
display: none;
|
|
}
|
|
|
|
[id$="_interrupt"]:hover,
|
|
[id$="_skip"]:hover
|
|
{
|
|
background-color: var(--cancel-color) !important;
|
|
}
|
|
|
|
[id$="2img_generate_box"]
|
|
{
|
|
position: relative;
|
|
}
|
|
|
|
[id$="_interrupt"]
|
|
{
|
|
left: 0;
|
|
border-radius: .5rem 0 0 .5rem;
|
|
}
|
|
|
|
[id$="_skip"]
|
|
{
|
|
right: 0;
|
|
border-radius: 0 .5rem .5rem 0;
|
|
}
|
|
|
|
/* fixed position circle next version
|
|
[id$="2img_generate"]
|
|
{
|
|
min-width: min(70px, 100%);
|
|
flex-grow: 1;
|
|
position: fixed;
|
|
top: 16px;
|
|
z-index: 999;
|
|
width: 20px;
|
|
right: 16px;
|
|
border-radius: 100% !important;
|
|
}
|
|
*/
|
|
|
|
/***************************/
|
|
/* Context Menu */
|
|
/***************************/
|
|
|
|
#context-menu {
|
|
z-index: 99999;
|
|
position: absolute;
|
|
display: block;
|
|
padding: 0;
|
|
border: 1px solid var(--primary-color);
|
|
border-radius: 0;
|
|
box-shadow: none;
|
|
width: 200px;
|
|
background-color: var(--nav-bg-color) !important;
|
|
}
|
|
|
|
.context-menu-items a:hover {
|
|
color: var(--nav-bg-color);
|
|
background-color: var(--primary-color);
|
|
}
|
|
|
|
.context-menu-items {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.context-menu-items a {
|
|
display: block;
|
|
padding: 5px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
|
|
|
|
|
|
/************************/
|
|
/* Settings Scroll View */
|
|
/************************/
|
|
|
|
[id$="2img_settings"]
|
|
{
|
|
min-width: min(490px, 100%) !important;
|
|
flex: 1 1 0%;
|
|
}
|
|
|
|
[id$="2img_settings_scroll"]
|
|
{
|
|
/* need to calculate this */
|
|
height: calc(100vh - 244px);
|
|
overflow-y: auto !important;
|
|
overflow-x: hidden;
|
|
padding-top: var(--outside-gap-size);
|
|
}
|
|
|
|
[id*="2img_copy_to_"]
|
|
{
|
|
background-color: var(--main-bg-color);
|
|
border:0;
|
|
}
|
|
|
|
|
|
[id*="2img_copy_to_"] button
|
|
{
|
|
/*min-width: fit-content;*/
|
|
border: 1px solid var(--panel-border-color) !important;
|
|
}
|
|
|
|
[id*=img2img_label_copy_to_] {
|
|
font-size: 1em;
|
|
font-weight: 700;
|
|
text-align: left;
|
|
flex-grow: 0 !important;
|
|
margin: auto;
|
|
align-self: center;
|
|
}
|
|
|
|
|
|
#img2img_inpaint_upload_tab > div{
|
|
flex-direction:row;
|
|
}
|
|
|
|
#mode_img2img > div{
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
[id*=inpaint_controls] > div:first-child {
|
|
margin-top: var(--outside-gap-size);
|
|
}
|
|
|
|
[id*=inpaint_controls] > div:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
|
|
|
|
div[data-testid="image"]{
|
|
position: relative;
|
|
max-height: 50vh;
|
|
height:auto;
|
|
background-color: var(--main-bg-color);
|
|
}
|
|
|
|
div[data-testid="image"] > div
|
|
{
|
|
position: relative;
|
|
max-height: 50vh;
|
|
height:auto;
|
|
background-color: var(--main-bg-color);
|
|
}
|
|
|
|
div[data-testid="image"] img
|
|
{
|
|
max-height: 50vh;
|
|
position: relative !important;
|
|
background-color: var(--main-bg-color);
|
|
}
|
|
|
|
div[data-testid="image"] .touch-none {
|
|
width: 100% !important;
|
|
height: auto !important;
|
|
position: absolute !important;
|
|
top: unset !important;
|
|
left: unset !important;
|
|
}
|
|
|
|
canvas {
|
|
object-fit: contain !important;
|
|
max-height: 50vh !important;
|
|
width: 100% !important;
|
|
height: auto !important;
|
|
position: absolute !important;
|
|
top: 0 !important;
|
|
left: 0 !important;
|
|
}
|
|
|
|
|
|
#dim_controls > div:last-child{
|
|
margin-bottom:0;
|
|
}
|
|
#dim_controls > div:first-child{
|
|
margin-top:var(--outside-gap-size);
|
|
}
|
|
|
|
.cropper-view-box > img {
|
|
display: none;
|
|
}
|
|
|
|
|
|
|
|
|
|
div[data-testid="image"] input[type=range]
|
|
{
|
|
min-width:100px;
|
|
}
|
|
|
|
[id$="_image"] {
|
|
border-radius: 0 !important;
|
|
}
|
|
|
|
|
|
|
|
.gr-compact>*, .gr-compact .gr-box {
|
|
border-radius: var(--panel-border-radius) !important;
|
|
}
|
|
|
|
.dark .gr-compact {
|
|
border-radius: 0 !important;
|
|
}
|
|
|
|
/* small tool buttons */
|
|
.dark .dark\:bg-gray-900 {
|
|
background-color: var(--input-bg-color);
|
|
color: var(--icon-color);
|
|
}
|
|
|
|
.dark .dark\:bg-gray-900:hover {
|
|
background-color: var(--primary-color);
|
|
color: var(--icon-hover-color);
|
|
}
|
|
|
|
.dark .dark\:ring-gray-600 {
|
|
border:none !important;
|
|
}
|
|
/*
|
|
.gr-compact .gr-box {
|
|
border: 1px solid #ff0000 !important;
|
|
}
|
|
*/
|
|
|
|
|
|
/*div[title^="custom-marker-wqs-tailrace"][title$="bbu-l2"]*/
|
|
|
|
.border-dashed{
|
|
border-radius:0 !important;
|
|
}
|
|
|
|
|
|
/*inpaint_controls_sub-group-collapse*/
|
|
|
|
#tabs > div {
|
|
padding-left:0;
|
|
padding-right:0;
|
|
}
|
|
|
|
|
|
canvas[key=mask] {
|
|
z-index: 12 !important;
|
|
filter: invert();
|
|
mix-blend-mode: multiply;
|
|
pointer-events: none;
|
|
}
|
|
|
|
/************************/
|
|
/* Scroll fader overlay */
|
|
/************************/
|
|
|
|
[id$="2img_settings"]::before
|
|
{
|
|
pointer-events: none;
|
|
content: "";
|
|
position: absolute;
|
|
z-index: 1;
|
|
height: calc(100vh - 235px);
|
|
top: calc(var(--generate-button-height) + (var(--outside-gap-size) * 2.0));
|
|
left: 0;
|
|
bottom: 0;
|
|
width: 100%;
|
|
background: linear-gradient(0deg, var(--main-bg-color), transparent 2%, transparent 98%, var(--main-bg-color) 100%);
|
|
}
|
|
|
|
/***********/
|
|
/* PngInfo */
|
|
/***********/
|
|
|
|
[id$="png_2img_settings"]::before
|
|
{
|
|
display:none;
|
|
}
|
|
[id$="png_2img_settings_scroll"]
|
|
{
|
|
padding:0;
|
|
height: calc(100vh - 170px);
|
|
}
|
|
|
|
[id$="png_2img_settings_scroll"] div[data-testid="image"] img {
|
|
max-height: unset;;
|
|
}
|
|
|
|
#pnginfo_image div[data-testid="image"] > div{
|
|
max-height: calc(100vh - 175px) !important;
|
|
height: 100%;
|
|
}
|
|
#pnginfo_image{
|
|
height: 100% !important;
|
|
}
|
|
|
|
#pnginfo_image div[data-testid="image"] {
|
|
max-height: unset;
|
|
height: 100%;
|
|
}
|
|
[id$="png_2img_results"] > div:nth-child(3) {
|
|
display:none;
|
|
}
|
|
|
|
[id$="train_tabs_2img_settings"]::before {
|
|
|
|
display:none;
|
|
}
|
|
|
|
[id$="train_tabs_2img_settings"] .tabitem {
|
|
background-color:var(--input-bg-color) !important;
|
|
border-radius: var(--panel-border-radius) !important;
|
|
}
|
|
|
|
|
|
[id$="train_tabs_2img_settings"] > div:first-child {
|
|
margin-bottom: var(--outside-gap-size);
|
|
}
|
|
|
|
[id$="train_tabs_2img_settings"] [id$="_2img_settings_scroll"] {
|
|
padding-top: 0 !important;
|
|
}
|
|
|
|
.p-2 {
|
|
padding: var(--outside-gap-size);
|
|
}
|
|
|
|
[id$="2img_extra_tabs"] ~ * {
|
|
display:none;
|
|
}
|
|
|
|
[id$="train_tabs_2img_settings"] > div:first-child {
|
|
margin-bottom: var(--outside-gap-size);
|
|
}
|
|
|
|
[id$="settings_2img_settings"] {
|
|
max-height: calc(100vh - 245px);
|
|
overflow-y: auto;
|
|
}
|
|
|
|
[id$="settings_2img_settings"]::before
|
|
{
|
|
display:none;
|
|
}
|
|
|
|
[id$="settings_2img_settings"] button {
|
|
height:auto;
|
|
}
|
|
#settings>div {
|
|
padding-top:0;
|
|
}
|
|
/****************/
|
|
/* Results View */
|
|
/****************/
|
|
|
|
[id$="2img_results"]
|
|
{
|
|
overflow-x: hidden !important;
|
|
max-height: calc(100vh - 151px);
|
|
overflow-y: auto !important;
|
|
height: 100%;
|
|
}
|
|
/*
|
|
[id$=_gallery] div
|
|
{
|
|
background: 0 !important;
|
|
position: relative;
|
|
}
|
|
*/
|
|
|
|
[id$="2img_gallery"].gr-box:not(.border-dashed)
|
|
{
|
|
border-radius: 0!important;
|
|
}
|
|
|
|
[id$="2img_gallery"] {
|
|
display: flex;
|
|
flex-direction: row;
|
|
overflow: hidden !important;
|
|
|
|
}
|
|
|
|
.dark .gr-box:not(.border-dashed) {
|
|
/* border-radius: var(--panel-border-radius) !important; */
|
|
}
|
|
|
|
|
|
[id$="2img_gallery"] .overflow-y-auto
|
|
{
|
|
|
|
width: 100%;
|
|
max-height: calc(100vh - 170px) !important;
|
|
min-height: calc(100vh - 170px) !important;
|
|
overflow-x: hidden !important;
|
|
}
|
|
|
|
[id$="2img_gallery"] .overflow-y-auto>div:first-child
|
|
{
|
|
height: calc(100vh - 187px);
|
|
}
|
|
|
|
[id$="2img_gallery"] div>img
|
|
{
|
|
height: calc(100% - 60px);
|
|
width: auto;
|
|
object-fit: scale-down;
|
|
}
|
|
|
|
[id$="2img_gallery"] .backdrop-blur
|
|
{
|
|
background-color: var(--main-bg-color) !important;
|
|
height: auto;
|
|
min-height: auto;
|
|
width: 100%;
|
|
min-width: 100%;
|
|
max-height: calc(100vh - 170px);
|
|
}
|
|
|
|
[id$="2img_gallery"] img+div
|
|
{
|
|
background-color: var(--input-bg-color) !important;
|
|
}
|
|
|
|
[id$="2img_gallery"] div>div
|
|
{
|
|
min-height: auto;
|
|
}
|
|
|
|
/***********************************/
|
|
/* Live preview don't mess with it */
|
|
/***********************************/
|
|
|
|
.livePreview {
|
|
position: absolute !important;
|
|
width: calc(100% - 18px) !important;
|
|
max-height: calc(100vh - 231px) !important;
|
|
top: 9px;
|
|
left: 9px;
|
|
right: 0;
|
|
bottom: 60px;
|
|
pointer-events: all;
|
|
overflow: hidden !important;
|
|
background-color: transparent !important;
|
|
z-index: 300;
|
|
/*margin: -4px;*/
|
|
|
|
}
|
|
|
|
.livePreview img{
|
|
background-color: var(--main-bg-color) !important;
|
|
}
|
|
|
|
/*
|
|
.dark .livePreview {
|
|
background-color: rgb(17 24 39/var(--tw-bg-opacity));
|
|
}
|
|
*/
|
|
|
|
.livePreview img {
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: scale-down;
|
|
/*object-fit: contain;*/
|
|
}
|
|
|
|
|
|
/***********************************/
|
|
/* Progressbar */
|
|
/***********************************/
|
|
|
|
.progressDiv {
|
|
background-color: var(--main-bg-color) !important;
|
|
border-radius: 0 !important;
|
|
height: 20px;
|
|
position: fixed;
|
|
z-index: 10000;
|
|
top: 0px;
|
|
/* width: calc(100% - 16px) !important; */
|
|
left: 0;
|
|
width: 100% !important;
|
|
/* border: 1px solid var(--panel-border-color); */
|
|
}
|
|
|
|
.progressDiv .progress {
|
|
width: 0%;
|
|
height: 4px;
|
|
background-color: var(--primary-color);
|
|
color: var(--input-color);
|
|
line-height: 20px;
|
|
text-align: right;
|
|
border-radius: 0;
|
|
padding: 0 2px;
|
|
font-size: 12px;
|
|
white-space: nowrap;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/***********/
|
|
/* prompts */
|
|
/***********/
|
|
|
|
[id$=_neg_prompt],
|
|
[id$=_prompt],
|
|
[id$="2img_styles"]
|
|
{
|
|
padding: 0;
|
|
}
|
|
|
|
[id$=_neg_prompt] > *,
|
|
[id$=_prompt] > *
|
|
{
|
|
border: 0 !important;
|
|
background-color: transparent !important;
|
|
}
|
|
/*
|
|
[id$=_neg_prompt] label,
|
|
[id$=_prompt] label
|
|
{
|
|
background-color: var(--main-bg-color);
|
|
border: 1px solid var(--panel-border-color);
|
|
border: 0;
|
|
|
|
}
|
|
*/
|
|
/*
|
|
[id$=_neg_prompt] span,
|
|
[id$=_prompt] span
|
|
{
|
|
|
|
color: #797f86 !important;
|
|
border: 1px solid var(--panel-border-color) !important;
|
|
margin: 0 !important;
|
|
padding: 5px !important;
|
|
min-height: 28px;
|
|
border-bottom: 0 !important;
|
|
border-bottom-left-radius: 0 !important;
|
|
border-bottom-right-radius: 0 !important;
|
|
|
|
}
|
|
*/
|
|
|
|
[id$=_prompt] span
|
|
{
|
|
/*color: #797f86 !important;*/
|
|
opacity:0.5;
|
|
|
|
}
|
|
|
|
[id$=_neg_prompt] textarea,
|
|
[id$=_prompt] textarea
|
|
{
|
|
|
|
border: 1px solid var(--panel-border-color);
|
|
min-height: 37px;
|
|
/*overflow: hidden !important; */
|
|
border-top-left-radius: 0 !important;
|
|
border-top-right-radius: 0 !important;
|
|
}
|
|
|
|
[id$=_neg_prompt] .gr-form,
|
|
[id$=_prompt] .gr-form
|
|
{
|
|
border:0 !important;
|
|
}
|
|
|
|
/*****************/
|
|
/* prompt styles */
|
|
/*****************/
|
|
|
|
[id$="2img_styles"]
|
|
{
|
|
background: 0 !important;
|
|
margin-top: 0;
|
|
}
|
|
|
|
[id$="2img_styles_row"]
|
|
{
|
|
display: flex;
|
|
flex-direction: row;
|
|
}
|
|
|
|
#setting_sd_model_checkpoint label,
|
|
[id$="2img_styles"] label
|
|
{
|
|
min-height: 34px;
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
background-color: var(--main-bg-color);
|
|
}
|
|
|
|
[id$="2img_styles"] span
|
|
{
|
|
display: block;
|
|
align-self: flex-start;
|
|
}
|
|
|
|
[id$="2img_styles"] div
|
|
{
|
|
background: none;
|
|
}
|
|
|
|
[id$="2img_styles"]>label>div
|
|
{
|
|
min-height: 34px;
|
|
background-color: var(--input-bg-color);
|
|
width: 100%;
|
|
}
|
|
|
|
[id$="2img_styles_row"]>button
|
|
{
|
|
/*margin: auto !important;*/
|
|
height: 34px;
|
|
width: 34px;
|
|
min-width: 34px !important;
|
|
}
|
|
|
|
|
|
ul.list-none {
|
|
max-height: 30vh;
|
|
z-index: 2000;
|
|
border-radius:0!important;
|
|
background-color: var(--input-bg-color) !important;
|
|
overflow-y:auto;
|
|
}
|
|
|
|
|
|
[id$="2img_styles"] .token
|
|
{
|
|
margin: 1px 1px;
|
|
padding: 4px 10px 4px 0;
|
|
position: relative;
|
|
top: 0px;
|
|
}
|
|
|
|
/* x svg icon styles */
|
|
.gr-input-label div:first-child {
|
|
position: relative;
|
|
top: 0px;
|
|
left: 2px;
|
|
}
|
|
|
|
|
|
/**********/
|
|
/* tokens */
|
|
/**********/
|
|
|
|
.token-counter div {
|
|
display: inline-block;
|
|
}
|
|
|
|
.token-counter span {
|
|
padding: 0 10px;
|
|
line-height: 27px;
|
|
display:block;
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.token-counter.error span {
|
|
background-color: var(--cancel-color) !important;
|
|
}
|
|
|
|
|
|
[id$="2img_negative_token_counter"],
|
|
[id$="2img_token_counter"]
|
|
{
|
|
top:0;
|
|
right: 0;
|
|
position: absolute;
|
|
z-index: 100;
|
|
min-height: 27px;
|
|
}
|
|
|
|
/***********************/
|
|
/* Action tool buttons */
|
|
/***********************/
|
|
|
|
[id$="2img_actions_column"]
|
|
{
|
|
min-width: unset !important;
|
|
flex-grow: 0;
|
|
padding: 0;
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
max-width: var(--tool-button-size);
|
|
margin-right: 0px;
|
|
|
|
}
|
|
/*
|
|
[id$="2img_actions_column"] button
|
|
|
|
{
|
|
flex-grow: 0;
|
|
padding-left: .25em;
|
|
padding-right: .25em;
|
|
margin: .1em 0;
|
|
min-width: 2.2em;
|
|
min-height: 2.2em;
|
|
max-width: 2.2em;
|
|
max-height: 2.2em;
|
|
|
|
}
|
|
*/
|
|
[id$="2img_actions_column"]+div,
|
|
[id$="2img_actions_column"]+div+div {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
[id$="2img_tools"]
|
|
{
|
|
gap: 2px;/*var(--inside-padding-size)*/;
|
|
}
|
|
|
|
/**********************/
|
|
/* splitter and views */
|
|
/**********************/
|
|
|
|
[id$=_prompt_image] + div
|
|
{
|
|
flex-wrap:nowrap;
|
|
}
|
|
|
|
|
|
[id$="2img_settings"]
|
|
{
|
|
flex-grow: 1;
|
|
flex-shrink: 0;
|
|
/*overflow-x: auto;*/
|
|
flex-basis: 50%;
|
|
}
|
|
|
|
[id$="2img_results"]
|
|
{
|
|
flex-grow: 0 !important;
|
|
flex-shrink: 1 !important;
|
|
flex-basis: 50%;
|
|
}
|
|
|
|
[id$=_splitter] {
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
/* background-color: var(--input-bg-color); */
|
|
cursor: col-resize;
|
|
margin: 0 0 0 auto;
|
|
min-width: 2px;
|
|
max-width: 2px;
|
|
align-self: stretch;
|
|
border: 1px dashed var(--input-bg-color);
|
|
}
|
|
|
|
|
|
|
|
/* fix issue with canvas */
|
|
/*
|
|
#img2img_sketch, #img2img_sketch>.h-60, #img2img_sketch>.h-60>div, #img2img_sketch>.h-60>div>img, #img2maskimg, #inpaint_sketch {
|
|
|
|
object-fit: scale-down !important;
|
|
width:100% !important;
|
|
height:auto !important;
|
|
}
|
|
*/
|
|
|
|
/*************/
|
|
/* extra div */
|
|
/*************/
|
|
[id$=group_seed] > div + div
|
|
{
|
|
flex-grow:0 !important;
|
|
}
|
|
|
|
|
|
/*******************/
|
|
/* buttons send to */
|
|
/*******************/
|
|
|
|
[id^="image_buttons_"] button
|
|
{
|
|
min-width: auto;
|
|
padding-left: 16px;
|
|
padding-right: 16px;
|
|
}
|
|
|
|
|
|
/******************/
|
|
/* extra-network-cards */
|
|
/******************/
|
|
|
|
.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-networks div {
|
|
margin: 0;
|
|
padding:0;
|
|
border:0;
|
|
}
|
|
|
|
.extra-networks > div:first-child > * {
|
|
margin-bottom: var(--inside-padding-size);
|
|
}
|
|
|
|
|
|
.extra-networks .search,
|
|
[id$="2img_extra_refresh"],
|
|
[id$="2img_extra_close"]
|
|
{
|
|
max-height: 32px;
|
|
margin-right: 4px;
|
|
border: 0;
|
|
flex-grow: 1;
|
|
padding-bottom: 0px !important;
|
|
min-height: 32px;
|
|
}
|
|
|
|
.extra-networks .search
|
|
{
|
|
width:60%;
|
|
}
|
|
|
|
|
|
.extra-network-cards {
|
|
display: grid;
|
|
/* grid-template-columns: repeat(auto-fill, var(--extra-networks-card-real-size));
|
|
overflow-y: auto;
|
|
scroll-snap-type: y mandatory;
|
|
*/
|
|
grid-gap: var(--inside-padding-size);
|
|
|
|
max-height: calc(var(--extra-networks-height) * 1.33);
|
|
|
|
grid-template-rows: repeat(var(--extra-networks-visible-rows), calc(var(--extra-networks-card-real-size) * 1.33));
|
|
grid-auto-columns: var(--extra-networks-card-real-size);
|
|
grid-auto-flow: column;
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
scroll-snap-type: x mandatory;
|
|
|
|
}
|
|
|
|
|
|
.extra-network-cards .card {
|
|
position: relative;
|
|
background-size: cover;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
z-index:1;
|
|
cursor: pointer;
|
|
border: 1px dashed var(--panel-bg-color);
|
|
}
|
|
|
|
.extra-network-cards .card::after {
|
|
display: block;
|
|
content: '';
|
|
padding-bottom: 133%;
|
|
}
|
|
|
|
.extra-network-cards .card-container {
|
|
position:relative;
|
|
}
|
|
|
|
.extra-network-cards .image-icon {
|
|
background-color: var(--panel-border-color);
|
|
-webkit-mask: url(./file=html/svg/image-icon.svg) no-repeat 50% 50%;
|
|
mask: url(./file=html/svg/image-icon.svg) no-repeat 50% 50%;
|
|
position: absolute;
|
|
width: 24px;
|
|
height: 24px;
|
|
top: 50%;
|
|
left: 50%;
|
|
z-index: 0;
|
|
transform: translateX(-50%) translateY(-50%);
|
|
}
|
|
|
|
/*
|
|
.extra-network-cards::after {
|
|
display: block;
|
|
content: '';
|
|
padding-bottom: 133%;
|
|
}
|
|
*/
|
|
|
|
/*
|
|
.extra-network-cards{
|
|
display: grid;
|
|
grid-gap: var(--inside-padding-size);
|
|
grid-template-columns: repeat(auto-fill,minmax(160px,1fr));
|
|
grid-auto-flow: column;
|
|
grid-auto-columns: minmax(160px,1fr);
|
|
overflow-x: auto;
|
|
scroll-snap-type: x mandatory;
|
|
|
|
}
|
|
|
|
.extra-network-cards .card::before,
|
|
.extra-network-thumbs .card::before
|
|
{
|
|
content: ' ';
|
|
display: inline-block;
|
|
-webkit-mask: url(./file=html/svg/image-icon.svg) no-repeat 50% 50%;
|
|
mask: url(./file=html/svg/image-icon.svg) no-repeat 50% 50%;
|
|
-webkit-mask-size: cover;
|
|
mask-size: cover;
|
|
background-color: var(--panel-bg-color);
|
|
top: calc(50% - 12px);
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
width: 32px;
|
|
height: 32px;
|
|
position: absolute;
|
|
}
|
|
|
|
.extra-network-cards .card {
|
|
display: inline-block;
|
|
width: 160px;
|
|
height: 213px;
|
|
margin-bottom: var(--inside-padding-size);
|
|
scroll-snap-align: start;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.extra-networks .tabitem {
|
|
padding: var(--inside-padding-size) 0;
|
|
}
|
|
|
|
.extra-network-thumbs .actions .additional a {
|
|
background-image: url(./file=html/svg/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: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 {
|
|
background-color: rgba(0, 0, 0, .5);
|
|
}
|
|
|
|
.extra-network-cards .card .actions .name {
|
|
font-size: var(--extra-networks-name-size);
|
|
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;
|
|
}
|
|
|
|
/******************/
|
|
/* extras tab */
|
|
/******************/
|
|
|
|
#mode_extras > div:not(first-child){
|
|
padding-left:0;
|
|
padding-right:0;
|
|
padding-bottom:0;
|
|
|
|
}
|
|
|
|
#extras_2img_settings_scroll > div.gr-box.gr-padded {
|
|
padding:0;
|
|
border:0;
|
|
background: transparent;
|
|
margin-top: calc(var(--outside-gap-size) * -1);
|
|
}
|
|
|
|
#extras_2img_settings_scroll > div.gr-box.gr-padded > div {
|
|
margin:0;
|
|
}
|
|
|
|
#extras_2img_settings_scroll > div.gr-box.gr-padded > div > div {
|
|
margin-bottom: var(--outside-gap-size);
|
|
}
|
|
|
|
#extras_resize_mode {
|
|
padding: 0;
|
|
margin: 0;
|
|
border-top-left-radius: 0;
|
|
border-top-right-radius: 0;
|
|
}
|
|
|
|
#extras_scale_to_tab,
|
|
#extras_scale_by_tab{
|
|
/*min-height: 81px; */
|
|
margin: -2px !important;
|
|
margin-top: calc(var(--outside-gap-size) * -1) !important;
|
|
background-color: transparent !important;
|
|
margin-bottom: calc(var(--outside-gap-size) - 2px) !important;
|
|
padding: 0;
|
|
}
|
|
#extras_resize_mode > div:first-child{
|
|
padding-top: var(--outside-gap-size);
|
|
/*margin-top:2px;*/
|
|
margin-top: var(--outside-gap-size);
|
|
border-top-left-radius: var(--panel-border-radius);
|
|
border-top-right-radius: var(--panel-border-radius);
|
|
}
|
|
#extras_scale_to_tab div,
|
|
#extras_scale_by_tab div{
|
|
border-top-left-radius: 0 !important;
|
|
border-top-right-radius: 0 !important;
|
|
}
|
|
|
|
|
|
/******************/
|
|
/* extensions tab */
|
|
/******************/
|
|
|
|
#tab_extensions table {
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
#tab_extensions table td,
|
|
#tab_extensions table th {
|
|
padding: .25em .5em;
|
|
border: 1px solid var(--panel-border-color);
|
|
}
|
|
|
|
#tab_extensions table input[type=checkbox] {
|
|
margin-right: .5em;
|
|
top: -3px;
|
|
}
|
|
|
|
#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%;
|
|
}
|
|
|
|
/****************/
|
|
/* modelmerger */
|
|
/****************/
|
|
|
|
#modelmerger_results_container {
|
|
margin-top: 1em;
|
|
overflow: visible;
|
|
}
|
|
/*
|
|
#modelmerger_models {
|
|
gap: 0;
|
|
}
|
|
|
|
|
|
|
|
#modelmerger_interp_description {
|
|
margin: .35rem .75rem 1.23rem;
|
|
}
|
|
*/
|
|
|
|
#modelmerger_interp_description>p {
|
|
margin: 0 !important;
|
|
text-align: center;
|
|
}
|
|
|
|
/*************/
|
|
/* settings */
|
|
/*************/
|
|
|
|
#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;
|
|
}
|
|
|
|
#settings_ui_theme > div > div
|
|
{
|
|
flex-direction: row;
|
|
flex-wrap: wrap;
|
|
}
|
|
#settings_ui_theme > div > div > div
|
|
{
|
|
max-width:30%;
|
|
}
|
|
|
|
/******************/
|
|
/* lightboxModal */
|
|
/******************/
|
|
|
|
|
|
#lightboxModal {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 10001;
|
|
padding-top: 100px;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: auto;
|
|
background-color: #000;
|
|
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;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*********************/
|
|
/* Mobile breakpoint */
|
|
/*********************/
|
|
|
|
@media only screen and (max-width: 860px) {
|
|
/* For tablets: */
|
|
[id$=_splitter]
|
|
{
|
|
display:none
|
|
}
|
|
|
|
[id$="2img_gallery"] .overflow-y-auto
|
|
{
|
|
/*min-height: unset !important; */
|
|
}
|
|
|
|
[id$="2img_settings_scroll"]
|
|
{
|
|
height: auto !important;
|
|
}
|
|
|
|
[id$="2img_results"]
|
|
{
|
|
max-height: unset !important;
|
|
}
|
|
|
|
[id$="2img_settings"]::before
|
|
{
|
|
display:none;
|
|
}
|
|
|
|
[id$="2img_actions_column"]
|
|
{
|
|
flex-basis: 100% !important;
|
|
max-width: 100% !important;
|
|
}
|
|
|
|
|
|
[id$="2img_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:70px;
|
|
}
|
|
|
|
[id$="2img_gallery"]
|
|
{
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
|
|
|
|
[id$="2img_tools"]
|
|
{
|
|
gap: 2px;
|
|
}
|
|
/*
|
|
.dark .dark\:hover\:border-gray-600>div.cursor-pointer+div {
|
|
margin-top: 4px !important;
|
|
}*/
|
|
|
|
[id$="2img_results"]
|
|
{
|
|
flex-grow: 1 !important;
|
|
flex-shrink: 1 !important;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
#splitter {
|
|
display:none;
|
|
}
|
|
|
|
[id$="2img_prompt_image"] + div
|
|
{
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
[id$="2img_results"]
|
|
{
|
|
flex-grow: 1 !important;
|
|
}
|
|
|
|
.token-counter span {
|
|
position: relative;
|
|
top: 3px;
|
|
right: 3px;
|
|
}
|
|
|
|
#settings>div {
|
|
margin-left: 0;
|
|
}
|
|
|
|
#settings>div.flex-wrap {
|
|
float: none;
|
|
display: flex !important;
|
|
margin-left: 0;
|
|
width: auto;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
[id$="2img_hr_scale"]
|
|
{
|
|
flex-basis: 100% !important;
|
|
}
|
|
|
|
|
|
|
|
[id$="2img_gallery"] div.modify-upload{
|
|
position:absolute;
|
|
}
|
|
|
|
[id$="2img_gallery"],
|
|
[id$="2img_gallery"] div>img,
|
|
[id$="2img_gallery"] div.backdrop-blur,
|
|
[id$="2img_gallery"] img+div.overflow-x-scroll{
|
|
position:relative;
|
|
height: auto !important;
|
|
min-height: auto;
|
|
border-radius: 0 !important;
|
|
}
|
|
|
|
[id$="2img_gallery"],
|
|
[id$="2img_gallery"] div>img,
|
|
[id$="2img_gallery"] div.backdrop-blur
|
|
{
|
|
max-height: unset !important;
|
|
}
|
|
|
|
[id$="2img_gallery"] .overflow-y-auto {
|
|
min-height: auto !important;
|
|
}
|
|
|
|
.livePreview img{
|
|
object-position:top;
|
|
border-radius: 0 !important;
|
|
}
|
|
|
|
.livePreview {
|
|
width: calc(100% - 10px) !important;
|
|
top: 4px;
|
|
left: 5px;
|
|
border-radius: 0 !important;
|
|
max-height: unset !important;
|
|
}
|
|
[id$="png_2img_results"]{
|
|
order:1;
|
|
}
|
|
|
|
[id$="settings_2img_settings"] {
|
|
max-height: none;
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
footer {
|
|
display: none !important;
|
|
}
|
|
|
|
#footer {
|
|
position:relative;
|
|
z-index:999;
|
|
/*margin:auto !important;
|
|
width:auto;*/
|
|
}
|
|
|
|
|
|
.footer-wrapper{
|
|
display:flex;
|
|
}
|
|
|
|
.footer-links {
|
|
position: relative;
|
|
width: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style-type: none;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.footer-links > li {
|
|
display: inline-block;
|
|
width: 32px;
|
|
height: 32px;
|
|
text-align: center;
|
|
float: left;
|
|
/*background: var(--panel-bg-color);*/
|
|
border-radius: 100%;
|
|
position: relative;
|
|
display: flex;
|
|
}
|
|
|
|
.footer-links > li > div,
|
|
.footer-links > li > a {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
font-size: 24px;
|
|
fill: var(--primary-color);
|
|
}
|
|
|
|
.footer-links > li:last-child {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
}
|
|
|
|
|
|
|
|
a[data-tooltip].top:before, a[data-tooltip].top:after {
|
|
transform: translateY(10px);
|
|
}
|
|
a[data-tooltip].top:hover:after, a[data-tooltip].top:hover:before {
|
|
transform: translateY(0px);
|
|
}
|
|
|
|
a[data-tooltip].right:before, a[data-tooltip].right:after {
|
|
transform: translateX(0px);
|
|
}
|
|
a[data-tooltip].right:hover:after, a[data-tooltip].right:hover:before {
|
|
transform: translateX(10px);
|
|
}
|
|
|
|
a[data-tooltip].bottom:before, a[data-tooltip].bottom:after {
|
|
transform: translateY(-10px);
|
|
}
|
|
a[data-tooltip].bottom:hover:after, a[data-tooltip].bottom:hover:before {
|
|
transform: translateY(0px);
|
|
}
|
|
|
|
a[data-tooltip].left:before, a[data-tooltip].left:after {
|
|
transform: translateX(0px);
|
|
}
|
|
a[data-tooltip].left:hover:after, a[data-tooltip].left:hover:before {
|
|
transform: translateX(-10px);
|
|
}
|
|
|
|
a[data-tooltip] {
|
|
position: relative;
|
|
max-width:320px;
|
|
}
|
|
a[data-tooltip]:after, a[data-tooltip]:before {
|
|
position: absolute;
|
|
visibility: hidden;
|
|
opacity: 0;
|
|
transition: transform 200ms ease, opacity 200ms;
|
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
|
|
z-index: 99;
|
|
}
|
|
a[data-tooltip]:before {
|
|
content: attr(data-tooltip);
|
|
background-color: var(--main-bg-color);
|
|
/*color: #fff;*/
|
|
font-size: 10px;
|
|
font-weight: bold;
|
|
padding: 10px 15px;
|
|
border-radius: 5px;
|
|
white-space: nowrap;
|
|
text-decoration: none;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
}
|
|
a[data-tooltip]:after {
|
|
width: 0;
|
|
height: 0;
|
|
border: 6px solid transparent;
|
|
content: "";
|
|
}
|
|
a[data-tooltip]:hover:after, a[data-tooltip]:hover:before {
|
|
visibility: visible;
|
|
opacity: 1.0;
|
|
transform: translateY(0px);
|
|
}
|
|
|
|
a[data-tooltip][data-position=top]:before {
|
|
bottom: 100%;
|
|
left: -130%;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
a[data-tooltip][data-position=top]:after {
|
|
border-top-color: var(--main-bg-color);
|
|
border-bottom: none;
|
|
bottom: 101%;
|
|
left: calc(50% - 6px);
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
a[data-tooltip][data-position=left]:before {
|
|
top: -12%;
|
|
right: 100%;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
a[data-tooltip][data-position=left]:after {
|
|
border-left-color: var(--main-bg-color);
|
|
border-right: none;
|
|
top: calc(50% - 3px);
|
|
right: 100%;
|
|
margin-top: -6px;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
a[data-tooltip][data-position=right]:before {
|
|
top: -5%;
|
|
left: 100%;
|
|
margin-left: 10px;
|
|
}
|
|
|
|
a[data-tooltip][data-position=right]:after {
|
|
border-right-color: var(--main-bg-color);
|
|
border-left: none;
|
|
top: calc(50% - 6px);
|
|
left: calc(100% + 4px);
|
|
}
|
|
|
|
a[data-tooltip][data-position=bottom]:before {
|
|
top: 100%;
|
|
left: -130%;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
a[data-tooltip][data-position=bottom]:after {
|
|
border-bottom-color: var(--main-bg-color);
|
|
border-top: none;
|
|
top: 100%;
|
|
left: 5px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
|
|
.tooltip-html {
|
|
text-align: left;
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
transform-origin: 0 0;
|
|
}
|
|
|
|
.tooltip-html i {
|
|
position: relative;
|
|
display: block;
|
|
}
|
|
|
|
.tooltip-html .icon-info {
|
|
fill: var(--primary-color);
|
|
scale:0.9;
|
|
}
|
|
|
|
li.coffee-circle {
|
|
background: #FFDD00;
|
|
margin-left: 5px;
|
|
margin-right: 5px;
|
|
}
|
|
|
|
|
|
.tooltip-html .coffee {
|
|
fill: var(--main-bg-color);
|
|
}
|
|
|
|
.tooltip-html .top {
|
|
min-width: 200px;
|
|
max-width: 400px;
|
|
top: -20px;
|
|
left: 50%;
|
|
transform: translate(-90%,-100%);
|
|
padding: 10px 20px;
|
|
background-color: var(--main-bg-color);
|
|
font-weight: normal;
|
|
font-size: 14px;
|
|
border-radius: var(--panel-border-radius);
|
|
position: absolute;
|
|
z-index: 99;
|
|
box-sizing: border-box;
|
|
box-shadow: 0 1px 8px rgb(0 0 0 / 50%);
|
|
display: none;
|
|
}
|
|
|
|
.tooltip-html .top.center{
|
|
transform: translate(-50%,-100%);
|
|
}
|
|
|
|
|
|
.tooltip-html:hover .top {
|
|
display:block;
|
|
}
|
|
|
|
.tooltip-html .top i {
|
|
position:absolute;
|
|
top:100%;
|
|
left:90%;
|
|
margin-left:-15px;
|
|
width:30px;
|
|
height:15px;
|
|
overflow:hidden;
|
|
}
|
|
|
|
.tooltip-html .top.center i {
|
|
left:50%;
|
|
}
|
|
|
|
.tooltip-html .top i::after {
|
|
content:'';
|
|
position:absolute;
|
|
width:15px;
|
|
height:15px;
|
|
left:50%;
|
|
transform:translate(-50%,-50%) rotate(45deg);
|
|
background-color: var(--main-bg-color);
|
|
box-shadow:0 1px 8px rgba(0,0,0,0.5);
|
|
}
|
|
|
|
.tooltip-html span{
|
|
opacity:0.5;
|
|
}
|
|
|
|
.tooltip-html a{
|
|
color: var(--primary-color);
|
|
}
|
|
/**********************/
|
|
/* Sliders Scrollbars */
|
|
/**********************/
|
|
|
|
::-webkit-scrollbar {
|
|
width: 10px;
|
|
}
|
|
|
|
[id$="2img_settings_scroll"]::-webkit-scrollbar
|
|
{
|
|
width: 12px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
box-shadow: inset 0 0 10px 10px var(--main-bg-color);
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
box-shadow: inset 0 0 10px 10px var(--panel-bg-color);
|
|
}
|
|
|
|
::-webkit-scrollbar-button {
|
|
display: none;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb,
|
|
::-webkit-scrollbar-track {
|
|
border-left: solid 6px var(--main-bg-color);
|
|
border-radius: 0;
|
|
}
|
|
|
|
[id$="2img_settings_scroll"]::-webkit-scrollbar-thumb,
|
|
[id$="2img_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: var(--input-bg-color);
|
|
border: 1px solid var(--input-border-color);
|
|
}
|
|
|
|
input[type=range]::-webkit-slider-runnable-track {
|
|
height: 14px;
|
|
-webkit-appearance: none;
|
|
color: var(--primary-color);
|
|
margin-top: -1px;
|
|
}
|
|
|
|
input[type=range]::-webkit-slider-thumb {
|
|
width: 14px;
|
|
-webkit-appearance: none;
|
|
height: 14px;
|
|
cursor: ew-resize;
|
|
background-color: var(--primary-color);
|
|
box-shadow: -1024px 0 0 1024px var(--primary-color);
|
|
}
|
|
|
|
[id$="_sub-group"] input[type=range]
|
|
{
|
|
|
|
background-color: var(--subgroup-input-bg-color);
|
|
border: 1px solid var(--subgroup-input-border-color);
|
|
}
|
|
|
|
}
|
|
|
|
|
|
/* Firefox */
|
|
|
|
input[type=range]::-moz-range-progress {
|
|
background-color: var(--primary-color);
|
|
height: 14px;
|
|
border: 1px solid var(--primary-color);
|
|
}
|
|
|
|
input[type=range]::-moz-range-track {
|
|
background-color: var(--input-bg-color);
|
|
}
|
|
|
|
[id$="2img_results"],
|
|
[id$="2img_settings_scroll"]
|
|
{
|
|
scrollbar-color: var(--panel-bg-color) var(--main-bg-color) !important;
|
|
scrollbar-width: thin !important;
|
|
}
|
|
|
|
|
|
input[type=range]{
|
|
width: 100%;
|
|
}
|
|
|
|
input[type=range]::-moz-range-track {
|
|
width: 100%;
|
|
background-color: var(--input-bg-color);
|
|
border: none;
|
|
border-radius: 0px;
|
|
}
|
|
|
|
input[type=range]::-moz-range-thumb {
|
|
border: 1px solid var(--primary-color);
|
|
width: 14px;
|
|
border-radius: 0%;
|
|
background-color: var(--primary-color);
|
|
}
|
|
|
|
/*hide the outline behind the border*/
|
|
input[type=range]:-moz-focusring{
|
|
outline: 1px solid var(--primary-color);
|
|
outline-offset: -1px;
|
|
}
|
|
|
|
input[type=range]:focus::-moz-range-track {
|
|
background-color: var(--input-bg-color);
|
|
}
|
|
|
|
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: var(--primary-color);
|
|
}
|
|
|
|
input[type=range]::-ms-fill-upper {
|
|
background-color: var(--input-bg-color);
|
|
}
|
|
|
|
|
|
/*BREAKPOINT_CSS_CONTENT*/ |