Files
AlexKucera 2c4076f3c9 Applies Obsidian linter and fixes code issues
Applies linting rules to the codebase and resolves identified issues.

Addresses:
- Renamed headings in settings tabs to improve UI consistency and style.
- Resolved require() style imports
- Added void operator to ensure correct promise handling.
- Replaced deprecated Obsidian API calls.
- Enforces sentence case to enhance UI text consistency.
2025-11-05 13:46:06 +01:00

357 lines
6.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;
}
/* Export config modal styles */
.export-config-modal {
width: 90vw;
max-width: 520px;
height: 80vh;
max-height: 600px;
}
.export-config-container {
display: flex;
flex-direction: column;
height: 100%;
}
.export-config-header {
padding: 16px 24px 8px 24px;
border-bottom: 1px solid var(--background-modifier-border);
flex-shrink: 0;
}
.export-config-header h2 {
margin: 0 0 8px 0;
font-size: 18px;
font-weight: 600;
}
.export-note-title {
margin: 0;
font-size: 14px;
color: var(--text-muted);
opacity: 0.8;
}
.export-config-form {
flex: 1;
overflow-y: auto;
padding: 16px 24px;
}
.export-config-section {
margin-bottom: 24px;
}
.export-config-section:last-child {
margin-bottom: 0;
}
.export-config-section-title {
font-weight: 600;
margin-bottom: 12px;
padding-bottom: 4px;
border-bottom: 1px solid var(--background-modifier-border-hover);
}
.export-config-buttons {
padding: 16px 24px;
border-top: 1px solid var(--background-modifier-border);
display: flex;
justify-content: space-between;
align-items: center;
flex-shrink: 0;
}
.export-config-buttons .right-buttons {
display: flex;
gap: 8px;
}
/* Progress styles */
.export-progress-container {
padding: 24px;
text-align: center;
}
.export-progress-container.export-hidden {
display: none;
}
.export-progress-container.export-progress-visible {
display: block;
}
.export-progress-text {
margin-bottom: 16px;
font-size: 14px;
color: var(--text-muted);
}
.export-progress-bar-container {
width: 100%;
height: 8px;
background-color: var(--background-modifier-border);
border-radius: 4px;
margin-bottom: 8px;
overflow: hidden;
}
.export-progress-bar {
height: 100%;
background-color: var(--interactive-accent);
border-radius: 4px;
width: var(--progress-width, 0%);
transition: width 0.3s ease;
}
.export-progress-percent {
font-size: 12px;
color: var(--text-muted);
}
/* Form field styles */
.export-setting-item {
margin-bottom: 16px;
}
.export-setting-item-info {
margin-bottom: 6px;
}
.export-setting-item-name {
font-weight: 500;
margin-bottom: 2px;
}
.export-setting-item-description {
font-size: 12px;
color: var(--text-muted);
}
.export-setting-item-control {
display: flex;
align-items: center;
}
.export-setting-item-control input,
.export-setting-item-control select {
flex: 1;
}
/* Folder suggest styles */
.export-folder-suggest-container {
position: relative;
}
.export-folder-suggest-input {
width: 100%;
padding: 6px 8px;
border: 1px solid var(--background-modifier-border);
border-radius: 4px;
background: var(--background-primary);
color: var(--text-normal);
}
.export-folder-suggest-input:focus {
border-color: var(--interactive-accent);
outline: none;
}
/* Validation styles */
.validation-errors, .validation-warnings {
background: var(--background-modifier-error);
padding: 15px;
border-radius: 5px;
margin-bottom: 20px;
}
.validation-warnings {
background: var(--background-modifier-warning);
}
.error-title {
color: var(--text-error);
margin: 0 0 10px 0;
}
.warning-title {
color: var(--text-warning);
margin: 0 0 10px 0;
}
.validation-errors ul, .validation-warnings ul {
margin: 0;
padding-left: 20px;
}
.export-validation-error {
color: var(--text-error);
font-size: 12px;
margin-top: 4px;
}
.export-validation-warning {
color: var(--text-warning);
font-size: 12px;
margin-top: 4px;
}
/* Template variable styles */
.export-template-variables {
margin-top: 12px;
}
.export-template-variable {
margin-bottom: 8px;
padding: 8px;
background: var(--background-secondary);
border-radius: 4px;
font-size: 12px;
}
.export-template-variable-name {
font-weight: 500;
margin-bottom: 2px;
}
.export-template-variable-description {
color: var(--text-muted);
font-style: italic;
}