/* Import Modal Styles */ .import-step { margin: var(--space-2) 0; transition: none !important; /* Disable any transitions that might affect display */ } /* File Input Styles */ .file-input-wrapper { position: relative; margin-bottom: var(--space-1); } .file-input-wrapper input[type="file"] { position: absolute; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; } .file-input-button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; background: var(--lora-accent); color: var(--lora-text); border-radius: var(--border-radius-xs); font-weight: 500; cursor: pointer; transition: background-color 0.2s; } .file-input-button:hover { background: oklch(from var(--lora-accent) l c h / 0.9); } .file-input-wrapper:hover .file-input-button { background: oklch(from var(--lora-accent) l c h / 0.9); } /* Recipe Details Layout */ .recipe-details-layout { display: grid; grid-template-columns: 200px 1fr; gap: var(--space-3); margin-bottom: var(--space-3); } .recipe-image-container { width: 100%; height: 200px; border-radius: var(--border-radius-sm); overflow: hidden; background: var(--lora-surface); border: 1px solid var(--border-color); } .recipe-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; } .recipe-image img { max-width: 100%; max-height: 100%; object-fit: contain; } .recipe-form-container { display: flex; flex-direction: column; gap: var(--space-2); } /* Tags Input Styles */ .tag-input-container { display: flex; gap: 8px; margin-bottom: var(--space-1); } .tag-input-container input { flex: 1; padding: 8px; border: 1px solid var(--border-color); border-radius: var(--border-radius-xs); background: var(--bg-color); color: var(--text-color); } .tags-container { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-1); min-height: 32px; } .recipe-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: var(--lora-surface); border: 1px solid var(--border-color); border-radius: var(--border-radius-xs); font-size: 0.9em; } .recipe-tag i { cursor: pointer; opacity: 0.7; transition: opacity 0.2s; } .recipe-tag i:hover { opacity: 1; color: var(--lora-error); } .empty-tags { color: var(--text-color); opacity: 0.6; font-size: 0.9em; font-style: italic; } /* LoRAs List Styles */ .loras-list { max-height: 300px; overflow-y: auto; margin: var(--space-2) 0; display: flex; flex-direction: column; gap: 12px; padding: 1px; } .lora-item { display: flex; gap: var(--space-2); padding: var(--space-2); border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); background: var(--bg-color); margin: 1px; } .lora-item.exists-locally { background: oklch(var(--lora-accent) / 0.05); border-left: 4px solid var(--lora-accent); } .lora-item.missing-locally { border-left: 4px solid var(--lora-error); } .lora-thumbnail { width: 80px; height: 80px; flex-shrink: 0; border-radius: var(--border-radius-xs); overflow: hidden; background: var(--bg-color); } .lora-thumbnail img { width: 100%; height: 100%; object-fit: cover; } .lora-content { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; } .lora-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); } .lora-content h3 { margin: 0; font-size: 1.1em; color: var(--text-color); flex: 1; } .lora-info { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.9em; } .lora-info .base-model { background: oklch(var(--lora-accent) / 0.1); color: var(--lora-accent); padding: 2px 8px; border-radius: var(--border-radius-xs); } .lora-version { font-size: 0.9em; color: var(--text-color); opacity: 0.7; } .weight-badge { background: var(--lora-surface); padding: 2px 8px; border-radius: var(--border-radius-xs); font-size: 0.85em; } /* Missing LoRAs List */ .missing-loras-list { max-height: 200px; overflow-y: auto; margin: var(--space-2) 0; display: flex; flex-direction: column; gap: 8px; padding: var(--space-1); border: 1px solid var(--border-color); border-radius: var(--border-radius-sm); background: var(--lora-surface); } .missing-lora-item { display: flex; gap: var(--space-2); padding: var(--space-1); border-bottom: 1px solid var(--border-color); } .missing-lora-item:last-child { border-bottom: none; } .missing-badge { display: inline-flex; align-items: center; background: var(--lora-error); color: white; padding: 4px 8px; border-radius: var(--border-radius-xs); font-size: 0.8em; font-weight: 500; white-space: nowrap; flex-shrink: 0; } .missing-badge i { margin-right: 4px; font-size: 0.9em; } .lora-count-info { font-size: 0.85em; opacity: 0.8; font-weight: normal; margin-left: 8px; } /* Location Selection Styles */ .location-selection { margin: var(--space-2) 0; padding: var(--space-2); background: var(--lora-surface); border-radius: var(--border-radius-sm); } /* Reuse folder browser and path preview styles from download-modal.css */ .folder-browser { border: 1px solid var(--border-color); border-radius: var(--border-radius-xs); padding: var(--space-1); max-height: 200px; overflow-y: auto; } .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 { 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); } /* Input Group Styles */ .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; } /* Dark theme adjustments */ [data-theme="dark"] .lora-item { background: var(--lora-surface); } [data-theme="dark"] .recipe-tag { background: var(--card-bg); } /* Responsive adjustments */ @media (max-width: 768px) { .recipe-details-layout { grid-template-columns: 1fr; } .recipe-image-container { height: 150px; } } /* Size badge for LoRA items */ .size-badge { background: var(--lora-surface); padding: 2px 8px; border-radius: var(--border-radius-xs); font-size: 0.85em; color: var(--text-color); opacity: 0.8; } /* Missing LoRAs summary section */ .missing-loras-summary { margin-bottom: var(--space-3); padding: var(--space-2); background: var(--bg-color); border-radius: var(--border-radius-sm); border: 1px solid var(--lora-error); } .missing-loras-summary h3 { margin-top: 0; margin-bottom: var(--space-2); font-size: 1.1em; color: var(--text-color); } .total-size-info { margin-bottom: var(--space-2); font-size: 0.9em; color: var(--text-color); } .missing-lora-item { display: flex; justify-content: space-between; align-items: center; padding: 8px; border-bottom: 1px solid var(--border-color); } .missing-lora-item:last-child { border-bottom: none; } .missing-lora-name { font-weight: 500; flex: 1; } .missing-lora-size { font-size: 0.9em; color: var(--text-color); opacity: 0.8; }