maws7140_vault-hub-plugin/styles.css
2026-06-05 10:58:51 -04:00

487 lines
8.4 KiB
CSS

/* Vault Hub Plugin Styles */
/* Settings */
.vault-hub-text-input-wide {
width: 300px;
}
/* Browse View */
.vault-hub-browse {
padding: 12px;
}
.vault-hub-browse-header h3 {
margin: 0 0 12px 0;
font-size: 1.2em;
}
.vault-hub-search-row {
display: flex;
gap: 8px;
margin-bottom: 16px;
}
.vault-hub-search-row input[type="text"] {
flex: 1;
padding: 6px 10px;
border-radius: 6px;
border: 1px solid var(--background-modifier-border);
background: var(--background-primary);
color: var(--text-normal);
font-size: 0.9em;
}
.vault-hub-search-row button {
padding: 6px 14px;
border-radius: 6px;
cursor: pointer;
}
.vault-hub-hint {
color: var(--text-muted);
font-size: 0.85em;
}
/* Result Cards */
.vault-hub-result-card {
padding: 12px;
margin-bottom: 10px;
border-radius: 8px;
background: var(--background-secondary);
border: 1px solid var(--background-modifier-border);
}
.vault-hub-result-card h4 {
margin: 6px 0 4px 0;
font-size: 1em;
}
.vault-hub-type-badge {
display: inline-block;
padding: 2px 8px;
border-radius: 4px;
font-size: 0.75em;
font-weight: 600;
color: #fff;
text-transform: capitalize;
background: var(--vault-hub-badge-color, #666);
}
.vault-hub-type-badge[data-kind="vault"] {
--vault-hub-badge-color: #7f6df2;
}
.vault-hub-type-badge[data-kind="snippet"] {
--vault-hub-badge-color: #0e9aab;
}
.vault-hub-type-badge[data-kind="note"] {
--vault-hub-badge-color: #fb923c;
}
.vault-hub-type-badge[data-kind="dashboard"] {
--vault-hub-badge-color: #16a34a;
}
.vault-hub-result-meta {
display: flex;
gap: 12px;
margin-top: 6px;
font-size: 0.8em;
color: var(--text-muted);
}
.vault-hub-result-actions {
display: flex;
gap: 8px;
margin-top: 8px;
}
.vault-hub-result-actions button {
padding: 4px 12px;
border-radius: 6px;
font-size: 0.85em;
cursor: pointer;
}
/* Modal Styles */
.vault-hub-modal {
min-width: 480px;
}
.vault-hub-header {
margin-bottom: 16px;
}
.vault-hub-header h2 {
margin: 0 0 8px 0;
}
/* Progress Dots */
.vault-hub-progress {
display: flex;
gap: 8px;
margin-bottom: 8px;
}
.vault-hub-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--background-modifier-border);
transition: background 0.2s;
}
.vault-hub-dot.active {
background: var(--interactive-accent);
box-shadow: 0 0 6px var(--interactive-accent);
}
.vault-hub-dot.done {
background: var(--text-success);
}
/* Bulk controls */
.vault-hub-bulk {
display: flex;
align-items: center;
gap: 8px;
margin-top: 8px;
}
.vault-hub-bulk button {
padding: 4px 10px;
font-size: 0.85em;
}
.vault-hub-bulk-count {
margin-left: auto;
font-size: 0.85em;
color: var(--text-muted);
}
.vault-hub-multi-select {
width: 100%;
}
.vault-hub-checkbox-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 8px;
margin-top: 8px;
}
.vault-hub-checkbox-row {
display: flex;
align-items: center;
gap: 8px;
min-height: 32px;
padding: 6px 10px;
border: 1px solid var(--background-modifier-border);
border-radius: 6px;
background: var(--background-secondary);
font-size: 0.9em;
}
/* File List */
.vault-hub-file-list {
max-height: 300px;
overflow-y: auto;
border: 1px solid var(--background-modifier-border);
border-radius: 6px;
margin-top: 8px;
}
.vault-hub-file-row {
display: flex;
align-items: center;
gap: 8px;
padding: 6px 10px;
border-bottom: 1px solid var(--background-modifier-border);
font-size: 0.9em;
}
.vault-hub-file-row:last-child {
border-bottom: none;
}
.vault-hub-file-row:hover {
background: var(--background-modifier-hover);
}
/* Plugin List */
.vault-hub-plugin-list {
max-height: 300px;
overflow-y: auto;
margin-top: 8px;
}
.vault-hub-plugin-row {
display: flex;
align-items: center;
gap: 8px;
padding: 8px 10px;
border-bottom: 1px solid var(--background-modifier-border);
}
.vault-hub-plugin-row:last-child {
border-bottom: none;
}
.vault-hub-plugin-info {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 4px;
}
.vault-hub-plugin-name {
font-weight: 600;
}
.vault-hub-plugin-version {
color: var(--text-muted);
font-size: 0.85em;
}
.vault-hub-auto-badge {
font-size: 0.75em;
color: var(--text-success);
font-style: italic;
}
/* README Editor */
.vault-hub-readme-editor {
width: 100%;
min-height: 300px;
padding: 10px;
border-radius: 6px;
border: 1px solid var(--background-modifier-border);
background: var(--background-primary);
color: var(--text-normal);
font-family: var(--font-monospace);
font-size: 0.85em;
resize: vertical;
}
/* Summary */
.vault-hub-summary {
padding: 12px;
border-radius: 6px;
background: var(--background-secondary);
margin-bottom: 16px;
}
.vault-hub-summary p {
margin: 4px 0;
font-size: 0.9em;
}
/* Tabs */
.vault-hub-tabs {
display: flex;
gap: 0;
margin-bottom: 12px;
border-bottom: 2px solid var(--background-modifier-border);
}
.vault-hub-tab {
padding: 6px 16px;
border-radius: 0;
background: none;
border: none;
border-bottom: 2px solid transparent;
margin-bottom: -2px;
font-size: 0.85em;
font-weight: 500;
color: var(--text-muted);
cursor: pointer;
transition: color 0.15s, border-color 0.15s;
}
.vault-hub-tab:hover {
color: var(--text-normal);
}
.vault-hub-tab.active {
color: var(--interactive-accent);
border-bottom-color: var(--interactive-accent);
}
/* Type filter row */
.vault-hub-type-filters {
display: flex;
gap: 4px;
flex-wrap: wrap;
margin-bottom: 10px;
}
.vault-hub-type-filter {
padding: 3px 10px;
border-radius: 12px;
font-size: 0.78em;
font-weight: 500;
background: var(--background-modifier-border);
color: var(--text-muted);
border: none;
cursor: pointer;
transition: background 0.15s, color 0.15s;
}
.vault-hub-type-filter:hover {
background: var(--background-modifier-hover);
color: var(--text-normal);
}
.vault-hub-type-filter.active {
background: var(--interactive-accent);
color: #fff;
}
/* Update diff list */
.vault-hub-update-list {
margin: 12px 0;
border: 1px solid var(--background-modifier-border);
border-radius: 6px;
overflow: hidden;
}
.vault-hub-update-row {
display: flex;
align-items: center;
gap: 6px;
padding: 7px 12px;
border-bottom: 1px solid var(--background-modifier-border);
font-size: 0.85em;
font-family: var(--font-monospace);
}
.vault-hub-update-row:last-child {
border-bottom: none;
}
.vault-hub-status-changed {
color: var(--color-yellow, #f59e0b);
font-weight: 700;
}
.vault-hub-status-unchanged {
color: var(--text-faint);
}
.vault-hub-status-missing {
color: var(--text-muted);
}
/* Success link */
.vault-hub-success-link {
display: inline-block;
text-decoration: none;
}
.vault-hub-success-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
margin: 14px 0 6px;
}
/* Snippet Manager */
.vault-hub-snippets-container {
padding: 4px 0;
}
.vault-hub-snippet-list {
display: flex;
flex-direction: column;
gap: 6px;
}
.vault-hub-snippet-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 8px 10px;
border-radius: 6px;
background: var(--background-secondary);
border: 1px solid var(--background-modifier-border);
}
.vault-hub-snippet-name {
font-size: 0.85em;
font-family: var(--font-monospace);
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.vault-hub-snippet-actions {
display: flex;
gap: 6px;
flex-shrink: 0;
}
.vault-hub-snippet-actions button {
padding: 3px 10px;
border-radius: 4px;
font-size: 0.8em;
cursor: pointer;
}
.vault-hub-snippet-toggle {
color: var(--text-muted);
}
.vault-hub-snippet-toggle.on {
color: #15803d;
background: rgba(22, 163, 74, 0.15);
}
.vault-hub-snippet-delete {
color: var(--text-error);
}
/* Navigation */
.vault-hub-nav {
display: flex;
justify-content: flex-end;
gap: 8px;
margin-top: 16px;
padding-top: 12px;
border-top: 1px solid var(--background-modifier-border);
}
.vault-hub-nav button {
padding: 6px 18px;
border-radius: 6px;
cursor: pointer;
}
/* Utility helpers used to replace inline styles */
.vault-hub-discard-btn {
margin-left: 8px;
}
.vault-hub-hidden {
display: none;
}
.vault-hub-input-full {
width: 100%;
}
.vault-hub-textarea-tall {
width: 100%;
min-height: 80px;
}
.vault-hub-textarea-short {
width: 100%;
min-height: 72px;
}
.vault-hub-update-status {
margin-top: 12px;
}