arsenije_Uru/styles.css
Archie 661f262a31 style: Obsidian review-guideline cleanups
- command ids drop the manual uru- prefix (Obsidian namespaces them);
  done pre-directory-release so shipped users never lose hotkeys
- 'Restart Uru' -> 'Restart the local AI service' (no plugin name in
  command names)
- sentence case for ribbon labels and view titles
- progress bars driven by a --uru-progress custom property instead of
  inline width styles
- modals use Modal.setTitle() instead of hand-rolled <h2>

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 18:32:20 +02:00

261 lines
5.2 KiB
CSS

/* Uru recall view */
.uru-recall {
padding: 0.5rem;
}
.uru-recall-bar {
display: flex;
gap: 0.4rem;
margin-bottom: 0.6rem;
}
.uru-recall-input {
flex: 1;
}
.uru-recall-status {
color: var(--text-muted);
padding: 0.5rem 0;
}
.uru-recall-item {
padding: 0.5rem 0;
border-top: 1px solid var(--background-modifier-border);
}
.uru-recall-item-head {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 0.5rem;
}
.uru-recall-title {
cursor: pointer;
font-weight: var(--font-semibold);
}
.uru-recall-title:hover {
text-decoration: underline;
}
.uru-recall-snippet {
color: var(--text-muted);
font-size: var(--font-ui-smaller);
margin-top: 0.2rem;
white-space: pre-wrap;
}
/* Uru chat view */
.uru-chat {
display: flex;
flex-direction: column;
height: 100%;
padding: 0.5rem;
}
.uru-chat-header {
display: flex;
justify-content: space-between;
align-items: center;
font-weight: var(--font-semibold);
margin-bottom: 0.5rem;
}
.uru-chat-new {
font-size: var(--font-ui-smaller);
}
.uru-chat-scope {
display: inline-flex;
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-s);
overflow: hidden;
}
.uru-scope-btn {
font-size: var(--font-ui-smaller);
padding: 0.15rem 0.55rem;
border: none;
border-radius: 0;
box-shadow: none;
background: var(--background-secondary);
color: var(--text-muted);
cursor: pointer;
}
.uru-scope-btn.is-active {
background: var(--interactive-accent);
color: var(--text-on-accent);
}
.uru-chat-messages {
flex: 1;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 0.6rem;
}
.uru-chat-msg {
display: flex;
}
.uru-chat-user {
justify-content: flex-end;
}
.uru-chat-body {
max-width: 85%;
padding: 0.45rem 0.7rem;
border-radius: var(--radius-m);
white-space: pre-wrap;
word-break: break-word;
}
.uru-chat-user .uru-chat-body {
background: var(--interactive-accent);
color: var(--text-on-accent);
}
.uru-chat-assistant .uru-chat-body {
background: var(--background-modifier-hover);
white-space: normal;
}
.uru-chat-sources {
margin-top: 0.5rem;
display: flex;
flex-wrap: wrap;
gap: 0.3rem;
}
.uru-chat-cite {
cursor: pointer;
font-size: var(--font-ui-smaller);
background: var(--background-secondary);
border-radius: var(--radius-s);
padding: 0.1rem 0.4rem;
}
.uru-chat-cite:hover {
text-decoration: underline;
}
.uru-chat-bar {
display: flex;
gap: 0.4rem;
margin-top: 0.5rem;
}
.uru-chat-input {
flex: 1;
resize: vertical;
}
/* Uru chat — first-run empty state */
.uru-empty {
margin: auto;
max-width: 22rem;
text-align: center;
display: flex;
flex-direction: column;
gap: 0.6rem;
padding: 1.5rem 1rem;
}
.uru-empty-title {
font-weight: var(--font-semibold);
color: var(--text-normal);
}
.uru-empty-copy {
margin: 0;
font-size: var(--font-ui-small);
line-height: 1.5;
color: var(--text-muted);
}
.uru-empty-action {
margin-top: 0.4rem;
}
.uru-empty-btn {
cursor: pointer;
}
.uru-progress {
display: flex;
flex-direction: column;
gap: 0.35rem;
}
.uru-progress-track {
height: 6px;
border-radius: var(--radius-s);
background: var(--background-modifier-border);
overflow: hidden;
}
.uru-progress-fill {
height: 100%;
/* Driven by JS via a custom property (no inline width styles). */
width: var(--uru-progress, 0%);
background: var(--interactive-accent);
transition: width 0.2s ease;
}
.uru-progress-track.is-indeterminate .uru-progress-fill {
width: 40%;
animation: uru-indeterminate 1.1s ease-in-out infinite;
}
@keyframes uru-indeterminate {
0% { margin-left: -40%; }
100% { margin-left: 100%; }
}
.uru-progress-label {
font-size: var(--font-ui-smaller);
color: var(--text-muted);
}
/* Uru settings — indexing progress */
.uru-index-progress {
margin: 0.2rem 0 1rem;
}
.uru-index-progress-track {
height: 6px;
border-radius: 3px;
background: var(--background-modifier-border);
overflow: hidden;
}
.uru-index-progress-fill {
height: 100%;
/* Driven by JS via a custom property (no inline width styles). */
width: var(--uru-progress, 0%);
background: var(--interactive-accent);
transition: width 0.2s ease;
}
.uru-index-progress-meta {
display: flex;
justify-content: space-between;
gap: 0.75rem;
margin-top: 0.35rem;
font-size: var(--font-ui-smaller);
color: var(--text-muted);
}
.uru-index-progress-current {
min-width: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.uru-index-progress-hint {
margin-top: 0.4rem;
font-size: var(--font-ui-smaller);
color: var(--text-faint);
line-height: 1.4;
}
.uru-index-interrupted {
margin: 0 0 0.8rem;
font-size: var(--font-ui-smaller);
color: var(--text-warning);
font-weight: 500;
}
/* Uru settings — collapsible groups (Advanced, Models) */
.uru-advanced {
margin: 0.5rem 0;
border-top: 1px solid var(--background-modifier-border);
}
.uru-advanced > summary {
cursor: pointer;
padding: 0.6rem 0 0.2rem;
font-size: var(--font-ui-smaller);
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--text-muted);
list-style-position: inside;
}
.uru-advanced > summary:hover {
color: var(--text-normal);
}
/* Uru setup modal */
.uru-setup-log {
max-height: 220px;
overflow-y: auto;
font-size: var(--font-ui-smaller);
background: var(--background-secondary);
padding: 0.5rem;
border-radius: var(--radius-s);
white-space: pre-wrap;
margin-top: 0.5rem;
}