-
Notifications
You must be signed in to change notification settings - Fork 23
/
MakeMD Inline Context.css
41 lines (35 loc) · 1.03 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
/*
Make.MD Banners
The only thing I use Make.MD for now is the banner functionality.
This base snippet hides inline-contexts altogether - we only want it for the banners.
https://github.com/replete/obsidian-minimal-theme-css-snippets
*/
:root {
--replete-banner-height: 180px; /* Set banner height here */
}
.mk-inline-context {
.mk-path-context-component {
/* Hide inline context entirely */
display:none;
&:has(.mk-space-banner) {
/* ...Except if there's a banner displaying... */
display:inherit;
/* ...and we hide it this way */
.mk-props-contexts {
display:none;
}
}
}
.mk-space-banner {
height: var(--replete-banner-height);
:is(img) {
height: var(--replete-banner-height);
/* Disable magnify cursor */
cursor:default !important
}
}
}
/* Hide banner in hover popover */
.hover-popover .mk-space-banner {
display:none;
}