/* 模态窗口样式 */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: var(--z-modal); overflow-y: auto; /* 允许模态窗口内容滚动 */ -webkit-overflow-scrolling: touch; /* 为iOS设备提供平滑滚动 */ } /* 当模态窗口打开时,禁止body滚动 */ body.modal-open { position: fixed; width: 100%; padding-right: var(--scrollbar-width, 0px); /* 补偿滚动条消失导致的页面偏移 */ } .modal-content { position: relative; max-width: 800px; margin: 2rem auto; background: var(--lora-surface); border-radius: var(--border-radius-base); padding: var(--space-3); border: 1px solid var(--lora-border); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); transform: translateZ(0); /* 创建新的堆叠上下文 */ } /* Delete Modal specific styles */ .delete-modal-content { max-width: 500px; text-align: center; } .delete-message { color: var(--text-color); margin: var(--space-2) 0; } .delete-model-info { background: var(--lora-surface); border: 1px solid var(--lora-border); border-radius: var(--border-radius-sm); padding: var(--space-2); margin: var(--space-2) 0; color: var(--text-color); word-break: break-all; } /* Update delete modal styles */ .delete-modal { display: none; /* Set initial display to none */ position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: var(--z-overlay); } /* Add new style for when modal is shown */ .delete-modal.show { display: flex; align-items: center; justify-content: center; } .delete-modal-content { max-width: 500px; width: 90%; text-align: center; margin: 0 auto; position: relative; animation: modalFadeIn 0.2s ease-out; } .delete-model-info { /* Update info display styling */ background: var(--lora-surface); border: 1px solid var(--lora-border); border-radius: var(--border-radius-sm); padding: var(--space-2); margin: var(--space-2) 0; color: var(--text-color); word-break: break-all; text-align: left; line-height: 1.5; } @keyframes modalFadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } } .modal-actions { display: flex; gap: var(--space-2); justify-content: center; margin-top: var(--space-3); } .cancel-btn, .delete-btn { padding: 8px var(--space-2); border-radius: 6px; border: none; cursor: pointer; font-weight: 500; min-width: 100px; } .cancel-btn { background: var(--lora-surface); border: 1px solid var(--lora-border); color: var(--text-color); } .delete-btn { background: var(--lora-error); color: white; } .cancel-btn:hover { background: var(--lora-border); } .delete-btn:hover { opacity: 0.9; } .modal-content h2 { color: var(--text-color); margin-bottom: var(--space-2); font-size: 1.5em; } /* Download Modal Styles */ .download-step { margin: var(--space-2) 0; } .input-group { margin-bottom: var(--space-2); } .input-group label { display: block; margin-bottom: 8px; color: var(--text-color); } .input-group input, .input-group select { width: 100%; padding: 8px; border: 1px solid var(--border-color); border-radius: var(--border-radius-xs); background: var(--bg-color); color: var(--text-color); } .error-message { color: var(--lora-error); font-size: 0.9em; margin-top: 4px; } .version-list { max-height: 400px; overflow-y: auto; margin: var(--space-2) 0; display: flex; flex-direction: column; gap: 12px; padding: 1px; } .version-item { display: flex; gap: var(--space-2); padding: var(--space-2); border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); cursor: pointer; transition: all 0.2s ease; background: var(--bg-color); margin: 1px; position: relative; } .version-item:hover { border-color: var(--lora-accent); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); z-index: 1; } .version-item.selected { border-color: var(--lora-accent); background: oklch(var(--lora-accent) / 0.1); } .close { position: absolute; top: var(--space-2); right: var(--space-2); background: transparent; border: none; color: var(--text-color); font-size: 1.5em; cursor: pointer; opacity: 0.7; transition: opacity 0.2s; } .close:hover { opacity: 1; } .version-list { max-height: 400px; overflow-y: auto; margin: var(--space-2) 0; display: flex; flex-direction: column; gap: 12px; padding: 1px; /* Add padding to prevent border clipping */ } .version-item { display: flex; gap: var(--space-2); padding: var(--space-2); border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); cursor: pointer; transition: all 0.2s ease; background: var(--bg-color); /* Add background color */ margin: 1px; /* Add margin to ensure hover effect visibility */ position: relative; /* Add position context */ } .version-item:hover { border-color: var(--lora-accent); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Replace transform with shadow */ z-index: 1; /* Ensure hover state appears above other items */ } .version-item.selected { border-color: var(--lora-accent); background: oklch(var(--lora-accent) / 0.1); } .version-thumbnail { width: 80px; height: 80px; flex-shrink: 0; border-radius: var(--border-radius-xs); overflow: hidden; background: var(--bg-color); } .version-thumbnail img { width: 100%; height: 100%; object-fit: cover; } .version-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; } .version-content h3 { margin: 0; font-size: 1.1em; color: var(--text-color); } .version-info { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.9em; color: var(--text-color); opacity: 0.8; } .version-info .base-model { background: oklch(var(--lora-accent) / 0.1); color: var(--lora-accent); padding: 2px 8px; border-radius: var(--border-radius-xs); } .version-meta { display: flex; gap: 12px; font-size: 0.85em; color: var(--text-color); opacity: 0.7; } .version-meta span { display: flex; align-items: center; gap: 4px; } .folder-browser { border: 1px solid var(--border-color); border-radius: var(--border-radius-xs); padding: var(--space-1); max-height: 200px; overflow-y: auto; } /* Settings styles */ .settings-toggle { 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; transition: all 0.2s ease; } .settings-toggle:hover { background: var(--lora-accent); color: white; transform: translateY(-2px); } .settings-modal { max-width: 500px; } /* Settings Links */ .settings-links { margin-top: var(--space-3); padding-top: var(--space-2); border-top: 1px solid var(--lora-border); display: flex; gap: var(--space-2); justify-content: center; } .settings-link { 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; transition: all 0.2s ease; text-decoration: none; position: relative; } .settings-link:hover { background: var(--lora-accent); color: white; transform: translateY(-2px); } .settings-link i { font-size: 1.1em; } /* Tooltip styles */ .settings-link::after { content: attr(title); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: rgba(0, 0, 0, 0.8); color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.8em; white-space: nowrap; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; pointer-events: none; } .settings-link:hover::after { opacity: 1; visibility: visible; } /* Responsive adjustment */ @media (max-width: 480px) { .settings-links { flex-wrap: wrap; } } .api-key-input { position: relative; display: flex; align-items: center; } .api-key-input input { padding-right: 40px; } .api-key-input .toggle-visibility { position: absolute; right: 8px; background: none; border: none; color: var(--text-color); opacity: 0.6; cursor: pointer; padding: 4px 8px; } .api-key-input .toggle-visibility:hover { opacity: 1; } .input-help { font-size: 0.85em; color: var(--text-color); opacity: 0.8; margin-top: 4px; } .folder-item { padding: 8px; cursor: pointer; border-radius: var(--border-radius-xs); transition: background-color 0.2s; } .folder-item:hover { background: var(--lora-surface); } .folder-item.selected { background: oklch(var(--lora-accent) / 0.1); border: 1px solid var(--lora-accent); } /* Path Preview Styles */ .path-preview { margin-bottom: var(--space-3); padding: var(--space-2); background: var(--bg-color); border-radius: var(--border-radius-sm); border: 1px dashed var(--border-color); } .path-preview label { display: block; margin-bottom: 8px; color: var(--text-color); font-size: 0.9em; opacity: 0.8; } .path-display { padding: var(--space-1); color: var(--text-color); font-family: monospace; font-size: 0.9em; line-height: 1.4; white-space: pre-wrap; word-break: break-all; opacity: 0.85; background: var(--lora-surface); border-radius: var(--border-radius-xs); } .path-text { color: var(--text-color); } .path-preview { margin-top: var(--space-2); padding: var(--space-2); background: var(--lora-surface); border: 1px solid var(--lora-border); border-radius: var(--border-radius-sm); } .path-preview label { display: block; margin-bottom: 8px; color: var(--text-color); font-size: 0.9em; } .path-display { display: flex; align-items: center; gap: 8px; padding: var(--space-1); background: var(--bg-color); border: 1px solid var(--border-color); border-radius: var(--border-radius-xs); color: var(--text-color); font-family: monospace; font-size: 0.9em; overflow-x: auto; white-space: nowrap; } .path-display i { color: var(--lora-accent); opacity: 0.8; } .path-text { color: var(--text-color); opacity: 0.9; } /* 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: var(--lora-surface); border: 1px solid var(--lora-border); border-radius: var(--border-radius-sm); } .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.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 { display: flex; flex-direction: column; /* 改为垂直布局 */ gap: var(--space-3); overflow-y: auto; /* 垂直滚动 */ } .carousel img, .carousel video { width: 100%; height: auto; max-height: 70vh; /* 限制单张图片最大高度 */ object-fit: contain; border-radius: var(--border-radius-base); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } /* Scroll Indicator */ .scroll-indicator { position: sticky; top: 0; left: 0; right: 0; text-align: center; padding: var(--space-2); background: linear-gradient(to bottom, var(--lora-surface) 0%, transparent 100%); opacity: 0.8; transition: opacity 0.3s; pointer-events: none; z-index: 1; /* 确保滚动提示在图片上层 */ } /* Remove horizontal scrolling styles */ .carousel { scroll-snap-type: none; grid-auto-flow: initial; overflow-x: initial; } /* Update Trigger Words styles */ .info-item.trigger-words { padding: var(--space-2); background: var(--lora-surface); border: 1px solid var(--lora-border); border-radius: var(--border-radius-sm); } .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; } }