-
Notifications
You must be signed in to change notification settings - Fork 23
/
[ui] Ultra Compact.css
185 lines (159 loc) · 3.37 KB
/
[ui] Ultra Compact.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
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
/*
Ultra Compact
More compact navigation tabs, toolbars, smaller icons.
Requires Compact Tabs snippet.
https://github.com/replete/obsidian-minimal-theme-css-snippets
*/
:root {
--replete-ultra-compact-header-height: 29px;
--replete-custom-separators-vertical-padding: 3px;
}
/* Left sidebar header
*/
.mod-top-left-space {
.workspace-tab-header-container-inner {
padding-bottom:2px;
}
/* Hide border underneath sidebar top buttons */
.workspace-tab-header-container {
border-bottom:0 !important;
&::after {
content:'';
position:absolute;
display:block;
bottom:0;
width:100%;
height:1px;
background:linear-gradient(to right, transparent, var(--tab-outline-color) 20%);
}
/* &::after {
content:'';
position:absolute;
display:block;
top:0;
width:100%;
height:calc(100% - 1px);
border-bottom-left-radius: 8px;
border-left: 1px solid var(--tab-outline-color);
border-bottom: 1px solid var(--tab-outline-color);
} */
/* .workspace-tab-header-container-inner {
padding-left:5px;
} */
.sidebar-toggle-button {
margin-top: -6px;
margin-right:-3px;
.clickable-icon {
border-radius:0 !important;
}
}
}
.workspace-tab-header {
&.is-active {
background:none;
}
.workspace-tab-header-inner {
padding-left:1px !important;
padding-right:1px !important;
}
}
/* File Explorer */
[data-type=file-explorer] {
/* header */
.nav-buttons-container {
justify-content: flex-end !important;
margin-top:-3px;
margin-right:-2px;
margin-bottom:-5px;
.nav-action-button {
padding:2px;
svg {
width:15px;
height:15px;
}
}
}
/* explorer */
.nav-files-container {
margin-top:6px;
.tree-item[class*=nav-] .tree-item-self {
padding-top:2px;
padding-bottom:2px;
border-radius: 3px;
}
}
}
}
body:has(.mod-left-split.is-sidedock-collapsed) .mod-top-left-space .sidebar-toggle-button {
margin-right:4px !important;
}
/* Navigation header */
.workspace-tab-header-container {
padding-left:0;
max-height: var(--replete-ultra-compact-header-height) !important;
}
.workspace-tab-header {
padding-bottom:0 !important;
padding-right:0 !important;
padding-left:0 !important;
&.is-active {
/* background:transparent !important; */
border-radius:0;
}
}
.workspace-tab-header-inner {
border-radius:0;
}
.workspace-tab-header-inner-icon {
padding-left:2px;
}
div.workspace-tab-header-container-inner.workspace-tab-header-container-inner { /* specificity hack */
margin-top:0 !important;
margin-bottom:0 !important;
}
.workspace-tab-header-tab-list {
/* Navigation tabs chevron menu */
margin-right:0;
}
/* Right sidebar header
*/
.mod-top-right-space {
/* Panel icons */
.workspace-tab-header-container-inner {
padding-top:0;
padding-bottom:0;
gap:0;
}
/* Right sidebar toggle button */
.sidebar-toggle-button.mod-right {
padding-top: 0 !important;
padding-right:2px !important;
margin-top:-2px !important;
background:transparent !important;
}
}
/* View header
*/
.view-header {
box-shadow: 0 0px 4px 2px var(--bg2);
> [class^=view-] {
transform:translateY(1px);
}
.view-header-nav-buttons {
padding-left:2px;
.clickable-icon {
padding-left:3px;
padding-right:3px;
}
}
.view-action {
margin-right:2px;
}
}
/* Minimal Statusbar
*/
@container style(--status-bar-position: fixed) {
.status-bar {
padding:0;
}
}