254 lines
5.0 KiB
CSS
254 lines
5.0 KiB
CSS
/* 模态窗口样式 */
|
|
.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; /* 允许模态窗口内容滚动 */
|
|
}
|
|
|
|
/* 当模态窗口打开时,禁止body滚动 */
|
|
body.modal-open {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.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);
|
|
}
|
|
|
|
/* 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;
|
|
}
|
|
|
|
.carousel {
|
|
display: grid;
|
|
grid-auto-flow: column;
|
|
gap: 1rem;
|
|
overflow-x: auto;
|
|
scroll-snap-type: x mandatory;
|
|
}
|
|
|
|
.carousel img {
|
|
scroll-snap-align: start;
|
|
max-height: 60vh;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.carousel video {
|
|
scroll-snap-align: start;
|
|
max-height: 60vh;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.modal-content h2 {
|
|
color: var(--text-color);
|
|
margin-bottom: var(--space-2);
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.description {
|
|
color: var(--text-color);
|
|
margin: var(--space-2) 0;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.trigger-word-content {
|
|
flex: 1;
|
|
word-break: break-word;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.trigger-word-copy {
|
|
opacity: 0.5;
|
|
color: var(--text-color);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Updated Trigger Words Section */
|
|
.trigger-words-container {
|
|
display: grid;
|
|
grid-template-columns: 200px 1fr;
|
|
align-items: flex-start;
|
|
gap: var(--space-2);
|
|
margin: var(--space-2) 0;
|
|
padding: var(--space-2);
|
|
background: var(--lora-surface);
|
|
border: 1px solid var(--lora-border);
|
|
border-radius: var(--border-radius-sm);
|
|
}
|
|
|
|
.trigger-words-title {
|
|
font-size: 0.95em;
|
|
color: var(--text-color);
|
|
text-align: center;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 100%;
|
|
}
|
|
|
|
.trigger-words-tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.trigger-word-tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
background: var(--lora-surface);
|
|
border: 1px solid var(--lora-border);
|
|
border-radius: var(--border-radius-xs);
|
|
padding: 6px 10px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
gap: 8px;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.trigger-word-content {
|
|
color: oklch(65% 0.2 256); /* Accent color for trigger words */
|
|
font-size: 0.85em;
|
|
line-height: 1.4;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.trigger-word-copy {
|
|
display: flex;
|
|
align-items: center;
|
|
color: var(--text-color);
|
|
opacity: 0.5;
|
|
flex-shrink: 0;
|
|
transition: opacity 0.2s;
|
|
}
|
|
|
|
.trigger-word-tag:hover {
|
|
background: oklch(var(--lora-accent) / 0.1);
|
|
border-color: var(--lora-accent);
|
|
}
|
|
|
|
.trigger-word-tag:hover .trigger-word-copy {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.trigger-word-tag:active {
|
|
transform: scale(0.98);
|
|
} |