obsidian-promptfire/styles.css
Luca G. Oelfke 72f64bcbd9
feat: add dynamic descriptions to settings reflecting current state
Eight settings now show live contextual info (file counts, entry usage,
folder existence) that updates as values change.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 12:22:42 +01:00

270 lines
4.8 KiB
CSS

/* Settings search */
.cc-settings-search-input {
width: 100%;
padding: 8px 12px;
margin-bottom: 8px;
border: 1px solid var(--background-modifier-border);
border-radius: 4px;
background: var(--background-primary);
color: var(--text-normal);
font-size: 14px;
}
.cc-settings-search-input:focus {
border-color: var(--interactive-accent);
outline: none;
}
.cc-settings-search-input::placeholder {
color: var(--text-faint);
}
.cc-settings-search-heading {
font-size: 13px;
font-weight: 600;
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.05em;
margin: 16px 0 8px 0;
padding-bottom: 4px;
border-bottom: 1px solid var(--background-modifier-border);
}
.cc-settings-search-group:first-child .cc-settings-search-heading {
margin-top: 0;
}
.cc-settings-no-results {
color: var(--text-muted);
font-style: italic;
text-align: center;
padding: 20px 0;
}
.cc-dynamic-desc {
color: var(--text-faint);
}
/* Tab navigation for settings */
.cc-settings-tabs {
display: flex;
gap: 0;
border-bottom: 1px solid var(--background-modifier-border);
margin-bottom: 16px;
position: sticky;
top: 0;
background: var(--background-primary);
z-index: 1;
padding-top: 4px;
}
.cc-settings-tab {
padding: 8px 16px;
border: none;
background: none;
color: var(--text-muted);
cursor: pointer;
font-size: 14px;
border-bottom: 2px solid transparent;
transition: color 0.15s ease, border-color 0.15s ease;
}
.cc-settings-tab:hover {
color: var(--text-normal);
}
.cc-settings-tab.is-active {
color: var(--text-normal);
border-bottom-color: var(--interactive-accent);
font-weight: 600;
}
/* Collapsible sections */
.cc-section {
margin-bottom: 8px;
}
.cc-section-header {
display: flex;
align-items: center;
padding: 8px 4px;
cursor: pointer;
border-radius: 4px;
user-select: none;
}
.cc-section-header:hover {
background: var(--background-modifier-hover);
}
.cc-section-title {
flex: 1;
font-weight: 600;
font-size: 14px;
}
.cc-section-chevron {
font-size: 16px;
transition: transform 0.2s ease;
transform: rotate(90deg);
}
.cc-section.is-collapsed .cc-section-chevron {
transform: rotate(0deg);
}
.cc-section-content {
max-height: 2000px;
overflow: hidden;
transition: max-height 0.25s ease, opacity 0.2s ease;
opacity: 1;
padding-top: 4px;
}
.cc-section.is-collapsed .cc-section-content {
max-height: 0;
opacity: 0;
padding-top: 0;
}
/* Generator modal */
.cc-gen-modal {
width: 70vw;
max-width: 900px;
}
.cc-gen-modal .modal-content {
max-height: 80vh;
overflow-y: auto;
display: flex;
flex-direction: column;
}
.cc-gen-layout {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
flex: 1;
min-height: 0;
}
.cc-gen-zone {
overflow-y: auto;
max-height: 60vh;
padding-right: 8px;
}
.cc-gen-selection {
border-right: 1px solid var(--background-modifier-border);
padding-right: 20px;
}
.cc-gen-zone h3 {
margin-top: 0;
}
.cc-gen-footer {
border-top: 1px solid var(--background-modifier-border);
padding-top: 12px;
margin-top: 12px;
}
.cc-gen-stat {
font-size: 12px;
color: var(--text-muted);
padding: 6px 10px;
background: var(--background-secondary);
border-radius: 4px;
margin-top: 8px;
}
/* Generator status bar */
.cc-gen-statusbar {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 12px;
margin-bottom: 12px;
background: var(--background-secondary);
border: 1px solid var(--background-modifier-border);
border-radius: 4px;
font-size: 12px;
color: var(--text-muted);
}
.cc-statusbar-item {
white-space: nowrap;
}
.cc-statusbar-sep {
color: var(--text-faint);
user-select: none;
}
.cc-statusbar-clickable {
cursor: pointer;
border-radius: 3px;
padding: 1px 4px;
transition: background 0.15s ease, color 0.15s ease;
}
.cc-statusbar-clickable:hover {
background: var(--background-modifier-hover);
color: var(--text-normal);
}
.cc-statusbar-tokens.is-warning {
color: var(--text-warning, #e0a526);
font-weight: 600;
}
/* Generator preview pane */
.cc-preview-section {
margin-top: 12px;
}
.cc-preview-body {
border: 1px solid var(--background-modifier-border);
background: var(--background-secondary);
border-radius: 4px;
max-height: 300px;
overflow-y: auto;
padding: 10px;
}
.cc-preview-code {
font-family: var(--font-monospace);
font-size: 11px;
white-space: pre-wrap;
word-break: break-word;
background: transparent;
margin: 0;
}
.cc-preview-line-info {
font-size: 11px;
color: var(--text-muted);
font-style: italic;
text-align: right;
margin-top: 6px;
}
/* Stack on narrow viewports */
@media (max-width: 768px) {
.cc-gen-modal {
width: 90vw;
}
.cc-gen-layout {
grid-template-columns: 1fr;
}
.cc-gen-selection {
border-right: none;
border-bottom: 1px solid var(--background-modifier-border);
padding-right: 0;
padding-bottom: 16px;
max-height: none;
}
.cc-gen-zone {
max-height: none;
}
}