-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path[user] Daily Note - Sticky Headings.css
73 lines (58 loc) · 1.7 KB
/
[user] Daily Note - Sticky Headings.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
/*
Daily note styles for Sticky Headings plugin. Disables plugin on non-daily note pages.
Enable 'PrevToH1' option in plugin settings
https://github.com/replete/obsidian-minimal-theme-css-snippets
*/
.obsidian-sticky-heading {
display:none; /* Enable only for some templates */
.dailynote & {
display:flex;
}
background:linear-gradient(0deg, transparent, var(--bg2) 20%);
&:has(.obsidian-sticky-heading_inner:not(:empty)) {
padding:8px 0 16px 0;
}
.obsidian-sticky-heading_inner {
background:transparent;
.HyperMD-header {
margin-top:0 !important;
margin-bottom:0 !important;
/* second item */
+ .HyperMD-header {
padding:0 !important;
h1, h2, h3, h4, h5, h6 {
font-size:14px;
}
}
/* Hide 3rd onwards items */
+ .HyperMD-header ~ .HyperMD-header {
display:none;
}
.cm-header[class*=cm-header-] {
margin-top:0 !important;
margin-bottom:0 !important;
}
}
}
.obsidian-sticky-heading_text {
margin-top:0;
h1, h2, h3, h4, h5, h6 {
font-size:18px;
}
}
/* Hide the H* level text */
.obsidian-sticky-heading_level {
/* color: transparent; */
display:none;
/* &::before {
content:'›';
color: var(--tx2);
display:block;
position:absolute;
right:0;
top:50%;
transform: translateY(-50%);
font-size:1rem
} */
}
}