Update style.css
Browse files
style.css
CHANGED
|
@@ -31,25 +31,24 @@ body {
|
|
| 31 |
min-height: 100vh;
|
| 32 |
}
|
| 33 |
|
| 34 |
-
/* 隐藏全局滚动条,但在需要的地方保留细线 */
|
| 35 |
::-webkit-scrollbar { width: 6px; height: 6px; }
|
| 36 |
::-webkit-scrollbar-track { background: transparent; }
|
| 37 |
::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }
|
| 38 |
::-webkit-scrollbar-thumb:hover { background: #666; }
|
| 39 |
|
| 40 |
/* ==========================================================================
|
| 41 |
-
🏗️ 3. 核心布局 (
|
| 42 |
========================================================================== */
|
| 43 |
.layout {
|
| 44 |
display: grid;
|
| 45 |
-
grid-template-columns:
|
| 46 |
gap: 20px;
|
| 47 |
width: 100%;
|
| 48 |
-
max-width:
|
| 49 |
-
align-items: start;
|
| 50 |
}
|
| 51 |
|
| 52 |
-
/*
|
| 53 |
.panel {
|
| 54 |
background: var(--panel-bg);
|
| 55 |
padding: 20px;
|
|
@@ -60,247 +59,184 @@ body {
|
|
| 60 |
overflow: hidden;
|
| 61 |
}
|
| 62 |
|
| 63 |
-
/*
|
| 64 |
.left-panel {
|
| 65 |
max-height: calc(100vh - 40px);
|
| 66 |
overflow-y: auto;
|
| 67 |
}
|
| 68 |
|
| 69 |
-
/*
|
| 70 |
-
/* 确保中间面板高度固定,且内部是 flex */
|
| 71 |
.middle-panel {
|
| 72 |
height: calc(100vh - 40px);
|
| 73 |
display: flex;
|
| 74 |
flex-direction: column;
|
| 75 |
-
overflow: hidden;
|
| 76 |
}
|
| 77 |
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
flex-grow: 1;
|
| 82 |
display: flex;
|
| 83 |
flex-direction: column;
|
| 84 |
-
|
| 85 |
-
align-items: center;
|
| 86 |
-
width: 100%;
|
| 87 |
-
margin-top: 15px;
|
| 88 |
-
height: auto;
|
| 89 |
}
|
| 90 |
|
| 91 |
-
/*
|
| 92 |
-
.
|
| 93 |
-
|
| 94 |
-
justify-content:
|
| 95 |
align-items: center;
|
| 96 |
-
|
| 97 |
}
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
}
|
| 106 |
|
| 107 |
/* ==========================================================================
|
| 108 |
-
|
| 109 |
========================================================================== */
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
-
|
| 118 |
-
width: 100%; padding: 10px; border-radius: 6px; border: 1px solid var(--border);
|
| 119 |
-
background: var(--input-bg); color: var(--text-main); font-size: 14px;
|
| 120 |
-
transition: border-color 0.2s;
|
| 121 |
-
-moz-appearance: textfield; /* 去除数字输入框的上下箭头 */
|
| 122 |
}
|
| 123 |
-
|
| 124 |
-
|
| 125 |
-
|
| 126 |
-
|
| 127 |
-
|
| 128 |
-
|
| 129 |
-
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
line-height: 1.5;
|
| 133 |
}
|
| 134 |
|
| 135 |
-
/*
|
| 136 |
-
.
|
| 137 |
-
|
| 138 |
-
|
| 139 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
}
|
| 141 |
-
.
|
| 142 |
-
|
| 143 |
-
|
|
|
|
| 144 |
}
|
| 145 |
-
.
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
padding: 12px; border-radius: 6px; font-size: 16px; transition: 0.2s; margin-top: 10px;
|
| 151 |
}
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
pointer-events: none;
|
| 155 |
-
background-color: #555;
|
| 156 |
-
color: #888;
|
| 157 |
-
cursor: not-allowed;
|
| 158 |
-
opacity: 0.6;
|
| 159 |
}
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
|
|
|
| 166 |
}
|
| 167 |
-
.
|
| 168 |
-
.lora-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
|
| 169 |
-
.lora-row .strength-box { width: 70px; padding: 6px; text-align: center; }
|
| 170 |
-
|
| 171 |
-
/* ==========================================================================
|
| 172 |
-
🎲 5. 专属组件 (Seed 随机按钮 & 后端状态灯)
|
| 173 |
-
========================================================================== */
|
| 174 |
-
|
| 175 |
-
/* -- 5.1 Seed 随机按钮组 -- */
|
| 176 |
-
.seed-group {
|
| 177 |
display: flex;
|
| 178 |
-
|
| 179 |
-
|
| 180 |
}
|
| 181 |
-
.
|
| 182 |
-
|
| 183 |
-
|
| 184 |
-
|
| 185 |
-
|
| 186 |
-
|
| 187 |
-
background: var(--input-bg);
|
| 188 |
border: 1px solid var(--border);
|
| 189 |
color: var(--text-main);
|
| 190 |
-
border-radius: 6px;
|
| 191 |
-
font-size: 16px;
|
| 192 |
-
display: flex;
|
| 193 |
-
align-items: center;
|
| 194 |
-
justify-content: center;
|
| 195 |
-
transition: all 0.2s;
|
| 196 |
-
cursor: pointer;
|
| 197 |
}
|
| 198 |
-
.seed-group button:hover { background: var(--border); border-color: var(--accent); }
|
| 199 |
-
.seed-group button:active { transform: scale(0.95); }
|
| 200 |
-
|
| 201 |
-
/* -- 5.2 顶部状态栏与指示灯 -- */
|
| 202 |
-
.header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
|
| 203 |
-
.header-row h2 { margin: 0; }
|
| 204 |
-
|
| 205 |
-
.status-indicator { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
|
| 206 |
-
.status-dot {
|
| 207 |
-
width: 10px; height: 10px; border-radius: 50%;
|
| 208 |
-
transition: background-color 0.3s ease;
|
| 209 |
-
box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
|
| 210 |
-
}
|
| 211 |
-
|
| 212 |
-
/* 呼吸动画定义 */
|
| 213 |
-
@keyframes breathe-green { 0% { opacity: 0.6; box-shadow: 0 0 4px rgba(0, 200, 81, 0.2); } 50% { opacity: 0.9; box-shadow: 0 0 10px rgba(0, 200, 81, 0.8); } 100% { opacity: 0.6; box-shadow: 0 0 4px rgba(0, 200, 81, 0.2); } }
|
| 214 |
-
@keyframes breathe-yellow { 0% { opacity: 0.6; box-shadow: 0 0 4px rgba(255, 187, 51, 0.2); } 50% { opacity: 0.9; box-shadow: 0 0 10px rgba(255, 187, 51, 0.8); } 100% { opacity: 0.6; box-shadow: 0 0 4px rgba(255, 187, 51, 0.2); } }
|
| 215 |
-
@keyframes breathe-red { 0% { opacity: 0.6; box-shadow: 0 0 4px rgba(255, 68, 68, 0.2); } 50% { opacity: 0.9; box-shadow: 0 0 10px rgba(255, 68, 68, 0.8); } 100% { opacity: 0.6; box-shadow: 0 0 4px rgba(255, 68, 68, 0.2); } }
|
| 216 |
-
|
| 217 |
-
.status-dot.online { background-color: var(--online-green); animation: breathe-green 2.5s infinite ease-in-out; }
|
| 218 |
-
.status-dot.loading { background-color: var(--loading-yellow); animation: breathe-yellow 1.5s infinite ease-in-out; }
|
| 219 |
-
.status-dot.offline { background-color: var(--offline-red); animation: breathe-red 1s infinite ease-in-out; }
|
| 220 |
|
| 221 |
/* ==========================================================================
|
| 222 |
-
|
| 223 |
========================================================================== */
|
| 224 |
-
@media (max-width: 1024px) {
|
| 225 |
-
.layout { grid-template-columns: 1fr; }
|
| 226 |
-
.middle-panel, .right-panel { height: auto; min-height: 400px; }
|
| 227 |
-
}
|
| 228 |
-
|
| 229 |
-
/* ==========================================
|
| 230 |
-
7.🖼️ 图库卡片专属样式
|
| 231 |
-
========================================== */
|
| 232 |
-
|
| 233 |
-
/* 图库滚动容器 */
|
| 234 |
.gallery-scroll-container {
|
| 235 |
-
flex: 1;
|
| 236 |
-
overflow-y: auto;
|
| 237 |
-
|
| 238 |
-
|
|
|
|
|
|
|
| 239 |
}
|
| 240 |
|
| 241 |
-
/*
|
| 242 |
.gallery-grid {
|
| 243 |
display: grid;
|
| 244 |
-
grid-template-columns: repeat(3, 1fr);
|
| 245 |
-
gap:
|
| 246 |
}
|
| 247 |
|
| 248 |
-
/*
|
| 249 |
.lora-card {
|
| 250 |
position: relative;
|
| 251 |
-
aspect-ratio: 3 / 4;
|
| 252 |
border-radius: 8px;
|
| 253 |
overflow: hidden;
|
| 254 |
cursor: pointer;
|
| 255 |
-
border: 2px solid transparent;
|
| 256 |
-
transition: all 0.2s ease;
|
| 257 |
background-color: var(--input-bg);
|
|
|
|
| 258 |
}
|
| 259 |
-
|
| 260 |
-
/* 悬浮效果 */
|
| 261 |
.lora-card:hover {
|
| 262 |
-
|
| 263 |
}
|
| 264 |
-
|
| 265 |
-
/* 选中状态(橙色粗边框,类似 Gradio) */
|
| 266 |
.lora-card.selected {
|
| 267 |
border-color: var(--accent);
|
| 268 |
-
box-shadow: 0 0
|
| 269 |
}
|
| 270 |
-
|
| 271 |
-
/* 卡片图片 */
|
| 272 |
.lora-card img {
|
| 273 |
-
width: 100%;
|
| 274 |
-
height: 100%;
|
| 275 |
object-fit: cover;
|
| 276 |
-
object-position: top center;
|
| 277 |
transition: transform 0.3s ease;
|
| 278 |
}
|
| 279 |
-
|
| 280 |
-
/* 鼠标悬浮时图片微微放大 */
|
| 281 |
.lora-card:hover img {
|
| 282 |
transform: scale(1.05);
|
| 283 |
}
|
| 284 |
|
| 285 |
-
/* 底部渐变遮罩和文字 */
|
| 286 |
.card-info {
|
| 287 |
position: absolute;
|
| 288 |
-
bottom: 0;
|
| 289 |
-
|
| 290 |
-
right: 0;
|
| 291 |
-
padding: 30px 10px 10px 10px; /* 上方留出空间给渐变 */
|
| 292 |
background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
|
| 293 |
-
pointer-events: none;
|
| 294 |
-
display: flex;
|
| 295 |
-
flex-direction: column;
|
| 296 |
}
|
| 297 |
-
|
| 298 |
.card-title {
|
| 299 |
color: #fff;
|
| 300 |
font-size: 13px;
|
| 301 |
font-weight: 600;
|
| 302 |
line-height: 1.3;
|
| 303 |
-
/* 文字超出两行省略号 */
|
| 304 |
display: -webkit-box;
|
| 305 |
-webkit-line-clamp: 2;
|
| 306 |
-webkit-box-orient: vertical;
|
|
@@ -309,140 +245,102 @@ textarea {
|
|
| 309 |
text-shadow: 0 1px 2px rgba(0,0,0,0.8);
|
| 310 |
}
|
| 311 |
|
| 312 |
-
|
| 313 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 314 |
overflow: hidden;
|
| 315 |
-
text-overflow: ellipsis;
|
| 316 |
-
max-width: 250px; /* 根据你的面板宽度调整 */
|
| 317 |
-
display: inline-block;
|
| 318 |
-
vertical-align: bottom;
|
| 319 |
}
|
| 320 |
-
|
| 321 |
-
/* ==========================================
|
| 322 |
-
🌟 终极版 HUD (左右分栏 + 完美圆角)
|
| 323 |
-
========================================== */
|
| 324 |
-
.selected-hud {
|
| 325 |
-
position: relative;
|
| 326 |
width: 100%;
|
| 327 |
-
height: 140px; /* 高度调小一点,不那么占地 */
|
| 328 |
-
margin-top: 15px;
|
| 329 |
-
border-radius: 12px;
|
| 330 |
-
overflow: hidden; /* 保证圆角裁剪生效 */
|
| 331 |
-
background: var(--input-bg);
|
| 332 |
-
border: 1px solid var(--border);
|
| 333 |
-
display: flex; /* 改为 flex 左右布局 */
|
| 334 |
-
}
|
| 335 |
-
|
| 336 |
-
/* 左侧:图片完整展示 */
|
| 337 |
-
.hud-left {
|
| 338 |
-
width: 110px; /* 固定宽度 */
|
| 339 |
height: 100%;
|
| 340 |
-
|
| 341 |
-
|
| 342 |
}
|
| 343 |
-
|
| 344 |
-
|
| 345 |
-
|
| 346 |
-
height: 100%;
|
| 347 |
-
object-fit: cover;
|
| 348 |
-
object-position: top center;
|
| 349 |
}
|
| 350 |
|
| 351 |
-
/*
|
| 352 |
-
|
| 353 |
-
|
| 354 |
-
|
| 355 |
-
|
| 356 |
-
|
| 357 |
-
padding: 15px;
|
| 358 |
-
|
| 359 |
-
/* 🌟 核心:背景模糊 */
|
| 360 |
-
background: rgba(30, 30, 30, 0.4);
|
| 361 |
-
backdrop-filter: blur(16px);
|
| 362 |
-
-webkit-backdrop-filter: blur(16px);
|
| 363 |
-
}
|
| 364 |
|
| 365 |
-
|
| 366 |
-
|
| 367 |
-
|
| 368 |
-
|
| 369 |
-
justify-content: center;
|
| 370 |
-
height: 100%;
|
| 371 |
-
color: var(--text-muted);
|
| 372 |
-
font-size: 13px;
|
| 373 |
}
|
|
|
|
| 374 |
|
| 375 |
-
|
| 376 |
-
|
| 377 |
-
|
| 378 |
-
|
| 379 |
-
font-
|
|
|
|
| 380 |
}
|
| 381 |
|
| 382 |
-
.
|
| 383 |
-
|
|
|
|
|
|
|
| 384 |
}
|
| 385 |
-
|
| 386 |
-
|
| 387 |
-
|
| 388 |
-
font-weight: bold;
|
| 389 |
-
font-size: 15px;
|
| 390 |
-
line-height: 1.3;
|
| 391 |
-
/* 名字过长时两行省略 */
|
| 392 |
-
display: -webkit-box;
|
| 393 |
-
-webkit-line-clamp: 2;
|
| 394 |
-
-webkit-box-orient: vertical;
|
| 395 |
-
overflow: hidden;
|
| 396 |
-
text-overflow: ellipsis;
|
| 397 |
}
|
|
|
|
| 398 |
|
| 399 |
-
|
| 400 |
-
|
| 401 |
-
|
| 402 |
-
justify-content: space-between;
|
| 403 |
-
font-size: 13px;
|
| 404 |
}
|
|
|
|
|
|
|
| 405 |
|
| 406 |
-
.
|
| 407 |
-
|
| 408 |
-
|
| 409 |
-
|
| 410 |
-
border-radius: 6px;
|
| 411 |
-
border: 1px solid rgba(255, 255, 255, 0.2);
|
| 412 |
-
background: rgba(0, 0, 0, 0.5);
|
| 413 |
-
backdrop-filter: blur(4px);
|
| 414 |
-
color: #fff;
|
| 415 |
-
font-weight: bold;
|
| 416 |
}
|
|
|
|
|
|
|
|
|
|
| 417 |
|
| 418 |
-
.
|
| 419 |
-
|
| 420 |
-
|
|
|
|
|
|
|
|
|
|
| 421 |
}
|
|
|
|
| 422 |
|
| 423 |
-
|
| 424 |
-
|
| 425 |
-
========================================== */
|
| 426 |
-
.middle-panel {
|
| 427 |
-
height: calc(100vh - 40px);
|
| 428 |
-
display: flex;
|
| 429 |
-
flex-direction: column;
|
| 430 |
-
overflow: hidden; /* 🚨 防止父级撑开 */
|
| 431 |
-
}
|
| 432 |
|
| 433 |
-
.
|
| 434 |
-
|
| 435 |
-
|
| 436 |
-
margin-top: 15px;
|
| 437 |
-
padding: 5px; /* 给选中卡片的边框留出一点空间,防止被 overflow 裁剪 */
|
| 438 |
-
border-radius: 8px;
|
| 439 |
-
border: 1px solid var(--border); /* 🌟 给你要的 gallery 边框 */
|
| 440 |
-
background: rgba(0, 0, 0, 0.2);
|
| 441 |
-
}
|
| 442 |
|
| 443 |
-
|
| 444 |
-
.
|
| 445 |
-
|
| 446 |
-
|
| 447 |
-
|
|
|
|
|
|
|
| 448 |
}
|
|
|
|
| 31 |
min-height: 100vh;
|
| 32 |
}
|
| 33 |
|
|
|
|
| 34 |
::-webkit-scrollbar { width: 6px; height: 6px; }
|
| 35 |
::-webkit-scrollbar-track { background: transparent; }
|
| 36 |
::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }
|
| 37 |
::-webkit-scrollbar-thumb:hover { background: #666; }
|
| 38 |
|
| 39 |
/* ==========================================================================
|
| 40 |
+
🏗️ 3. 核心布局 (5:7:5)
|
| 41 |
========================================================================== */
|
| 42 |
.layout {
|
| 43 |
display: grid;
|
| 44 |
+
grid-template-columns: 5fr 7fr 5fr;
|
| 45 |
gap: 20px;
|
| 46 |
width: 100%;
|
| 47 |
+
max-width: 1600px;
|
| 48 |
+
align-items: start;
|
| 49 |
}
|
| 50 |
|
| 51 |
+
/* 通用面板基础 */
|
| 52 |
.panel {
|
| 53 |
background: var(--panel-bg);
|
| 54 |
padding: 20px;
|
|
|
|
| 59 |
overflow: hidden;
|
| 60 |
}
|
| 61 |
|
| 62 |
+
/* 左栏:自适应内部滚动 */
|
| 63 |
.left-panel {
|
| 64 |
max-height: calc(100vh - 40px);
|
| 65 |
overflow-y: auto;
|
| 66 |
}
|
| 67 |
|
| 68 |
+
/* 中栏:固定高度,且内部 flex */
|
|
|
|
| 69 |
.middle-panel {
|
| 70 |
height: calc(100vh - 40px);
|
| 71 |
display: flex;
|
| 72 |
flex-direction: column;
|
| 73 |
+
overflow: hidden;
|
| 74 |
}
|
| 75 |
|
| 76 |
+
/* 右栏:固定高度,排版类似 */
|
| 77 |
+
.right-panel {
|
| 78 |
+
height: calc(100vh - 40px);
|
|
|
|
| 79 |
display: flex;
|
| 80 |
flex-direction: column;
|
| 81 |
+
position: relative;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
}
|
| 83 |
|
| 84 |
+
/* 通用顶部标题栏 (统一格式) */
|
| 85 |
+
.header-row {
|
| 86 |
+
display: flex;
|
| 87 |
+
justify-content: space-between;
|
| 88 |
align-items: center;
|
| 89 |
+
margin-bottom: 15px;
|
| 90 |
}
|
| 91 |
+
.header-row h2 {
|
| 92 |
+
margin: 0;
|
| 93 |
+
color: var(--accent);
|
| 94 |
+
font-size: 18px;
|
| 95 |
+
font-weight: 600;
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
/* 统一样式文本 (Backend / Models / Status) */
|
| 99 |
+
.header-status-text {
|
| 100 |
+
font-size: 13px;
|
| 101 |
+
font-weight: 600;
|
| 102 |
+
color: var(--text-muted);
|
| 103 |
+
display: flex;
|
| 104 |
+
align-items: center;
|
| 105 |
+
gap: 8px;
|
| 106 |
}
|
| 107 |
|
| 108 |
/* ==========================================================================
|
| 109 |
+
🌟 HUD 大图与信息条
|
| 110 |
========================================================================== */
|
| 111 |
+
/* 大图占位 (防止跳动) */
|
| 112 |
+
.preview-wrapper {
|
| 113 |
+
display: flex;
|
| 114 |
+
justify-content: center;
|
| 115 |
+
align-items: center;
|
| 116 |
+
width: 100%;
|
| 117 |
+
min-height: 320px;
|
| 118 |
+
margin-bottom: 15px;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
}
|
| 120 |
+
.selected-big-img {
|
| 121 |
+
width: 100%;
|
| 122 |
+
max-width: 240px;
|
| 123 |
+
aspect-ratio: 3 / 4;
|
| 124 |
+
object-fit: cover;
|
| 125 |
+
object-position: top center;
|
| 126 |
+
border-radius: 12px;
|
| 127 |
+
box-shadow: 0 4px 12px rgba(0,0,0,0.5);
|
| 128 |
+
display: none;
|
|
|
|
| 129 |
}
|
| 130 |
|
| 131 |
+
/* 选中信息栏 (与左侧同风格) */
|
| 132 |
+
.selected-hud-bar {
|
| 133 |
+
display: flex;
|
| 134 |
+
justify-content: space-between;
|
| 135 |
+
align-items: center;
|
| 136 |
+
background: var(--input-bg);
|
| 137 |
+
padding: 12px 16px;
|
| 138 |
+
border-radius: 8px;
|
| 139 |
+
border: 1px solid var(--border);
|
| 140 |
+
width: 100%;
|
| 141 |
+
margin-top: 10px;
|
| 142 |
+
margin-bottom: 20px;
|
| 143 |
+
font-size: 14px;
|
| 144 |
}
|
| 145 |
+
.hud-left {
|
| 146 |
+
display: flex;
|
| 147 |
+
align-items: center;
|
| 148 |
+
gap: 10px;
|
| 149 |
}
|
| 150 |
+
.hud-checkbox {
|
| 151 |
+
width: 18px;
|
| 152 |
+
height: 18px;
|
| 153 |
+
accent-color: var(--accent);
|
| 154 |
+
cursor: pointer;
|
|
|
|
| 155 |
}
|
| 156 |
+
.hud-label {
|
| 157 |
+
color: var(--text-muted);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
}
|
| 159 |
+
.hud-name {
|
| 160 |
+
color: var(--accent);
|
| 161 |
+
font-weight: bold;
|
| 162 |
+
max-width: 200px;
|
| 163 |
+
white-space: nowrap;
|
| 164 |
+
overflow: hidden;
|
| 165 |
+
text-overflow: ellipsis;
|
| 166 |
}
|
| 167 |
+
.hud-strength-group {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 168 |
display: flex;
|
| 169 |
+
align-items: center;
|
| 170 |
+
gap: 10px;
|
| 171 |
}
|
| 172 |
+
.hud-strength-group input {
|
| 173 |
+
width: 60px;
|
| 174 |
+
padding: 6px;
|
| 175 |
+
text-align: center;
|
| 176 |
+
border-radius: 6px;
|
| 177 |
+
background: var(--bg-color);
|
|
|
|
| 178 |
border: 1px solid var(--border);
|
| 179 |
color: var(--text-main);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 180 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 181 |
|
| 182 |
/* ==========================================================================
|
| 183 |
+
🖼️ 图库网格与滚动区域
|
| 184 |
========================================================================== */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 185 |
.gallery-scroll-container {
|
| 186 |
+
flex: 1;
|
| 187 |
+
overflow-y: auto;
|
| 188 |
+
border: 1px solid var(--border);
|
| 189 |
+
border-radius: 8px;
|
| 190 |
+
padding: 12px;
|
| 191 |
+
background: rgba(0, 0, 0, 0.2);
|
| 192 |
}
|
| 193 |
|
| 194 |
+
/* 3 列网格,增加 gap */
|
| 195 |
.gallery-grid {
|
| 196 |
display: grid;
|
| 197 |
+
grid-template-columns: repeat(3, 1fr);
|
| 198 |
+
gap: 16px;
|
| 199 |
}
|
| 200 |
|
| 201 |
+
/* 卡片样式 */
|
| 202 |
.lora-card {
|
| 203 |
position: relative;
|
| 204 |
+
aspect-ratio: 3 / 4;
|
| 205 |
border-radius: 8px;
|
| 206 |
overflow: hidden;
|
| 207 |
cursor: pointer;
|
| 208 |
+
border: 2px solid transparent;
|
|
|
|
| 209 |
background-color: var(--input-bg);
|
| 210 |
+
transition: border-color 0.2s;
|
| 211 |
}
|
|
|
|
|
|
|
| 212 |
.lora-card:hover {
|
| 213 |
+
border-color: rgba(255, 127, 80, 0.5);
|
| 214 |
}
|
|
|
|
|
|
|
| 215 |
.lora-card.selected {
|
| 216 |
border-color: var(--accent);
|
| 217 |
+
box-shadow: 0 0 12px rgba(255, 127, 80, 0.3);
|
| 218 |
}
|
|
|
|
|
|
|
| 219 |
.lora-card img {
|
| 220 |
+
width: 100%; height: 100%;
|
|
|
|
| 221 |
object-fit: cover;
|
|
|
|
| 222 |
transition: transform 0.3s ease;
|
| 223 |
}
|
|
|
|
|
|
|
| 224 |
.lora-card:hover img {
|
| 225 |
transform: scale(1.05);
|
| 226 |
}
|
| 227 |
|
|
|
|
| 228 |
.card-info {
|
| 229 |
position: absolute;
|
| 230 |
+
bottom: 0; left: 0; right: 0;
|
| 231 |
+
padding: 30px 10px 10px 10px;
|
|
|
|
|
|
|
| 232 |
background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
|
| 233 |
+
pointer-events: none;
|
|
|
|
|
|
|
| 234 |
}
|
|
|
|
| 235 |
.card-title {
|
| 236 |
color: #fff;
|
| 237 |
font-size: 13px;
|
| 238 |
font-weight: 600;
|
| 239 |
line-height: 1.3;
|
|
|
|
| 240 |
display: -webkit-box;
|
| 241 |
-webkit-line-clamp: 2;
|
| 242 |
-webkit-box-orient: vertical;
|
|
|
|
| 245 |
text-shadow: 0 1px 2px rgba(0,0,0,0.8);
|
| 246 |
}
|
| 247 |
|
| 248 |
+
/* ==========================================================================
|
| 249 |
+
⚙️ 右侧 Output 专属区域
|
| 250 |
+
========================================================================== */
|
| 251 |
+
.output-container {
|
| 252 |
+
flex: 1;
|
| 253 |
+
display: flex;
|
| 254 |
+
justify-content: center;
|
| 255 |
+
align-items: center;
|
| 256 |
+
border: 1px dashed var(--border); /* 虚线边框 */
|
| 257 |
+
border-radius: 8px;
|
| 258 |
+
margin-top: 10px;
|
| 259 |
+
background: var(--bg-color);
|
| 260 |
+
position: relative;
|
| 261 |
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 262 |
}
|
| 263 |
+
#result-image {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 264 |
width: 100%;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 265 |
height: 100%;
|
| 266 |
+
object-fit: contain;
|
| 267 |
+
display: none;
|
| 268 |
}
|
| 269 |
+
.placeholder-text {
|
| 270 |
+
color: var(--text-muted);
|
| 271 |
+
font-size: 14px;
|
|
|
|
|
|
|
|
|
|
| 272 |
}
|
| 273 |
|
| 274 |
+
/* ==========================================================================
|
| 275 |
+
其他表单组件 (保留原有)
|
| 276 |
+
========================================================================== */
|
| 277 |
+
label { margin-bottom: 6px; font-weight: 600; font-size: 13px; color: var(--text-muted); }
|
| 278 |
+
.form-group { margin-bottom: 15px; display: flex; flex-direction: column; }
|
| 279 |
+
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 280 |
|
| 281 |
+
input, textarea, select {
|
| 282 |
+
width: 100%; padding: 10px; border-radius: 6px; border: 1px solid var(--border);
|
| 283 |
+
background: var(--input-bg); color: var(--text-main); font-size: 14px;
|
| 284 |
+
transition: border-color 0.2s;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 285 |
}
|
| 286 |
+
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
|
| 287 |
|
| 288 |
+
textarea {
|
| 289 |
+
resize: vertical;
|
| 290 |
+
min-height: 80px;
|
| 291 |
+
max-height: 400px;
|
| 292 |
+
font-family: inherit;
|
| 293 |
+
line-height: 1.5;
|
| 294 |
}
|
| 295 |
|
| 296 |
+
.slider-group { display: flex; align-items: center; gap: 10px; }
|
| 297 |
+
.slider-group input[type="range"] {
|
| 298 |
+
flex: 1; padding: 0; height: 6px; background: var(--input-bg); border-radius: 3px;
|
| 299 |
+
-webkit-appearance: none; border: none;
|
| 300 |
}
|
| 301 |
+
.slider-group input[type="range"]::-webkit-slider-thumb {
|
| 302 |
+
-webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
|
| 303 |
+
background: var(--accent); cursor: pointer;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 304 |
}
|
| 305 |
+
.slider-group input[type="number"] { width: 70px; padding: 8px; text-align: center; }
|
| 306 |
|
| 307 |
+
#generate-btn {
|
| 308 |
+
background: var(--accent); color: white; border: none; cursor: pointer; font-weight: bold;
|
| 309 |
+
padding: 12px; border-radius: 6px; font-size: 16px; transition: 0.2s; margin-top: 10px;
|
|
|
|
|
|
|
| 310 |
}
|
| 311 |
+
#generate-btn:hover:not(:disabled) { background: #ff6633; }
|
| 312 |
+
#generate-btn:disabled { pointer-events: none; background-color: #555; color: #888; cursor: not-allowed; opacity: 0.6; }
|
| 313 |
|
| 314 |
+
.lora-row {
|
| 315 |
+
display: flex; align-items: center; justify-content: space-between;
|
| 316 |
+
background: var(--input-bg); padding: 8px 12px; border-radius: 6px;
|
| 317 |
+
border: 1px solid var(--border); margin-bottom: 8px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 318 |
}
|
| 319 |
+
.lora-row label { margin: 0; display: flex; align-items: center; gap: 8px; cursor: pointer; color: var(--text-main); font-size: 13px; }
|
| 320 |
+
.lora-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
|
| 321 |
+
.lora-row .strength-box { width: 70px; padding: 6px; text-align: center; }
|
| 322 |
|
| 323 |
+
.seed-group { display: flex; gap: 6px; width: 100%; }
|
| 324 |
+
.seed-group input { flex: 1; }
|
| 325 |
+
.seed-group button {
|
| 326 |
+
width: 40px; height: 38px; padding: 0; margin: 0;
|
| 327 |
+
background: var(--input-bg); border: 1px solid var(--border); color: var(--text-main);
|
| 328 |
+
border-radius: 6px; font-size: 16px; cursor: pointer; transition: all 0.2s;
|
| 329 |
}
|
| 330 |
+
.seed-group button:hover { background: var(--border); border-color: var(--accent); }
|
| 331 |
|
| 332 |
+
.status-indicator { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
|
| 333 |
+
.status-dot { width: 10px; height: 10px; border-radius: 50%; transition: background-color 0.3s ease; box-shadow: 0 0 2px rgba(0,0,0,0.5); }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 334 |
|
| 335 |
+
@keyframes breathe-green { 0% { opacity: 0.6; box-shadow: 0 0 4px rgba(0, 200, 81, 0.2); } 50% { opacity: 0.9; box-shadow: 0 0 10px rgba(0, 200, 81, 0.8); } 100% { opacity: 0.6; box-shadow: 0 0 4px rgba(0, 200, 81, 0.2); } }
|
| 336 |
+
@keyframes breathe-yellow { 0% { opacity: 0.6; box-shadow: 0 0 4px rgba(255, 187, 51, 0.2); } 50% { opacity: 0.9; box-shadow: 0 0 10px rgba(255, 187, 51, 0.8); } 100% { opacity: 0.6; box-shadow: 0 0 4px rgba(255, 187, 51, 0.2); } }
|
| 337 |
+
@keyframes breathe-red { 0% { opacity: 0.6; box-shadow: 0 0 4px rgba(255, 68, 68, 0.2); } 50% { opacity: 0.9; box-shadow: 0 0 10px rgba(255, 68, 68, 0.8); } 100% { opacity: 0.6; box-shadow: 0 0 4px rgba(255, 68, 68, 0.2); } }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 338 |
|
| 339 |
+
.status-dot.online { background-color: var(--online-green); animation: breathe-green 2.5s infinite ease-in-out; }
|
| 340 |
+
.status-dot.loading { background-color: var(--loading-yellow); animation: breathe-yellow 1.5s infinite ease-in-out; }
|
| 341 |
+
.status-dot.offline { background-color: var(--offline-red); animation: breathe-red 1s infinite ease-in-out; }
|
| 342 |
+
|
| 343 |
+
@media (max-width: 1024px) {
|
| 344 |
+
.layout { grid-template-columns: 1fr; }
|
| 345 |
+
.middle-panel, .right-panel { height: auto; min-height: 400px; }
|
| 346 |
}
|