Spaces:
Runtime error
Runtime error
File size: 5,307 Bytes
6831a54 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
/* InputAccordion alignment */
/* Flex container */
.controlnet .svelte-vt1mxs {
display: flex;
flex-wrap: wrap;
flex-direction: row;
gap: 10px;
/* Adjusts the space between items */
}
.controlnet .input-accordion {
flex: 1 1 calc(50% - 10px);
/* Adjusts for the gap, default 2 columns */
display: flex;
align-items: center;
}
/* Media query for screens smaller than a specific width */
@media (max-width: 600px) {
.controlnet .input-accordion {
flex: 1 1 100%;
/* Changes to 1 column when window width is ≤ 600px */
}
}
/* Input image thumbnail */
.cnet-thumbnail {
height: 3rem !important;
border: 1px solid var(--button-secondary-border-color);
}
.controlnet .input-accordion .label-wrap>span:nth-child(1) {
display: flex;
flex-direction: row;
align-items: center;
gap: 5px;
}
.controlnet .input-accordion .icon {
height: 1rem;
width: 1rem;
}
.controlnet .input-accordion .label-wrap {
align-items: center;
}
.cnet-modal {
display: none;
/* Hidden by default */
position: fixed;
/* Stay in place */
z-index: 2147483647;
/* Sit on top */
left: 0;
top: 0;
width: 100%;
/* Full width */
height: 100%;
/* Full height */
overflow: auto;
/* Enable scroll if needed */
background-color: rgba(0, 0, 0, 0.4);
/* Black with opacity */
max-width: none !important;
/* Fix sizing with SD.Next (vladmandic/automatic#2594) */
}
.cnet-modal-content {
position: relative;
background-color: var(--background-fill-primary);
margin: 5vh auto;
/* 15% from the top and centered */
padding: 20px;
border: 1px solid #888;
width: 95%;
height: 90vh;
/* Could be more or less, depending on screen size */
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
animation-name: animatetop;
animation-duration: 0.4s;
max-width: none !important;
/* Fix sizing with SD.Next (vladmandic/automatic#2594) */
}
.cnet-modal-content iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: none;
}
.cnet-modal-content.alert {
padding: var(--size-5);
}
.cnet-modal-content.alert ul {
list-style-type: none;
}
.cnet-modal-close {
color: white !important;
right: 0.25em;
top: 0;
cursor: pointer;
position: absolute;
font-size: 56px;
font-weight: bold;
}
@keyframes animatetop {
from {
top: -300px;
opacity: 0
}
to {
top: 0;
opacity: 1
}
}
.cnet-generated-image-control-group,
.cnet-upload-pose {
display: flex;
flex-direction: column;
align-items: flex-end;
position: absolute;
right: var(--size-2);
bottom: var(--size-2);
}
/* Gradio button style */
.cnet-download-pose a,
.cnet-close-preview,
.cnet-edit-pose,
.cnet-upload-pose,
.cnet-photopea-child-trigger {
font-size: x-small !important;
font-weight: bold !important;
padding: 2px !important;
box-shadow: var(--shadow-drop);
border: 1px solid var(--button-secondary-border-color);
border-radius: var(--radius-sm);
background: var(--background-fill-primary);
height: var(--size-5);
color: var(--block-label-text-color) !important;
display: flex;
justify-content: center;
cursor: pointer;
}
.cnet-download-pose:hover a,
.cnet-close-preview:hover a,
.cnet-edit-pose:hover,
.cnet-upload-pose:hover,
.cnet-photopea-child-trigger:hover {
color: var(--block-label-text-color) !important;
}
.cnet-unit-active {
color: green !important;
font-weight: bold !important;
}
.dark .cnet-unit-active {
color: greenyellow !important;
}
.cnet-badge {
display: inline-block;
padding: 0.25em 0.75em;
font-size: 0.75em;
font-weight: bold;
color: white;
border-radius: 0.5em;
text-align: center;
vertical-align: middle;
margin-left: var(--size-2);
}
.cnet-badge.primary {
background-color: green;
}
.cnet-a1111-badge {
position: absolute;
bottom: 0px;
right: 0px;
}
.cnet-disabled-radio {
opacity: 50%;
}
.controlnet_row {
margin-top: 10px !important;
}
/* JSON pose upload button styling */
.cnet-upload-pose input[type=file] {
position: absolute;
left: 0;
top: 0;
opacity: 0;
width: 100%;
height: 100%;
}
/* Photopea integration styles */
.photopea-button-group {
position: absolute;
top: -30px; /* 20px modal padding + 10px margin */
}
.photopea-button {
font-size: 3rem;
font-weight: bold;
padding: 2px !important;
margin: 2px !important;
box-shadow: var(--shadow-drop);
border: 1px solid var(--button-secondary-border-color);
border-radius: var(--radius-sm);
background: var(--background-fill-primary);
color: var(--block-label-text-color);
}
.controlnet_control_type_filter_group label {
background: unset !important;
border: unset !important;
margin-left: -10px !important;
}
.controlnet_control_type_filter_group > span {
display: none !important;
}
.controlnet_control_type_filter_group > .wrap {
margin-top: -20px !important;
}
.cnet-toolbutton {
background: unset !important;
border: unset !important;
}
.range-slider {
margin-top: -8px;
}
|