Initial commit
This commit is contained in:
420
web/settings.css
Normal file
420
web/settings.css
Normal file
@@ -0,0 +1,420 @@
|
||||
.settings-sidebar {
|
||||
min-width: var(--sidebar-width);
|
||||
}
|
||||
|
||||
.settings-content {
|
||||
max-width: 720px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.active-settings-bar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
padding: 10px 24px;
|
||||
background: var(--surface-hover);
|
||||
border-bottom: 1px solid var(--border);
|
||||
font-size: 0.8125rem;
|
||||
}
|
||||
|
||||
.active-settings-bar .label {
|
||||
color: var(--text-tertiary);
|
||||
margin-right: 4px;
|
||||
}
|
||||
|
||||
.active-settings-bar .active-tag {
|
||||
padding: 3px 10px;
|
||||
border-radius: 999px;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
color: var(--text);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.active-settings-bar .active-tag.missing {
|
||||
color: var(--danger);
|
||||
border-color: rgba(245, 74, 69, 0.35);
|
||||
}
|
||||
|
||||
.settings-toast {
|
||||
margin: 0 24px 0;
|
||||
padding: 10px 14px;
|
||||
border-radius: var(--radius-md);
|
||||
background: rgba(0, 181, 120, 0.12);
|
||||
color: #00875a;
|
||||
font-size: 0.82rem;
|
||||
}
|
||||
|
||||
.settings-toast.error {
|
||||
background: rgba(245, 74, 69, 0.1);
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.config-card-actions .btn-activate {
|
||||
background: var(--text) !important;
|
||||
color: #fff !important;
|
||||
border: none !important;
|
||||
border-radius: 999px;
|
||||
padding: 6px 16px;
|
||||
font-size: 0.82rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.config-card-actions .btn-activate:hover {
|
||||
background: #000 !important;
|
||||
}
|
||||
|
||||
.config-card-actions .btn-active-label {
|
||||
background: var(--accent-soft);
|
||||
color: var(--accent);
|
||||
border: none;
|
||||
border-radius: 999px;
|
||||
padding: 6px 14px;
|
||||
font-size: 0.78rem;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.import-report-actions {
|
||||
margin-top: 10px;
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.panel-body {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 24px 32px 40px;
|
||||
background: var(--surface);
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.settings-section.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sidebar-nav-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.sidebar-nav-icon {
|
||||
font-size: 0.9rem;
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.card-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
max-width: 720px;
|
||||
}
|
||||
|
||||
.config-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
padding: 16px 18px;
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-lg);
|
||||
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
|
||||
transition: border-color 0.15s, box-shadow 0.15s;
|
||||
}
|
||||
|
||||
.config-card:hover {
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
|
||||
}
|
||||
|
||||
.config-card.active {
|
||||
border-color: rgba(51, 112, 255, 0.45);
|
||||
box-shadow: 0 0 0 1px var(--accent-soft), 0 4px 16px rgba(51, 112, 255, 0.08);
|
||||
}
|
||||
|
||||
.config-card-head {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.config-card-icon {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 50%;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
font-size: 0.85rem;
|
||||
flex-shrink: 0;
|
||||
color: #fff;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.config-card-icon.api {
|
||||
background: linear-gradient(135deg, #6b9fff, var(--agent-blue));
|
||||
}
|
||||
|
||||
.config-card-icon.preset {
|
||||
background: linear-gradient(135deg, #ff85c0, var(--agent-pink));
|
||||
}
|
||||
|
||||
.config-card-info {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.config-card-title {
|
||||
font-weight: 600;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
.config-card-meta {
|
||||
color: var(--text-tertiary);
|
||||
font-size: 0.78rem;
|
||||
word-break: break-all;
|
||||
margin-top: 4px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.config-card-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
padding-left: 48px;
|
||||
}
|
||||
|
||||
.config-card-actions button:not(.btn-danger) {
|
||||
background: var(--surface-hover);
|
||||
color: var(--text);
|
||||
border: none;
|
||||
border-radius: 999px;
|
||||
padding: 5px 14px;
|
||||
font-size: 0.78rem;
|
||||
cursor: pointer;
|
||||
transition: background 0.15s, color 0.15s;
|
||||
}
|
||||
|
||||
.config-card-actions button:not(.btn-danger):hover {
|
||||
background: var(--accent-soft);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.test-result {
|
||||
font-size: 0.78rem;
|
||||
margin-top: 2px;
|
||||
padding-left: 48px;
|
||||
}
|
||||
|
||||
.test-result.ok {
|
||||
color: var(--success);
|
||||
}
|
||||
|
||||
.test-result.fail {
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.import-report {
|
||||
margin-top: 16px;
|
||||
padding: 14px 16px;
|
||||
background: var(--bubble);
|
||||
border-radius: var(--radius-md);
|
||||
font-size: 0.76rem;
|
||||
overflow-x: auto;
|
||||
white-space: pre-wrap;
|
||||
color: var(--text-secondary);
|
||||
max-width: 720px;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
.preset-entries-panel {
|
||||
margin-top: 4px;
|
||||
padding-left: 48px;
|
||||
}
|
||||
|
||||
.preset-entries-inner {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-md);
|
||||
background: var(--surface-hover);
|
||||
padding: 12px 14px;
|
||||
}
|
||||
|
||||
.preset-gen-params {
|
||||
font-size: 0.76rem;
|
||||
color: var(--text-secondary);
|
||||
margin-bottom: 10px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.preset-entries-summary {
|
||||
font-size: 0.74rem;
|
||||
color: var(--text-tertiary);
|
||||
margin: 0 0 10px;
|
||||
}
|
||||
|
||||
.preset-entry {
|
||||
background: var(--surface);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius-sm);
|
||||
padding: 10px 12px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.preset-entry:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.preset-entry.skipped {
|
||||
opacity: 0.72;
|
||||
}
|
||||
|
||||
.preset-entry-head {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
margin-bottom: 8px;
|
||||
font-size: 0.78rem;
|
||||
}
|
||||
|
||||
.entry-index {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
background: var(--accent-soft);
|
||||
color: var(--accent);
|
||||
display: grid;
|
||||
place-items: center;
|
||||
font-size: 0.68rem;
|
||||
font-weight: 700;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.entry-role {
|
||||
padding: 2px 8px;
|
||||
border-radius: 999px;
|
||||
font-size: 0.68rem;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.entry-role.role-system {
|
||||
background: rgba(51, 112, 255, 0.12);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.entry-role.role-user {
|
||||
background: rgba(0, 181, 120, 0.12);
|
||||
color: var(--mention);
|
||||
}
|
||||
|
||||
.entry-role.role-assistant {
|
||||
background: rgba(114, 46, 209, 0.12);
|
||||
color: var(--agent-purple);
|
||||
}
|
||||
|
||||
.entry-name {
|
||||
font-weight: 600;
|
||||
color: var(--text);
|
||||
}
|
||||
|
||||
.entry-skip {
|
||||
font-size: 0.68rem;
|
||||
color: var(--text-tertiary);
|
||||
}
|
||||
|
||||
.preset-entry-content {
|
||||
margin: 0;
|
||||
padding: 10px 12px;
|
||||
background: var(--bubble);
|
||||
border-radius: var(--radius-sm);
|
||||
font-size: 0.76rem;
|
||||
line-height: 1.55;
|
||||
white-space: pre-wrap;
|
||||
word-break: break-word;
|
||||
max-height: 240px;
|
||||
overflow: auto;
|
||||
font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
|
||||
}
|
||||
|
||||
.preset-entry-empty {
|
||||
margin: 0;
|
||||
font-size: 0.74rem;
|
||||
color: var(--text-tertiary);
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.profile-dialog {
|
||||
border: none;
|
||||
border-radius: var(--radius-lg);
|
||||
padding: 0;
|
||||
background: var(--surface);
|
||||
color: var(--text);
|
||||
max-width: 420px;
|
||||
width: calc(100% - 32px);
|
||||
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
|
||||
}
|
||||
|
||||
.profile-dialog::backdrop {
|
||||
background: rgba(0, 0, 0, 0.3);
|
||||
backdrop-filter: blur(4px);
|
||||
}
|
||||
|
||||
.profile-dialog form {
|
||||
padding: 24px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14px;
|
||||
}
|
||||
|
||||
.profile-dialog h3 {
|
||||
margin: 0 0 4px;
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.profile-dialog label {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
font-size: 0.78rem;
|
||||
color: var(--text-secondary);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.profile-dialog input {
|
||||
padding: 10px 14px;
|
||||
border-radius: var(--radius-md);
|
||||
border: 1px solid var(--border-strong);
|
||||
background: var(--surface);
|
||||
color: var(--text);
|
||||
font-size: 0.875rem;
|
||||
transition: border-color 0.15s, box-shadow 0.15s;
|
||||
}
|
||||
|
||||
.profile-dialog input:focus {
|
||||
outline: none;
|
||||
border-color: rgba(51, 112, 255, 0.5);
|
||||
box-shadow: 0 0 0 3px var(--accent-soft);
|
||||
}
|
||||
|
||||
.dialog-actions {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 8px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
.config-card-actions {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.test-result {
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.preset-entries-panel {
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user