- Replace hardcoded '.obsidian' paths with Vault#configDir for proper config directory support - Move inline styles to CSS classes for better theme compatibility - Remove unnecessary type casting by using proper type predicates - Add proper TypeScript type narrowing for filtered arrays This addresses all required issues identified by the Obsidian Review Bot: * TempDirectoryManager now accepts configDir parameter from app.vault.configDir * PdfToImageConverter uses configDir instead of hardcoded '.obsidian' * ExportConfigModal uses CSS classes (.export-progress-visible, .export-form-hidden) instead of inline styles * Progress bar width controlled via CSS custom property --progress-width * Removed 'as TFile[]' casting by implementing isMarkdownFile type predicate 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
137 lines
2.5 KiB
CSS
137 lines
2.5 KiB
CSS
/*
|
|
* Typst PDF Export Plugin Styles
|
|
*/
|
|
|
|
/* Dependency status modal styles */
|
|
.dependency-overall-status {
|
|
margin-bottom: 1rem;
|
|
padding: 0.75rem;
|
|
border-radius: 6px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.dependency-success {
|
|
color: var(--text-success);
|
|
}
|
|
|
|
.dependency-error {
|
|
color: var(--text-error);
|
|
}
|
|
|
|
.dependency-warning {
|
|
color: var(--text-warning);
|
|
}
|
|
|
|
.dependency-section {
|
|
margin-bottom: 2rem;
|
|
padding: 1rem;
|
|
border: 1px solid var(--background-modifier-border);
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.dependency-section h3 {
|
|
margin-top: 0;
|
|
margin-bottom: 0.5rem;
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.dependency-status {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.dependency-path {
|
|
margin-top: 0.25rem;
|
|
font-size: 0.9em;
|
|
color: var(--text-muted);
|
|
font-family: var(--font-monospace);
|
|
}
|
|
|
|
.dependency-error-detail {
|
|
margin-top: 0.25rem;
|
|
font-size: 0.9em;
|
|
color: var(--text-error);
|
|
font-style: italic;
|
|
}
|
|
|
|
.dependency-install-guide {
|
|
margin-top: 1rem;
|
|
padding: 1rem;
|
|
background-color: var(--background-secondary);
|
|
border-radius: 4px;
|
|
border-left: 3px solid var(--interactive-accent);
|
|
}
|
|
|
|
.dependency-install-guide h4 {
|
|
margin-top: 0;
|
|
margin-bottom: 0.75rem;
|
|
color: var(--text-normal);
|
|
}
|
|
|
|
.dependency-install-guide p {
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.dependency-install-guide ul {
|
|
margin-left: 1rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.dependency-install-guide code {
|
|
background-color: var(--background-primary-alt);
|
|
padding: 0.125rem 0.25rem;
|
|
border-radius: 3px;
|
|
font-family: var(--font-monospace);
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.dependency-install-guide a {
|
|
color: var(--text-accent);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.dependency-install-guide a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.dependency-button-container {
|
|
margin-top: 1.5rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.dependency-button-container button {
|
|
padding: 0.5rem 1rem;
|
|
background-color: var(--interactive-accent);
|
|
color: var(--text-on-accent);
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.dependency-button-container button:hover {
|
|
background-color: var(--interactive-accent-hover);
|
|
}
|
|
|
|
/* Export modal display utilities */
|
|
.export-hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
.export-visible {
|
|
display: block !important;
|
|
}
|
|
|
|
/* Progress bar styling */
|
|
.export-progress-bar {
|
|
transition: width 0.3s ease;
|
|
width: var(--progress-width, 0%);
|
|
}
|
|
|
|
/* Modal display states */
|
|
.export-progress-visible {
|
|
display: block !important;
|
|
}
|
|
|
|
.export-form-hidden {
|
|
display: none !important;
|
|
}
|