Files
vault/.obsidian/plugins/vault-sync-git/styles.css
T
vaultadmin dd3ef9721e 15Tw: 181 added
- .obsidian/app (conflict 15Tw 2026-11-16 1639).json
- .obsidian/app.json
- .obsidian/appearance.json
- .obsidian/community-plugins.json
- .obsidian/core-plugins.json
- .obsidian/envoy.log
- .obsidian/plugins/vault-sync-git/data.json
- .obsidian/plugins/vault-sync-git/main.js
- .obsidian/plugins/vault-sync-git/manifest.json
- .obsidian/plugins/vault-sync-git/styles.css
- …and 171 more

Device: 15Tw
Plugin: 1.8.0
2026-11-30 06:38:33 +00:00

896 lines
18 KiB
CSS

.vsg-status {
cursor: pointer;
}
.vsg-icon svg {
width: 14px;
height: 14px;
vertical-align: middle;
}
.vsg-syncing svg,
.vsg-spinning svg {
animation: vsg-spin 1.2s linear infinite;
}
.vsg-error {
color: var(--text-error);
}
.vsg-conflict {
color: var(--text-warning);
}
.vsg-offline {
color: var(--text-muted);
}
@keyframes vsg-spin {
to {
transform: rotate(360deg);
}
}
.vsg-diff {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--size-4-3);
}
@media (max-width: 700px) {
.vsg-diff {
grid-template-columns: 1fr;
}
}
.vsg-diff pre,
.vsg-version,
.vsg-log {
max-height: 50vh;
overflow: auto;
white-space: pre-wrap;
word-break: break-word;
font-size: var(--font-ui-smaller);
background: var(--background-secondary);
padding: var(--size-4-2);
border-radius: var(--radius-s);
user-select: text;
}
.vsg-list {
max-height: 30vh;
overflow: auto;
font-size: var(--font-ui-smaller);
}
.vsg-commits {
list-style: none;
padding: 0;
max-height: 60vh;
overflow: auto;
}
.vsg-commits li {
padding: var(--size-4-2);
border-radius: var(--radius-s);
cursor: pointer;
}
.vsg-commits li:hover {
background: var(--background-modifier-hover);
}
.vsg-commit-title {
font-weight: var(--font-semibold);
}
.vsg-commit-sub {
color: var(--text-muted);
font-size: var(--font-ui-smaller);
}
.vsg-stacked {
flex-direction: column;
align-items: stretch;
gap: var(--size-4-2);
}
.vsg-stacked .setting-item-control {
width: 100%;
}
.vsg-textarea {
width: 100%;
min-height: 10em;
font-family: var(--font-monospace);
}
/* ---------- v0.2: shared ---------- */
.vsg-muted {
color: var(--text-muted);
font-size: var(--font-ui-smaller);
}
.modal.vsg-wide {
--dialog-width: min(1100px, 95vw);
width: min(1100px, 95vw);
max-width: 95vw;
}
.vsg-pending {
margin-left: 4px;
font-size: var(--font-ui-smaller);
color: var(--text-accent);
}
.vsg-tabs {
display: flex;
gap: var(--size-4-1);
margin-bottom: var(--size-4-2);
}
/* Conflict dialog: both tab panes sit in one grid cell, so the dialog keeps the taller pane's height. */
.vsg-cf-panes {
display: grid;
}
.vsg-cf-pane {
grid-area: 1 / 1;
min-width: 0;
}
.vsg-cf-hidden {
visibility: hidden;
pointer-events: none;
}
.vsg-tabs button.is-active,
.vsg-hp-btn.is-active {
background: var(--interactive-accent);
color: var(--text-on-accent);
}
/* ---------- diff view ---------- */
.vsg-dv {
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-m);
overflow: hidden;
}
.vsg-dv-head {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--size-4-2);
padding: var(--size-4-1) var(--size-4-2);
background: var(--background-secondary);
font-size: var(--font-ui-smaller);
}
.vsg-dv-stats {
margin-left: auto;
color: var(--text-muted);
}
.vsg-dv-body {
max-height: 60vh;
overflow: auto;
font-family: var(--font-monospace);
font-size: var(--font-ui-smaller);
}
.vsg-dv-body.vsg-dv-split {
display: grid;
grid-template-columns: 1fr 1fr;
}
.vsg-dv-col + .vsg-dv-col {
border-left: 1px solid var(--background-modifier-border);
}
.vsg-dl {
display: flex;
white-space: pre-wrap;
word-break: break-word;
line-height: 1.45;
}
.vsg-dl-no {
flex: 0 0 3.2em;
text-align: right;
padding-right: 6px;
color: var(--text-faint);
user-select: none;
}
.vsg-dl-sign {
flex: 0 0 1.2em;
color: var(--text-faint);
user-select: none;
}
.vsg-dl-text {
flex: 1;
user-select: text;
}
.vsg-dl-add {
background: rgba(var(--color-green-rgb), 0.15);
}
.vsg-dl-del {
background: rgba(var(--color-red-rgb), 0.15);
}
.vsg-dl-empty {
background: var(--background-secondary-alt);
}
.vsg-dl-fold {
padding: 2px 8px;
color: var(--text-accent);
background: var(--background-secondary);
cursor: pointer;
user-select: none;
}
.vsg-dv-same {
padding: var(--size-4-3);
color: var(--text-muted);
}
/* ---------- hunk picker ---------- */
.vsg-hp {
max-height: 55vh;
overflow: auto;
font-family: var(--font-monospace);
font-size: var(--font-ui-smaller);
}
.vsg-hp-same {
opacity: 0.7;
}
.vsg-hp-block {
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-s);
margin: var(--size-4-2) 0;
}
.vsg-hp-bar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--size-4-1);
padding: var(--size-4-1) var(--size-4-2);
background: var(--background-secondary);
font-family: var(--font-interface);
}
.vsg-hp-title {
margin-right: auto;
font-weight: var(--font-semibold);
}
.vsg-hp-side-label {
font-family: var(--font-interface);
color: var(--text-muted);
padding: 2px 8px;
}
.vsg-hp-off {
opacity: 0.35;
text-decoration: line-through;
}
.vsg-hp-empty {
padding: 2px 8px;
color: var(--text-faint);
}
/* ---------- review ---------- */
.vsg-review-group {
margin-top: var(--size-4-3);
font-weight: var(--font-semibold);
}
.vsg-review-list {
max-height: 30vh;
overflow: auto;
}
.vsg-review-row {
display: flex;
align-items: center;
gap: var(--size-4-2);
padding: 2px 0;
}
.vsg-review-path {
flex: 1;
word-break: break-all;
font-size: var(--font-ui-small);
}
.vsg-review-diff {
font-size: var(--font-ui-smaller);
}
/* ---------- timeline ---------- */
.vsg-tag {
display: inline-block;
margin-right: 6px;
padding: 0 6px;
border-radius: var(--radius-s);
background: var(--interactive-accent);
color: var(--text-on-accent);
font-size: var(--font-ui-smaller);
}
.vsg-timeline-actions {
display: none;
gap: var(--size-4-1);
margin-top: var(--size-4-1);
flex-wrap: wrap;
}
.vsg-timeline li.is-open .vsg-timeline-actions {
display: flex;
}
/* ---------- health panel ---------- */
.vsg-health {
padding: var(--size-4-3);
overflow-x: hidden;
}
.vsg-health > * {
min-width: 0;
}
.vsg-h-status > div {
min-width: 0;
overflow-wrap: anywhere;
}
.vsg-health button {
white-space: normal;
height: auto;
min-height: var(--input-height);
}
.vsg-h-status {
display: flex;
gap: var(--size-4-3);
align-items: center;
padding: var(--size-4-3);
border-radius: var(--radius-m);
background: var(--background-secondary);
}
.vsg-h-big svg {
width: 28px;
height: 28px;
}
.vsg-h-ok .vsg-h-big {
color: var(--color-green);
}
.vsg-h-warn .vsg-h-big {
color: var(--color-orange);
}
.vsg-h-err .vsg-h-big {
color: var(--text-error);
}
.vsg-h-busy .vsg-h-big svg {
animation: vsg-spin 1.2s linear infinite;
}
.vsg-h-headline {
font-weight: var(--font-semibold);
font-size: var(--font-ui-medium);
}
.vsg-h-actions {
display: flex;
flex-wrap: wrap;
gap: var(--size-4-1);
margin: var(--size-4-2) 0;
}
.vsg-h-section {
margin-top: var(--size-4-4);
}
.vsg-h-title {
display: flex;
align-items: center;
gap: 6px;
font-weight: var(--font-semibold);
margin-bottom: var(--size-4-1);
}
.vsg-h-icon svg {
width: 14px;
height: 14px;
}
.vsg-h-error {
padding: var(--size-4-2);
border-left: 3px solid var(--text-error);
background: rgba(var(--color-red-rgb), 0.08);
border-radius: var(--radius-s);
}
.vsg-h-accent {
color: var(--text-accent);
}
.vsg-h-row {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: var(--size-4-1);
padding: var(--size-4-1) 0;
border-bottom: 1px solid var(--background-modifier-border);
}
.vsg-h-path {
word-break: break-all;
font-size: var(--font-ui-small);
}
.vsg-h-row-actions {
display: flex;
flex-wrap: wrap;
gap: var(--size-4-1);
}
/* ---------- v0.3: setup wizard ---------- */
.vsg-wizard {
width: min(640px, 95vw);
}
.vsg-wz-steps {
display: flex;
flex-wrap: wrap;
gap: var(--size-4-2);
margin-bottom: var(--size-4-3);
font-size: var(--font-ui-smaller);
color: var(--text-faint);
}
.vsg-wz-steps .is-active {
color: var(--text-accent);
font-weight: var(--font-semibold);
}
.vsg-wz-steps .is-done {
color: var(--text-muted);
}
.vsg-wz-status,
.vsg-wz-progress {
margin: var(--size-4-2) 0;
}
.vsg-wz-progress {
padding: var(--size-4-3);
background: var(--background-secondary);
border-radius: var(--radius-m);
font-family: var(--font-monospace);
}
.vsg-wz-code {
font-size: 1.8em;
font-family: var(--font-monospace);
letter-spacing: 0.15em;
margin: var(--size-4-2) 0;
cursor: copy;
user-select: all;
}
.vsg-wz-search {
width: 100%;
margin-bottom: var(--size-4-2);
}
.vsg-wz-repos {
max-height: 40vh;
overflow: auto;
}
.vsg-wz-repo {
display: flex;
justify-content: space-between;
gap: var(--size-4-2);
padding: var(--size-4-2);
border-radius: var(--radius-s);
cursor: pointer;
word-break: break-all;
}
.vsg-wz-repo:hover {
background: var(--background-modifier-hover);
}
.vsg-badge {
font-size: var(--font-ui-smaller);
padding: 0 6px;
border-radius: var(--radius-s);
background: var(--background-secondary-alt);
color: var(--text-muted);
flex-shrink: 0;
}
.vsg-badge-warn {
background: rgba(var(--color-red-rgb), 0.15);
color: var(--text-error);
}
.vsg-wz-options {
display: flex;
flex-direction: column;
gap: var(--size-4-2);
margin: var(--size-4-3) 0;
}
.vsg-wz-option {
display: flex;
gap: var(--size-4-2);
align-items: flex-start;
padding: var(--size-4-2);
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-m);
cursor: pointer;
}
/* ---------- 1.1: on-demand attachments ---------- */
.vsg-ondemand {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--size-4-2);
margin: var(--size-4-1) 0;
padding: var(--size-4-2);
border: 1px dashed var(--background-modifier-border);
border-radius: var(--radius-m);
color: var(--text-muted);
font-size: var(--font-ui-small);
}
/* Sign in with GitHub: device code */
.vsg-device-code {
font-family: var(--font-monospace);
font-size: 2em;
letter-spacing: 0.15em;
text-align: center;
padding: var(--size-4-3);
margin: var(--size-4-2) 0;
border-radius: var(--radius-m);
background: var(--background-secondary);
user-select: all;
}
.vsg-hidden {
display: none;
}
/* File explorer: edited since the last sync, and conflict copies */
.nav-file-title.vsg-x-pending .nav-file-title-content::after {
content: "";
display: inline-block;
width: 6px;
height: 6px;
margin-inline-start: 6px;
border-radius: 50%;
background: var(--color-accent);
vertical-align: middle;
}
.nav-file-title.vsg-x-conflict .nav-file-title-content {
color: var(--text-warning);
}
.nav-file-title.vsg-x-conflict .nav-file-title-content::after {
content: " ⚠";
}
/* Add a device: setup link and QR code */
.vsg-qr-box {
display: flex;
justify-content: center;
margin: var(--size-4-2) 0;
}
.vsg-qr {
width: min(260px, 70vw);
height: auto;
border-radius: var(--radius-s);
image-rendering: pixelated;
}
/* Settings: folded sections and indented sub-options */
.vsg-group {
border-top: 1px solid var(--background-modifier-border);
padding: var(--size-4-2) 0;
}
.vsg-group-summary {
cursor: pointer;
font-weight: var(--font-semibold);
font-size: var(--font-ui-medium);
padding: var(--size-4-2) 0;
}
.setting-item.vsg-indent {
padding-inline-start: var(--size-4-6);
}
/* "Changes on the host" dot on the ribbon icon and status bar */
.vsg-remote-ahead {
position: relative;
}
.vsg-remote-ahead::after {
content: "";
position: absolute;
top: 3px;
right: 3px;
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--color-accent);
}
/* Review: filters */
.vsg-review-filter {
display: flex;
flex-wrap: wrap;
gap: var(--size-4-2);
align-items: center;
margin-bottom: var(--size-4-2);
}
.vsg-review-search {
flex: 1 1 180px;
}
.vsg-chips {
display: flex;
flex-wrap: wrap;
gap: var(--size-2-2);
}
.vsg-chip.is-active {
background: var(--interactive-accent);
color: var(--text-on-accent);
}
/* Inline conflict resolution: buttons above each <<<<<<< block */
.vsg-conflict-bar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: var(--size-2-2);
padding: var(--size-2-2) var(--size-4-2);
margin: var(--size-2-1) 0;
border-radius: var(--radius-s);
background: var(--background-modifier-hover);
font-family: var(--font-interface);
font-size: var(--font-ui-smaller);
}
.vsg-conflict-hint {
color: var(--text-muted);
margin-inline-end: var(--size-2-2);
}
.vsg-conflict-btn {
font-size: var(--font-ui-smaller);
padding: 2px var(--size-4-2);
}
/* Touch screens: full-height buttons that are easy to hit. */
.is-mobile .vsg-conflict-btn {
min-height: var(--input-height);
padding: var(--size-4-1) var(--size-4-3);
font-size: var(--font-ui-small);
}
/* Conflict blocks in the editor: tinted sides, marker lines as small labels, no Markdown styling. */
.markdown-source-view.mod-cm6 .cm-line.vsg-cm-side,
.markdown-source-view.mod-cm6 .cm-line.vsg-cm-marker {
font-size: var(--font-text-size);
font-weight: var(--font-normal);
line-height: var(--line-height-normal);
color: var(--text-normal);
border-inline-start: 3px solid transparent;
padding-inline-start: var(--size-4-2);
}
.markdown-source-view.mod-cm6 .cm-line.vsg-cm-side .cm-header,
.markdown-source-view.mod-cm6 .cm-line.vsg-cm-side .cm-quote {
font: inherit;
color: inherit;
}
.markdown-source-view.mod-cm6 .cm-line.vsg-cm-ours {
background: rgba(var(--color-green-rgb), 0.08);
border-inline-start-color: rgba(var(--color-green-rgb), 0.6);
}
.markdown-source-view.mod-cm6 .cm-line.vsg-cm-theirs {
background: rgba(var(--color-blue-rgb), 0.08);
border-inline-start-color: rgba(var(--color-blue-rgb), 0.6);
}
.markdown-source-view.mod-cm6 .cm-line.vsg-cm-base {
background: var(--background-modifier-hover);
}
.vsg-cm-marker-label {
font-family: var(--font-monospace);
font-size: var(--font-ui-smaller);
color: var(--text-muted);
}
.vsg-cm-marker-open::before {
content: "▼ ";
}
.vsg-cm-marker-close::before {
content: "▲ ";
}
.vsg-cm-marker-sep {
display: inline-block;
width: 100%;
border-top: 1px dashed var(--background-modifier-border);
vertical-align: middle;
}
.vsg-badge-new {
background: var(--interactive-accent);
color: var(--text-on-accent);
}
/* ---------- 1.6: history sidebar ---------- */
.vsg-history {
padding: var(--size-4-2);
overflow-x: hidden;
}
.vsg-hist-bar {
display: flex;
gap: var(--size-4-1);
align-items: center;
margin-bottom: var(--size-4-2);
}
.vsg-hist-filter {
flex: 1;
min-width: 0;
}
.vsg-hist-msg {
padding: var(--size-4-2) 0;
}
.vsg-hist-commits,
.vsg-hist-files {
list-style: none;
padding: 0;
margin: 0;
}
.vsg-hist-commit {
border-bottom: 1px solid var(--background-modifier-border);
}
.vsg-hist-head {
display: flex;
gap: var(--size-4-1);
padding: var(--size-4-2) var(--size-4-1);
border-radius: var(--radius-s);
cursor: pointer;
}
.vsg-hist-head:hover,
.vsg-hist-name:hover {
background: var(--background-modifier-hover);
}
.vsg-hist-head:focus-visible,
.vsg-hist-name:focus-visible {
box-shadow: 0 0 0 2px var(--background-modifier-border-focus);
outline: none;
}
.vsg-hist-chevron {
flex: none;
color: var(--text-muted);
}
.vsg-hist-text {
min-width: 0;
overflow-wrap: anywhere;
}
.vsg-hist-body {
padding: 0 var(--size-4-1) var(--size-4-2) var(--size-4-6);
}
.vsg-hist-file {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: var(--size-4-1);
padding: 2px 0;
}
.vsg-hist-name {
display: flex;
gap: var(--size-4-2);
align-items: baseline;
flex: 1;
min-width: 0;
padding: var(--size-4-1);
border-radius: var(--radius-s);
cursor: pointer;
font-size: var(--font-ui-small);
}
.vsg-hist-path {
overflow-wrap: anywhere;
min-width: 0;
}
.vsg-hist-status {
flex: none;
width: 1.4em;
text-align: center;
font-family: var(--font-monospace);
font-weight: var(--font-semibold);
}
.vsg-hist-status.is-added {
color: var(--color-green);
}
.vsg-hist-status.is-modified {
color: var(--color-yellow);
}
.vsg-hist-status.is-deleted {
color: var(--color-red);
}
.vsg-hist-status.is-renamed {
color: var(--color-blue);
}
.vsg-hist-restore {
font-size: var(--font-ui-smaller);
}
.vsg-hist-actions {
display: flex;
flex-wrap: wrap;
gap: var(--size-4-1);
margin-top: var(--size-4-2);
}
.vsg-hist-more {
width: 100%;
margin-top: var(--size-4-2);
}
.vsg-h-pending summary {
cursor: pointer;
color: var(--text-muted);
font-size: var(--font-ui-small);
padding: var(--size-4-1) 0;
}
/* Editor change markers: lines changed since the last sync */
.vsg-change-gutter .cm-gutterElement {
padding: 0;
cursor: pointer;
}
.vsg-change-mark {
position: relative;
width: 8px;
height: 100%;
}
.is-mobile .vsg-change-mark {
width: 12px;
}
.vsg-change-mark::before {
content: "";
position: absolute;
left: 2px;
top: 0;
bottom: 0;
width: 3px;
border-radius: 1px;
}
.vsg-change-add::before {
background: var(--color-green);
}
.vsg-change-change::before {
background: var(--color-blue);
}
.vsg-change-delete::before,
.vsg-change-delete-below::before {
bottom: auto;
top: -4px;
width: 0;
height: 0;
border: 4px solid transparent;
border-left: 6px solid var(--color-red);
border-radius: 0;
}
.vsg-change-delete-below::before {
top: auto;
bottom: -4px;
}
.vsg-change-popover {
position: fixed;
top: var(--vsg-pop-top, 0);
left: var(--vsg-pop-left, 0);
z-index: var(--layer-popover);
max-width: min(480px, calc(100vw - 16px));
padding: var(--size-4-2) var(--size-4-3);
background: var(--background-primary);
border: 1px solid var(--background-modifier-border);
border-radius: var(--radius-m);
box-shadow: var(--shadow-s);
font-size: var(--font-ui-small);
}
.vsg-change-popover-title {
font-weight: var(--font-semibold);
}
.vsg-change-popover-label {
margin: var(--size-4-1) 0;
color: var(--text-muted);
}
.vsg-change-old {
max-height: 40vh;
overflow: auto;
margin: 0;
padding: var(--size-4-2);
background: var(--background-secondary);
border-radius: var(--radius-s);
font-size: var(--font-ui-smaller);
white-space: pre-wrap;
word-break: break-word;
}
.vsg-change-popover-buttons {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: var(--size-4-2);
margin-top: var(--size-4-2);
}
/* Files and folders that don't sync (file explorer, when sync status is shown there). */
.nav-file-title.vsg-x-excluded,
.nav-folder-title.vsg-x-excluded {
opacity: 0.5;
}
.nav-file-title.vsg-x-excluded .nav-file-title-content,
.nav-folder-title.vsg-x-excluded .nav-folder-title-content {
font-style: italic;
}
/* Status bar: branch and time until the next sync. */
.vsg-status-extra {
display: inline-flex;
gap: var(--size-4-2);
}
.vsg-status-part {
display: inline-flex;
align-items: center;
gap: var(--size-2-1);
}
.vsg-status-icon {
display: inline-flex;
}
.vsg-status-icon svg {
width: var(--icon-xs);
height: var(--icon-xs);
}
/* "Sync with a custom message…" and the exclude patterns editor. */
.vsg-commit-input,
.vsg-exclude-editor {
width: 100%;
}
.vsg-exclude-editor {
font-family: var(--font-monospace);
}
/* Rows of several buttons (encryption dialog): wrap on narrow screens instead of running off the edge. */
.vsg-wrap-controls .setting-item-control {
flex-wrap: wrap;
justify-content: flex-end;
gap: var(--size-4-2);
}