-
Notifications
You must be signed in to change notification settings - Fork 23
/
[ui] Compact Properties.css
95 lines (76 loc) · 1.83 KB
/
[ui] Compact Properties.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
/*
Compact Properties
https://github.com/replete/obsidian-minimal-theme-css-snippets
*/
/* Compact style */
.cm-editor .metadata-container {
padding-top:0;
padding-bottom:6px;
}
.cm-editor .metadata-properties-heading {
display:none;
}
/* Autohide on hover for desktop */
body:not(.is-mobile) {
.cm-editor .metadata-container {
height:.5em;
margin-bottom:0;
.metadata-content {
display:none;
}
&::before {
content:'⋯';
display:block;
position:absolute;
height:100%;
width:100%;
line-height:1em;
text-indent:3px;
top:-4px;
pointer-events:none;
}
&:is(:hover,:focus-within) {
height:auto;
background: inherit;
&::before {
display:none;
}
.metadata-content {
display:inherit;
}
}
}
}
/* Hide properties on mobile */
body:is(.is-mobile) {
--metadata-display-editing: none;
}
/* Properties panel fixes */
.workspace-leaf-content[data-type=all-properties] {
.nav-header {
padding-top:6px;
padding-bottom:0;
.nav-buttons-container {
margin-right:0 !important;
padding-left:2px
}
/* correct icon alignment */
.clickable-icon svg {
transform: translate(-2px,0);
}
.search-input-container {
outline:2px solid red;
}
}
.tree-item {
/* fix properties panel item alignment */
padding-left: 15px;
/* more compact */
margin-top:-5px;
}
}
/* Hide banner in hover popover */
.hover-popover .metadata-container {
display:none !important;
outline: 2px solid red;
}