forked from replete/obsidian-minimal-theme-css-snippets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakeMD Compact Spaces (abandoned).css
104 lines (91 loc) · 2.25 KB
/
MakeMD Compact Spaces (abandoned).css
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
/*
Make.MD Compact Spaces
This makes the Spaces panel more compact with chevron on right
(I don't use this anymore, if you fix it please submit PR)
https://github.com/replete/obsidian-minimal-theme-css-snippets
*/
/***** SPACES ******/
/* Assumes compact view enabled */
/* Shift collapse/expand to end of text */
.mk-sidebar .mk-collapse {
order:1;
}
.mk-sidebar .mk-tree-text {
flex-grow:0 !important;
}
.mk-tree-item:hover {
align-items:right !important;
}
.mk-tree-item:hover .mk-folder-buttons {
order:1 !important;
flex-grow:1;
display:flex !important;
justify-content: end !important
}
/* Style collapse button */
.mk-sidebar .mk-collapse svg {
transform:translate(-5px,1px) scale(0.9);
opacity:0.8
}
.mk-sidebar .mk-collapse:hover {
background:transparent !important;
}
.mk-sidebar .mk-collapse:hover svg {
opacity:1;
}
/* Style section text */
.mk-sidebar .mk-section-title .mk-tree-text{
font-weight: 500;
text-transform: uppercase;
letter-spacing: .05em;
color: var(--text-muted);
font-size: var(--font-adaptive-smallest) !important;
}
/* sidebar header margins */
.mk-sidebar .mk-flow-bar-compact {
margin-bottom:-15px;
}
/* Less prominent main menu-button */
.mk-main-menu-button {
color:var(--tx2)
}
/* Move drag handle to right side */
.mk-tree-wrapper > div {
display:inline-flex;
}
.mk-drag-handle {
order:2;
margin-left:-4px;
}
.mk-drag-handle svg {
transform:translate(3px,0)
}
.mk-tree-wrapper:hover:has(.mk-drag-handle:hover) .mk-folder-buttons {
display:none !important;
}
/* These styles are for the drag handle reposition: */
/* Tree margins */
.mk-tree-wrapper {
padding-left:15px !important;
padding-right:0;
}
/* section header text wrapper */
.mk-section-wrapper {
margin-left:-14px;
}
.mk-tree-wrapper .nav-file-title,
.mk-tree-wrapper .nav-folder-title {
margin-right:0;
}
/* Section heading text */
.mk-section .mk-tree-text {
color:var(--tx3) !important;
}
/* Fix top header padding alignment */
.mk-flow-bar-compact {
padding-top:3px;
}
/* Section heading icon alignment */
.mk-section-title:hover .mk-collapse svg {
transform: translate(-2px,-1px) scale(0.8);
}