-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
42 lines (37 loc) · 1.29 KB
/
Copy pathstyles.css
File metadata and controls
42 lines (37 loc) · 1.29 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
/* ── Hide original text during rename ─────────────────────────── */
.inline-rename-hidden {
display: none;
}
/* ── Inline Rename input styling ──────────────────────────────── */
/* Blends the rename input with Obsidian's native file explorer look */
.inline-rename-input {
position: relative;
z-index: 10;
width: 100%;
height: 24px;
line-height: 24px;
padding: 0 6px;
margin: 0;
border: 1.5px solid var(--interactive-accent);
border-radius: 4px;
font-family: inherit;
font-size: inherit;
color: var(--text-normal);
background: var(--background-primary);
outline: none;
box-sizing: border-box;
}
.inline-rename-input:focus {
border-color: var(--interactive-accent-hover);
box-shadow: 0 0 0 1px var(--interactive-accent);
}
/* ── Subtle hint that the active file is renameable ────────────── */
.nav-file.is-active .nav-file-title-content {
cursor: text;
}
/* Show a faint underline on hover to hint "click to rename" */
.nav-file.is-active .nav-file-title-content:hover {
text-decoration: underline;
text-decoration-color: var(--text-faint);
text-underline-offset: 2px;
}