-
Notifications
You must be signed in to change notification settings - Fork 23
/
Task Progressbars.css
58 lines (50 loc) · 1.66 KB
/
Task Progressbars.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
/*
Task Progress bars
I really like this plugin. This aligns them to my typography and makes them less ugly
https://github.com/replete/obsidian-minimal-theme-css-snippets
*/
.markdown-source-view:not(.is-live-preview) {
.cm-task-progress-bar {
display:none;
}
}
.cm-task-progress-bar.with-number .progress-status {
color:var(--tx2);
font-weight:400;
font-size:10px;
position:absolute;
transform:translate(-4px,-12px);
width:4em;
}
.HyperMD-header .cm-task-progress-bar {
pointer-events:none;
position: absolute;
margin-top:calc(.5em + 1px);
margin-left:10px;
}
/* colors */
/* .cm-task-progress-bar .progress-bar-inline-1 { background-color:var(--color-red) }
.cm-task-progress-bar .progress-bar-inline-2 { background-color:var(--color-yellow) }
.cm-task-progress-bar .progress-bar-inline-3 { background-color:var(--color-green) } */
.cm-task-progress-bar .progress-bar-inline-4 { background-color:#6BCB77 }
/* background color */
.HyperMD-header .cm-task-progress-bar .progress-bar-inline-background {
background-color: hsla(var(--base-h), var(--base-s), calc(var(--base-l) - 10%), 0.8) !important;
opacity:0.5
}
.theme-dark .HyperMD-header .cm-task-progress-bar .progress-bar-inline-background {
background-color: hsla(var(--base-h), var(--base-s), calc(var(--base-l) + 25%), 0.8) !important;
}
/* complete checkmark state */
.cm-task-progress-bar .progress-bar-inline-4 {
display:none;
}
.cm-task-progress-bar:has(.progress-bar-inline-4)::after {
content:'✓';
position:absolute;
top:50%;
color: var(--tx2);
font-size:24px;
line-height: 1em;
transform:translate(-4px, -8px)
}