-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathTasks - Expand dates on hover.css
170 lines (150 loc) · 4.2 KB
/
Tasks - Expand dates on hover.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
158
159
160
161
162
163
164
165
166
167
168
169
170
/*
Tasks: Expand dates on hover (WIP)
Color priority markers and dates that expand on hover.
Original credit to @sunb_mn on Obsidian's discord server for
the basis of this styles which I've tweaked and extended a little,
he also quotes @SlRvb and @esm7 for help with code:
https://discord.com/channels/686053708261228577/744933215063638183/1108617092137226320
https://github.com/replete/obsidian-minimal-theme-css-snippets
*/
/* Priority as Checkbox Color and Remove the Emoji */
.task-list-item[data-task-priority=high] input[type=checkbox] {
box-shadow: 0px 0px 1px 1px var(--color-red);
border-color: var(--color-red);
}
.task-list-item[data-task-priority=medium] input[type=checkbox] {
box-shadow: 0px 0px 1px 1px var(--color-orange);
border-color: var(--color-orange);
}
.task-list-item[data-task-priority=low] input[type=checkbox] {
box-shadow: 0px 0px 1px 1px var(--color-cyan);
border-color: var(--color-cyan);
}
.task-priority {
display: none;
}
input[type=checkbox]:checked {
box-shadow: none !important;
border-color: var(--checkbox-border-color) !important;
}
.tasks-list-text {
display: inline-flex;
max-width: 100%;
}
.task-description {
flex: 2;
min-width: 0;
width: 350px;
white-space: nowrap;
display: block;
overflow: hidden;
text-overflow: ellipsis;
}
/* Show dates on emoji hover */
:is(.task-recurring, .task-start, .task-scheduled, .task-done, .task-created) {
font-size: 1px;
letter-spacing: -1px;
color: transparent;
background-color: transparent;
}
:is(.task-recurring, .task-start, .task-scheduled,.task-done, .task-created)::after {
letter-spacing: 0px;
font-size: var(--font-adaptive-normal);
line-height: var(--line-height);
color: var(--tx1);
margin-left: 5px;
}
.task-recurring::after {
content: "🔁";
}
.task-start::after {
content: "🛫";
}
.task-scheduled::after {
content: "⏳";
}
.task-done::after {
content: "✅";
}
.task-created::after {
content: "➕";
}
:is(.task-recurring, .task-start, .task-scheduled, .task-done, .task-created):hover::after {
content: "";
}
:is(.task-recurring, .task-start, .task-scheduled, .task-done, .task-created):hover {
letter-spacing: 0px;
font-size: var(--font-adaptive-normal);
line-height: var(--line-height);
color: var(--tx1);
margin-left: 5px;
background:var(--bg2);
border-radius:4px;
outline:1px solid var(--tx3);
margin-left:10px;
padding-left:4px;
/* transform: translateX(-4px); */
}
/* Due date on right */
.task-due {
width: fit-content;
margin-left: 5px;
order: 5;
font-weight: var(--bold-weight);
}
.plugin-tasks-query-result li {
display:inline-flex;
width:100%;
}
.plugin-tasks-query-result .task-list-item-checkbox {
transform: translateY(6px);
}
.plugin-tasks-query-result .tasks-list-text {
flex-grow:1;
}
.plugin-tasks-query-result .task-extras{
display:flex;
justify-self: flex-end;
height:1em;
}
/* File backlink */
.plugin-tasks-query-result .tasks-backlink {
font-size: 1px;
letter-spacing: -1px;
color: transparent;
background-color: transparent;
width:1.5rem;
height: 1.5rem;
align-self:baseline;
}
.plugin-tasks-query-result .tasks-backlink::before {
content:'📄';
font-size: var(--font-adaptive-normal);
line-height: var(--line-height);
color: var(--tx1);
transform: translateX(6px);
display:inline-block;
opacity:0.5;
}
.plugin-tasks-query-result .tasks-backlink:hover {
font-size: var(--font-adaptive-normal);
line-height: var(--line-height);
letter-spacing:0;
width:inherit;
opacity:1;
transform: translateX(8px);
}
/* Show all text on edit hover */
.tasks-edit {
transform:translate(0,3px)
}
.plugin-tasks-query-result li:has(.tasks-edit:hover) :is(.task-recurring, .task-start, .task-scheduled, .task-done, .task-created) {
letter-spacing: 0px;
font-size: var(--font-adaptive-normal);
line-height: var(--line-height);
color: var(--tx1);
margin-left: 5px;
}
.plugin-tasks-query-result li:has(.tasks-edit:hover) :is(.task-recurring, .task-start, .task-scheduled, .task-done, .task-created)::after {
content:'';
}