forked from replete/obsidian-minimal-theme-css-snippets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MakeMD Inline Context.css
157 lines (123 loc) · 3.6 KB
/
MakeMD Inline Context.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
/*
Make.MD Banners
The only thing I use Make.MD for now is the banner functionality.
This base snippet alters metrics and makes the layout comopact.
Use the other Duotone, Faded, Autohide, Disable meta in addition.
https://github.com/replete/obsidian-minimal-theme-css-snippets
*/
.mk-file-context-component > .mk-spacer {
max-height:10px !important;
}
/* Tags */
.mk-file-context-component .mk-tag-selector {
margin-top:-3px;
}
.mk-file-context-component .mk-tag-selector .cm-hashtag {
border:none;
padding:0;
opacity:1;
}
/* Small tag text */
.mk-file-context-component .mk-tag-selector :is(.cm-hashtag-begin, .cm-hashtag-end){
font-size:11px !important;
}
/* Add Property, Add Tag, Change Cover buttons */
.mk-file-context-component .mk-file-context-field-new {
order:2;
margin-top:5px;
gap:6px
}
.mk-file-context-component .mk-file-context-field-new button {
background:var(--background-modifier-hover) !important;
text-transform:uppercase;
font-weight:700;
font-size:9px;
padding:3px 4px 3px 3px !important;
line-height:7px;
height: auto;
color:var(--tx3) !important;
text-indent:-3px;
}
.theme-dark .mk-file-context-component .mk-file-context-field-new button {
color:var(--tx2) !important;
}
.mk-file-context-component .mk-file-context-field-new button:hover {
color:var(--tx2) !important
}
.theme-dark .mk-file-context-component .mk-file-context-field-new button:hover {
color:var(--tx1) !important;
}
.mk-file-context-component .mk-file-context-field-new button .mk-icon-xsmall {
transform:scale(0.9);
transform-origin:center center;
}
.mk-file-context-component .mk-file-context-field-new button:first-of-type .mk-icon-xsmall {
transform: translate(0, -0.5px) scale(0.85)
}
.theme-dark .mk-file-context-component .mk-file-context-field-new button .mk-icon-xsmall svg {
stroke:var(--tx2) !important
}
.mk-file-context-component .mk-file-context-field-new button:nth-of-type(2) .mk-icon-xsmall {
transform: translate(0, -0.5px) scale(0.85);
}
.mk-file-context-component .mk-file-context-field-new {
opacity:1;
}
/* File properties */
.mk-file-context-component:has(.mk-file-context-section) {
margin-top:-5px
}
.mk-file-context-field {
min-height:none !important;
width:25%
}
.mk-file-context-section {
gap:0
}
.mk-file-context-component:has(.mk-file-context-section) div:empty{
display:none;
}
/* File properties: Fix checkboxes */
.mk-cell-text input[type=checkbox] {
transform:translate(0,-2px)
}
.mk-cell-text:has(input[type=checkbox]) {
max-height:20px;
}
.mk-cell-text:has(input[type=checkbox]):hover {
background:transparent !important
}
/* File metadata: value */
.mk-cell-text {
color:var(--text-faint) !important
}
.mk-cell-text:hover,
.mk-cell-text:focus-within {
color:var(--tx1) !important
}
.theme-dark .mk-cell-text:hover,
.theme-dark .mk-cell-text:focus-within {
color:var(--text) !important
}
/* File metadata: Brighter colours on dark theme */
.theme-dark .mk-cell-text,
.theme-dark .mk-file-context-field {
color: var(--tx2) !important
}
/* No file properties: Hide empty div */
.mk-header:not(:has(.mk-note-header img)) .mk-file-context-component > div:empty{
display:none;
}
/* Banners */
/* Disable magnify cursor */
.mk-note-header img {
cursor:default !important
}
/* Banners: Fix inline title spacing */
.mk-note-header:has(img) + .mk-file-context-component {
padding-top:45px !important;
}
/* Hide banner in hover popover */
.hover-popover .mk-header {
display:none;
}