/* Lora Modal Header */ .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-3); padding-bottom: var(--space-2); border-bottom: 1px solid var(--lora-border); } /* Info Grid */ .info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); margin-bottom: var(--space-3); } .info-item { padding: var(--space-2); background: rgba(0, 0, 0, 0.03); border: 1px solid rgba(0, 0, 0, 0.1); border-radius: var(--border-radius-sm); } /* 调整深色主题下的样式 */ [data-theme="dark"] .info-item { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--lora-border); } .info-item.full-width { grid-column: 1 / -1; } .info-item label { display: block; font-size: 0.85em; color: var(--text-color); opacity: 0.8; margin-bottom: 4px; } .info-item span { color: var(--text-color); word-break: break-word; } .info-item.usage-tips, .info-item.notes { grid-column: 1 / -1 !important; /* Make notes section full width */ } /* Add specific styles for notes content */ .info-item.notes .editable-field [contenteditable] { min-height: 60px; /* Increase height for multiple lines */ max-height: 150px; /* Limit maximum height */ overflow-y: auto; /* Add scrolling for long content */ white-space: pre-wrap; /* Preserve line breaks */ line-height: 1.5; /* Improve readability */ padding: 8px 12px; /* Slightly increase padding */ } .file-path { font-family: monospace; font-size: 0.9em; } .description-text { line-height: 1.5; max-height: 100px; overflow-y: auto; } /* Showcase Section */ .showcase-section { position: relative; margin-top: var(--space-4); } .carousel { transition: max-height 0.3s ease-in-out; overflow: hidden; } .carousel.collapsed { max-height: 0; } .carousel-container { display: flex; flex-direction: column; gap: var(--space-2); } .media-wrapper { position: relative; width: 100%; background: var(--lora-surface); margin-bottom: var(--space-2); } .media-wrapper:last-child { margin-bottom: 0; } .media-wrapper img, .media-wrapper video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; } /* Scroll Indicator */ .scroll-indicator { cursor: pointer; padding: var(--space-2); background: var(--lora-surface); border: 1px solid var(--lora-border); border-radius: var(--border-radius-sm); display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: var(--space-2); transition: background-color 0.2s, transform 0.2s; } .scroll-indicator:hover { background: oklch(var(--lora-accent) / 0.1); transform: translateY(-1px); } .scroll-indicator span { font-size: 0.9em; color: var(--text-color); } .lazy { opacity: 0; transition: opacity 0.3s; } .lazy[src] { opacity: 1; } /* Update Trigger Words styles */ .info-item.trigger-words { padding: var(--space-2); background: rgba(0, 0, 0, 0.03); border: 1px solid rgba(0, 0, 0, 0.1); border-radius: var(--border-radius-sm); } /* 调整 trigger words 样式 */ [data-theme="dark"] .info-item.trigger-words { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--lora-border); } .trigger-words-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; margin-top: var(--space-1); } /* Update Trigger Words styles */ .trigger-word-tag { display: inline-flex; align-items: center; background: var(--bg-color); border: 1px solid var(--border-color); border-radius: var(--border-radius-xs); padding: 4px 8px; cursor: pointer; transition: all 0.2s ease; gap: 6px; } /* Update trigger word content color to use theme accent */ .trigger-word-content { color: var(--lora-accent) !important; /* Override general span color */ font-size: 0.85em; line-height: 1.4; word-break: break-word; } /* Keep the hover effect using accent color */ .trigger-word-tag:hover { background: oklch(var(--lora-accent) / 0.1); border-color: var(--lora-accent); } .trigger-word-copy { display: flex; align-items: center; color: var(--text-color); opacity: 0.5; flex-shrink: 0; transition: opacity 0.2s; } /* Editable Fields */ .editable-field { position: relative; display: flex; gap: 8px; align-items: flex-start; } .editable-field [contenteditable] { flex: 1; min-height: 24px; padding: 4px 8px; background: var(--bg-color); border: 1px solid var(--border-color); border-radius: var(--border-radius-xs); font-size: 0.9em; line-height: 1.4; color: var(--text-color); transition: border-color 0.2s; word-break: break-word; } .editable-field [contenteditable]:focus { outline: none; border-color: var(--lora-accent); background: var(--bg-color); } .editable-field [contenteditable]:empty::before { content: attr(data-placeholder); color: var(--text-color); opacity: 0.5; } .save-btn { padding: 4px 8px; background: var(--lora-accent); border: none; border-radius: var(--border-radius-xs); color: white; cursor: pointer; transition: opacity 0.2s; display: flex; align-items: center; justify-content: center; } .save-btn:hover { opacity: 0.9; } .save-btn i { font-size: 0.9em; } @media (max-width: 640px) { .info-item.usage-tips, .info-item.notes { grid-column: 1 / -1; } } /* 修改 back-to-top 按钮样式,使其固定在 modal 内部 */ .modal-content .back-to-top { position: sticky; /* 改用 sticky 定位 */ float: right; /* 使用 float 确保按钮在右侧 */ bottom: 20px; /* 距离底部的距离 */ margin-right: 20px; /* 右侧间距 */ margin-top: -56px; /* 负边距确保不占用额外空间 */ width: 36px; height: 36px; border-radius: 50%; background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-color); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all 0.3s ease; z-index: 10; } .modal-content .back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); } .modal-content .back-to-top:hover { background: var(--lora-accent); color: white; transform: translateY(-2px); } /* Update Preset Controls styles */ .preset-controls { display: flex; gap: var(--space-2); margin-bottom: var(--space-2); } .preset-controls select, .preset-controls input { padding: var(--space-1); background: var(--bg-color); border: 1px solid var(--lora-border); border-radius: var(--border-radius-xs); color: var(--text-color); } .preset-tags { display: flex; flex-wrap: wrap; gap: var(--space-1); } .preset-tag { display: flex; align-items: center; background: var(--lora-surface); border: 1px solid var(--lora-border); border-radius: var(--border-radius-xs); padding: calc(var(--space-1) * 0.5) var(--space-1); gap: var(--space-1); transition: all 0.2s ease; } .preset-tag span { color: var(--lora-accent); font-size: 0.9em; } .preset-tag i { color: var(--text-color); opacity: 0.5; cursor: pointer; transition: all 0.2s ease; } .preset-tag:hover { background: oklch(var(--lora-accent) / 0.1); border-color: var(--lora-accent); } .preset-tag i:hover { color: var(--lora-error); opacity: 1; } .add-preset-btn { padding: calc(var(--space-1) * 0.5) var(--space-2); background: var(--lora-accent); color: var(--lora-text); border: none; border-radius: var(--border-radius-xs); cursor: pointer; transition: opacity 0.2s; } .add-preset-btn:hover { opacity: 0.9; } /* File name copy styles */ .file-name-wrapper { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px; border-radius: var(--border-radius-xs); transition: background-color 0.2s; } .file-name-wrapper:hover { background: oklch(var(--lora-accent) / 0.1); } .file-name-wrapper i { color: var(--text-color); opacity: 0.5; transition: opacity 0.2s; } .file-name-wrapper:hover i { opacity: 1; color: var(--lora-accent); } /* Base Model and Size combined styles */ .info-item.base-size { display: flex; gap: var(--space-3); } .base-wrapper { flex: 2; /* 分配更多空间给base model */ } .size-wrapper { flex: 1; border-left: 1px solid var(--lora-border); padding-left: var(--space-3); } .base-wrapper label, .size-wrapper label { display: block; margin-bottom: 4px; } .size-wrapper span { font-family: monospace; font-size: 0.9em; opacity: 0.9; } /* Model name field styles - complete replacement */ .model-name-field { display: flex; align-items: center; gap: var(--space-2); width: calc(100% - 40px); /* Reduce width to avoid overlap with close button */ position: relative; /* Add position relative for absolute positioning of save button */ } .model-name-field h2 { margin: 0; padding: var(--space-1); border-radius: var(--border-radius-xs); transition: background-color 0.2s; flex: 1; font-size: 1.5em !important; /* Increased and forced size */ font-weight: 600; /* Make it bolder */ min-height: 1.5em; box-sizing: border-box; border: 1px solid transparent; line-height: 1.2; color: var(--text-color); /* Ensure correct color */ } .model-name-field h2:hover { background: oklch(var(--lora-accent) / 0.1); cursor: text; } .model-name-field h2:focus { outline: none; background: var(--bg-color); border: 1px solid var(--lora-accent); } .model-name-field .save-btn { position: absolute; right: 10px; /* Position closer to the end of the field */ top: 50%; transform: translateY(-50%); opacity: 0; transition: opacity 0.2s; } .model-name-field:hover .save-btn, .model-name-field h2:focus ~ .save-btn { opacity: 1; } /* Ensure close button is accessible */ .modal-content .close { z-index: 10; /* Ensure close button is above other elements */ }