-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
194 lines (168 loc) · 5.5 KB
/
Copy pathstyles.css
File metadata and controls
194 lines (168 loc) · 5.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
/* Symlink Manager — modal layout */
.symlink-manager-modal .sm-section {
margin-bottom: 0.75rem;
}
.symlink-manager-modal .sm-status {
margin: 0.5rem 0 0.75rem;
padding: 0.5rem 0.75rem;
border-radius: 6px;
background: var(--background-secondary);
min-width: 0;
}
.symlink-manager-modal .sm-status-line {
display: flex;
align-items: center;
gap: 0.45rem;
min-width: 0;
}
.symlink-manager-modal .sm-status-label {
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
}
.symlink-manager-modal .sm-target-row {
display: flex;
align-items: center;
gap: 0.4rem;
margin-top: 0.25rem;
min-width: 0;
}
.symlink-manager-modal .sm-target-arrow {
flex: 0 0 auto;
color: var(--text-muted);
}
.symlink-manager-modal .sm-target-path {
flex: 1 1 auto;
min-width: 0;
font-family: var(--font-monospace);
font-size: var(--font-ui-smaller);
color: var(--text-muted);
white-space: nowrap;
overflow: hidden;
}
.symlink-manager-modal .sm-warn {
color: var(--color-orange, #d08a3a);
font-size: var(--font-ui-smaller);
margin-top: 0.25rem;
}
/* Status dot */
.symlink-manager-modal .sm-dot {
flex: 0 0 auto;
width: 0.65em;
height: 0.65em;
border-radius: 50%;
display: inline-block;
background: var(--background-modifier-border);
}
.symlink-manager-modal .sm-dot-junction { background: #3aa757 !important; }
.symlink-manager-modal .sm-dot-symlink { background: #d08a3a !important; }
.symlink-manager-modal .sm-dot-broken { background: #d04a4a !important; }
.symlink-manager-modal .sm-dot-none { background: var(--background-modifier-border) !important; }
/* Action cards */
.symlink-manager-modal .sm-actions-title {
margin: 0.75rem 0 0.5rem;
font-size: var(--font-ui-smaller);
color: var(--text-muted);
text-transform: uppercase;
letter-spacing: 0.04em;
}
.symlink-manager-modal .sm-card {
padding: 0.75rem;
border: 1px solid var(--background-modifier-border);
border-radius: 8px;
margin-bottom: 0.5rem;
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.symlink-manager-modal .sm-card-title {
font-weight: 600;
}
.symlink-manager-modal .sm-card-desc {
font-size: var(--font-ui-smaller);
color: var(--text-muted);
}
.symlink-manager-modal .sm-actions {
display: flex;
justify-content: flex-end;
gap: 0.5rem;
margin-top: 0.75rem;
}
/* Debug / timing bar — only visible when sm-debug-visible class is set */
.symlink-manager-modal .sm-debug {
display: none;
}
.symlink-manager-modal .sm-debug.sm-debug-visible {
display: block;
margin-top: 0.5rem;
padding: 0.35rem 0.6rem;
border-radius: 4px;
background: var(--background-secondary);
font-family: var(--font-monospace);
font-size: var(--font-ui-smaller);
color: var(--text-muted);
border-left: 3px solid var(--color-accent, #7f6df2);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* ── File explorer badges ──────────────────────────────────────────────────
* Only affects .nav-folder-title rows that OUR BadgeRenderer has decorated
* with .sm-link-active / .sm-link-broken. No !important on layout props —
* the dual-class specificity is enough. !important is reserved solely for
* the dot colours so no theme can make them invisible.
*
* Row layout after injection:
* [collapse-icon] [folder-name] [target-path right-aligned] [●]
* ------------------------------------------------------------------------- */
/* ── File explorer badges ──────────────────────────────────────────────────
* Rules here ONLY affect elements that our plugin creates or marks.
* We deliberately never touch .nav-folder-title-content so that other
* plugins' icons (Icon Folder, etc.) injected inside it are never clipped
* or repositioned.
*
* Layout: .nav-folder-title is already flex in Obsidian.
* [icons/collapse] [.nav-folder-title-content — untouched] [.sm-path-badge] [.sm-dot-badge]
*
* Both .nav-folder-title-content and .sm-path-badge use flex-grow: 1 so they
* share available space. The path badge starts at 0 basis so the name always
* wins the natural-size priority, and the path fills whatever is left.
* ------------------------------------------------------------------------- */
/* Only rows flagged by our renderer — no effect on any other folder row. */
.nav-folder-title.sm-link-active,
.nav-folder-title.sm-link-broken {
align-items: center;
}
/* Path badge: shares leftover space with the name, right-aligns its text.
flex-basis 0 means it only grows into genuinely unused space. */
.nav-folder-title > .sm-path-badge {
flex: 1 1 0;
min-width: 0;
overflow: hidden;
white-space: nowrap;
text-align: right;
font-size: 0.72em;
color: var(--text-faint);
opacity: 0.75;
padding-left: 0.4em;
padding-right: 0.1em;
font-family: var(--font-monospace);
}
/* Dot: fixed size, never shrinks, always visible. */
.nav-folder-title > .sm-dot-badge {
flex: 0 0 auto;
display: inline-block;
width: 0.55em;
height: 0.55em;
border-radius: 50%;
margin-left: 0.4em;
margin-right: 0.2em;
align-self: center;
}
/* Dot colours: the only place we use !important — prevents themes from
overriding the signal colour on an element we own entirely. */
.nav-folder-title > .sm-dot-badge-junction { background: #3aa757 !important; }
.nav-folder-title > .sm-dot-badge-symlink { background: #d08a3a !important; }
.nav-folder-title > .sm-dot-badge-broken { background: #d04a4a !important; }