mirror of
https://github.com/rybaier/obsidian-chat-splitter.git
synced 2026-07-22 06:09:04 +00:00
- Replace lookbehind regex in summary-builder with capture-group split for iOS < 16.4 compatibility - Bump minAppVersion to 1.4.10 to satisfy AbstractInputSuggest, Vault.createFolder, and Workspace.openLinkText API requirements - Switch setTimeout/clearTimeout to activeWindow variants in import-modal and ollama client for popout window compatibility - Move remaining inline styles in preview-modal and import-modal to CSS classes - Remove unused meta variable and segIndex parameter in preview-modal - Add activeWindow to eslint globals
300 lines
5.7 KiB
CSS
300 lines
5.7 KiB
CSS
/* Chat Splitter - Plugin Styles */
|
|
|
|
/* Import Modal */
|
|
.chat-splitter-import-modal {
|
|
width: 600px;
|
|
max-height: 80vh;
|
|
}
|
|
|
|
.chat-splitter-import-modal .modal-content {
|
|
padding: 16px;
|
|
}
|
|
|
|
.chat-splitter-step-header h2 {
|
|
margin: 0 0 16px 0;
|
|
}
|
|
|
|
/* Tabs */
|
|
.chat-splitter-tabs {
|
|
display: flex;
|
|
gap: 4px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.chat-splitter-tabs button {
|
|
padding: 6px 16px;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.chat-splitter-tabs button.is-active {
|
|
background: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
}
|
|
|
|
/* Textarea */
|
|
.chat-splitter-textarea {
|
|
width: 100%;
|
|
min-height: 300px;
|
|
font-family: var(--font-monospace);
|
|
font-size: var(--font-smaller);
|
|
resize: vertical;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
/* Format badge */
|
|
.chat-splitter-format-badge {
|
|
display: inline-block;
|
|
padding: 2px 8px;
|
|
border-radius: 10px;
|
|
font-size: var(--font-smallest);
|
|
margin-bottom: 8px;
|
|
background: var(--background-modifier-border);
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.chat-splitter-format-badge.detected {
|
|
background: var(--background-modifier-success);
|
|
color: var(--text-on-accent);
|
|
}
|
|
|
|
.chat-splitter-format-badge.unknown {
|
|
background: var(--background-modifier-error);
|
|
color: var(--text-on-accent);
|
|
}
|
|
|
|
/* Step 1 settings */
|
|
.chat-splitter-step1-settings {
|
|
margin: 8px 0;
|
|
padding: 8px 0;
|
|
border-top: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
/* File input */
|
|
.chat-splitter-file-input {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
/* Summary card */
|
|
.chat-splitter-summary-card {
|
|
padding: 12px;
|
|
margin-bottom: 16px;
|
|
border-radius: 8px;
|
|
background: var(--background-secondary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
.chat-splitter-summary-card p {
|
|
margin: 0;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Buttons */
|
|
.chat-splitter-buttons {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-top: 16px;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
/* Error */
|
|
.chat-splitter-error {
|
|
padding: 8px 12px;
|
|
border-radius: 4px;
|
|
background: var(--background-modifier-error);
|
|
color: var(--text-on-accent);
|
|
margin-top: 8px;
|
|
}
|
|
|
|
/* Progress */
|
|
.chat-splitter-progress {
|
|
width: 100%;
|
|
height: 4px;
|
|
border-radius: 2px;
|
|
background: var(--background-modifier-border);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.chat-splitter-progress-bar {
|
|
height: 100%;
|
|
background: var(--interactive-accent);
|
|
transition: width 200ms;
|
|
}
|
|
|
|
/* Custom callout types for rendered notes */
|
|
.callout[data-callout="user"] {
|
|
--callout-color: 64, 140, 230;
|
|
--callout-icon: lucide-user;
|
|
}
|
|
|
|
.callout[data-callout="assistant"] {
|
|
--callout-color: 120, 180, 80;
|
|
--callout-icon: lucide-bot;
|
|
}
|
|
|
|
.callout[data-callout="thinking"] {
|
|
--callout-color: 160, 130, 180;
|
|
--callout-icon: lucide-brain;
|
|
}
|
|
|
|
.callout[data-callout="thinking"] .callout-content {
|
|
opacity: 0.85;
|
|
font-style: italic;
|
|
}
|
|
|
|
.callout[data-callout="artifact"] {
|
|
--callout-color: 200, 160, 80;
|
|
--callout-icon: lucide-file-code;
|
|
}
|
|
|
|
/* Accessibility: focus indicators */
|
|
.chat-splitter-import-modal button:focus-visible,
|
|
.chat-splitter-preview-modal button:focus-visible,
|
|
.chat-splitter-import-modal input:focus-visible,
|
|
.chat-splitter-import-modal select:focus-visible,
|
|
.chat-splitter-import-modal textarea:focus-visible {
|
|
outline: 2px solid var(--interactive-accent);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
/* Hidden utility */
|
|
.chat-splitter-hidden {
|
|
display: none;
|
|
}
|
|
|
|
/* Preview link */
|
|
.chat-splitter-preview-link {
|
|
display: block;
|
|
margin-top: 8px;
|
|
font-size: var(--font-smaller);
|
|
}
|
|
|
|
/* Conversation selector */
|
|
.chat-splitter-conv-selector {
|
|
margin: 8px 0;
|
|
}
|
|
|
|
.chat-splitter-conv-label {
|
|
display: block;
|
|
margin-bottom: 4px;
|
|
font-size: var(--font-smaller);
|
|
}
|
|
|
|
.chat-splitter-conv-select {
|
|
width: 100%;
|
|
}
|
|
|
|
.chat-splitter-conv-selector select {
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
border: 1px solid var(--background-modifier-border);
|
|
background: var(--background-primary);
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
/* Preview Modal */
|
|
.chat-splitter-preview-modal {
|
|
width: 700px;
|
|
max-height: 85vh;
|
|
}
|
|
|
|
.chat-splitter-segment-card {
|
|
padding: 12px;
|
|
margin-bottom: 8px;
|
|
border-radius: 6px;
|
|
background: var(--background-secondary);
|
|
border: 1px solid var(--background-modifier-border);
|
|
}
|
|
|
|
.chat-splitter-segment-card .segment-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.chat-splitter-segment-card .segment-actions {
|
|
display: flex;
|
|
gap: 4px;
|
|
}
|
|
|
|
.chat-splitter-segment-card .segment-actions button {
|
|
padding: 2px 8px;
|
|
font-size: var(--font-smallest);
|
|
}
|
|
|
|
.chat-splitter-segment-preview {
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
font-size: var(--font-smaller);
|
|
color: var(--text-muted);
|
|
padding: 8px;
|
|
background: var(--background-primary);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.chat-splitter-preview-scroll {
|
|
max-height: 60vh;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.chat-splitter-merge-bar {
|
|
text-align: center;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.chat-splitter-segment-title-input {
|
|
flex: 1;
|
|
font-weight: bold;
|
|
border: none;
|
|
background: transparent;
|
|
}
|
|
|
|
.chat-splitter-segment-meta {
|
|
color: var(--text-muted);
|
|
font-size: var(--font-smallest);
|
|
margin-left: 8px;
|
|
}
|
|
|
|
.chat-splitter-tags-row {
|
|
margin: 4px 0;
|
|
}
|
|
|
|
.chat-splitter-tag-pill {
|
|
display: inline-block;
|
|
padding: 1px 6px;
|
|
margin: 2px;
|
|
border-radius: 8px;
|
|
font-size: var(--font-smallest);
|
|
background: var(--background-modifier-border);
|
|
}
|
|
|
|
.chat-splitter-preview-line {
|
|
margin: 2px 0;
|
|
}
|
|
|
|
.chat-splitter-show-all-link {
|
|
font-size: var(--font-smallest);
|
|
}
|
|
|
|
.chat-splitter-bottom-bar {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--background-modifier-border);
|
|
margin-top: 12px;
|
|
}
|
|
|
|
.chat-splitter-split-divider {
|
|
text-align: center;
|
|
padding: 2px 0;
|
|
cursor: pointer;
|
|
color: var(--text-accent);
|
|
font-size: var(--font-smallest);
|
|
border-top: 1px dashed var(--background-modifier-border);
|
|
}
|