-
Notifications
You must be signed in to change notification settings - Fork 23
/
[editor] Custom Tag styles.css
116 lines (102 loc) · 3.03 KB
/
[editor] Custom Tag styles.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
/*
Custom tag styles
https://github.com/replete/obsidian-minimal-theme-css-snippets
*/
:root {
--replete-tag-border: none;
--replete-tag-radius: 3px;
}
/* --- Clean style tags --- */
/* .cm-hashtag {
border-radius:0 !important;
border:var(--replete-tag-border);
}
.cm-hashtag-begin {
padding-left:var(--replete-tag-padding-horizontal) !important;
border:var(--replete-tag-border) !important;
}
.cm-hashtag-end {
padding-right:var(--replete-tag-padding-horizontal) !important;
border:var(--replete-tag-border) !important;
} */
/* --- Box styling if tag is in a list --- */
.HyperMD-list-line .cm-hashtag {
border:var(--replete-tag-border) !important;
background-color: hsla(var(--base-h), var(--base-s), calc(var(--base-l) - 20%), 0.3);
color:var(--tx4);
display: inline-block;
line-height:1em;
transform: translate(0,-2px);
}
.theme-dark .HyperMD-list-line .cm-hashtag {
background-color: hsla(var(--base-h), var(--base-s), calc(var(--base-l) + 40%), 0.4);
}
/* Hide pound sign without breaking dropdown UI hook */
.HyperMD-list-line .cm-hashtag-begin {
width:0;
visibility:hidden;
display:none;
font-size:10px;
}
/* main hashtag styling */
.HyperMD-list-line .cm-hashtag-end {
border:var(--replete-tag-border) !important;
border-radius: var(--replete-tag-radius) !important;
padding: 3px 3px 3px 4px !important;
text-transform: uppercase !important;
font-weight:600;
font-size:10px;
letter-spacing: 0.04em;
}
/* alternate styles when line is active for editing */
.HyperMD-list-line.cm-active .cm-hashtag-end {
text-transform:none !important;
font-weight:500 !important;
font-size:11px;
letter-spacing:normal;
border-top-left-radius:0 !important;
border-bottom-left-radius:0 !important;
}
.HyperMD-list-line.cm-active .cm-hashtag-begin {
width:0.6em;
font-size:11px;
font-weight:500 !important;
visibility: visible;
display:inline-block;
border-top-left-radius: var(--replete-tag-radius);
border-bottom-left-radius: var(--replete-tag-radius);
padding: 3px !important;
opacity:0.8;
}
/* Boxed style for Tasks dataviews */
.plugin-tasks-list-item .tag {
border:var(--replete-tag-border) !important;
background-color: hsla(var(--base-h), var(--base-s), calc(var(--base-l) - 20%), 0.3);
border-radius: var(--replete-tag-radius) !important;
padding: 3px 2px 3px 2px !important;
text-transform: uppercase !important;
font-weight:600;
font-size:10px;
letter-spacing: 0.04em;
transform: translate(0,-2px);
display:inline-block;
}
.theme-dark .plugin-tasks-list-item .tag {
background-color: hsla(var(--base-h), var(--base-s), calc(var(--base-l) + 40%), 0.4);
}
/* GTD tags */
.cm-tag-next {
color:var(--color-accent-1) !important;
}
.cm-tag-someday {
color:var(--color-orange) !important;
}
.cm-tag-waiting {
color:var(--color-pink) !important;
}
.cm-tag-blocked {
color:var(--color-red) !important;
}
.cm-tag-done {
color:var(--color-green) !important;
}