-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdynalist.css
312 lines (265 loc) · 8.02 KB
/
dynalist.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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
@-moz-document url-prefix("https://dynalist.io/") {
/*
Edgeryders Dynalist Userstyle, Version 1.7 (2018-03-16)
Licence: Creative Common Public Domain Dedication (CC0)
Download: https://userstyles.org/styles/151455
Code: https://github.com/edgeryders/dynalist-userstyle
Documentation: https://edgeryders.eu/t/7618
*/
/* checked items appearance */
.Node.is-checked .node-link,
.Node.is-checked .node-tag,
.Node.is-checked .node-time,
.Node.is-checked .Node-content,
.Node.is-checked .Node-renderedContent,
.Node.is-checked {
color: #a9a9a9;
text-decoration: none !important;
font-style: oblique !important;
}
/* checked items #completed tag (auto-added) */
.Node.is-checked .Node-content:before,
.Node.is-checked .Node-renderedContent:before {
content: '#completed';
background: #8d929b;
color: white;
font-weight: bold;
font-style: normal !important;
}
/* #username tags for task assignments */
.node-tag[title*="Filter #"] {
background-color: #e5e5e0!important;
color: #51514f !important;
font-weight: bold;
}
/* #important tag */
.node-tag[title~="#important"] {
background: red !important;
color: white !important;
font-weight: bold !important;
text-decoration: none !important;
}
/* #permanent tag */
.node-tag[title~="#permanent"] {
background: green !important;
color: white !important;
text-decoration: none !important;
}
/* #blocked tag */
.node-tag[title~="#blocked"] {
background: black !important;
color: white !important;
text-decoration: none !important;
}
/* #discarded tag*/
.node-tag[title~="#discarded"] {
background: #f6ff00 !important;
color: black !important;
text-decoration: none !important;
}
/* #by-username tags for task authorship */
.node-tag[title*="#by-"] {
background-color: #f4f4f4 !important;
color: #646464 !important;
font-weight: normal !important;
}
/* @username tags for mentions */
.node-tag[title*="Filter @"] {
/* Formatting done just as in Discourse. */
background-color: #f4f4f4 !important;
color: #646464 !important;
font-weight: bold;
text-decoration: none !important;
}
.Node-contentContainer .node-tag[title*="Filter @"] {
/* As in Discourse, but only applied to normal items. Font would become too small in notes. */
font-size: 0.93em;
}
/* item bulletpoints */
.Node-bullet:before {
color: #4CB9FF;
}
/* hyperlinks */
.node-link {
/* Formatting done just as in Discourse. */
word-wrap: break-word !important;
color: #08c !important;
text-decoration: none !important;
cursor: pointer !important;
background: transparent !important;
}
/* hyperlinks on the empty page before opening any document */
#blank-slate div ul li a {
text-decoration: none;
}
/* #tags and @tags mouse-over highlighting */
.node-tag:hover {
background-color: #363636 !important;
color: white !important;
}
/* code */
.node-inline-code {
/* Formatting done just as in Discourse. */
color: #333;
background-color: #f8f8f8;
font-family: monospace;
font-size: 1em;
}
/* Additional spacing between lists */
.Node-self.is-noteEmpty .Node-content,
.Node-self.is-noteEmpty .Node-renderedContent,
.Node-note,
.Node-renderedNote {
padding-bottom: 3px;
}
/* Fix the redo button position in the mobile version. */
/* (Not that useful, as the only option to use it is mobile Firefox with the Stylus extension, and it's really slow.) */
.MobileHeader-optionContainer .MobileHeader-option--undo {
right: 175px;
}
/* Distinctive Headings small */
.is-smallFont .Node-self.is-heading1 .Node-contentContainer {
font-size: 32px;
color: #825ce8;
}
.is-smallFont .Node-self.is-heading2 .Node-contentContainer {
font-size: 22px;
color: #0d8bdc;
}
.is-smallFont .Node-self.is-heading3 .Node-contentContainer {
font-size: 16px;
color: #40e618;
}
/* Distinctive Headings medium */
.is-mediumFont .Node-self.is-heading1 .Node-contentContainer {
font-size: 32px;
color: #825ce8;
}
.is-mediumFont .Node-self.is-heading2 .Node-contentContainer {
font-size: 22px;
color: #0d8bdc;
}
.is-mediumFont .Node-self.is-heading3 .Node-contentContainer {
font-size: 16px;
color: #40e618;
}
/* Distinctive Headings large */
.is-largeFont .Node-self.is-heading1 .Node-contentContainer {
font-size: 32px;
color: #825ce8;
}
.is-largeFont .Node-self.is-heading2 .Node-contentContainer {
font-size: 22px;
color: #0d8bdc;
}
.is-largeFont .Node-self.is-heading3 .Node-contentContainer {
font-size: 16px;
color: #40e618;
}
/* Fixing font size in the desktop version. */
/* It has to be small enough in the desktop version even when "large" is selected in the settings, which is
needed to make the mobile version usable for touch input. We use px font sizes as in original Dynalist CSS,
so you may need to adapt it for your screen display density to be comfortable. So:
EDIT HERE to adapt font sizes, if your setup needs it. */
.is-desktop .is-smallFont .Node-contentContainer {
font-size: 13px;
}
.is-desktop .is-smallFont .Node-contentContainer .node-inline-item,
.is-desktop .is-smallFont .Node-contentContainer .node-inline-code {
font-size: 12px;
line-height: 14px;
}
.is-desktop .is-smallFont .node-line {
line-height: 16px;
min-height: 16px;
}
.is-desktop .is-smallFont .Node-noteContainer {
font-size: 12px;
line-height: 13px;
}
.is-desktop .is-mediumFont .Node-contentContainer {
font-size: 14px;
}
.is-desktop .is-mediumFont .Node-contentContainer .node-inline-item,
.is-desktop .is-mediumFont .Node-contentContainer .node-inline-code {
font-size: 13px;
line-height: 15px;
}
.is-desktop .is-mediumFont .node-line {
line-height: 17px;
min-height: 17px;
}
.is-desktop .is-mediumFont .Node-noteContainer {
font-size: 13px;
line-height: 14px;
}
.is-desktop .is-largeFont .Node-contentContainer {
font-size: 16px;
}
.is-desktop .is-largeFont .Node-contentContainer .node-inline-item,
.is-desktop .is-largeFont .Node-contentContainer .node-inline-code {
font-size: 15px;
line-height: 16px;
}
.is-desktop .is-largeFont .node-line {
line-height: 19px;
min-height: 19px;
}
.is-desktop .is-largeFont .Node-noteContainer {
font-size: 13px;
line-height: 14px;
}
.is-desktop .is-largeFont .Node-noteContainer .node-inline-item,
.is-desktop .is-largeFont .Node-noteContainer .node-inline-code {
font-size: 12px;
line-height: 14px;
}
/* Fixing list density in the desktop version. */
/* It has to be compact enough in the desktop version even when "comfortable" is selected in the settings, which is
needed to make the mobile version usable for touch input. */
.is-desktop .is-compactDensity .Node-self {
padding-top: 0px;
padding-bottom: 0px;
}
.is-desktop .is-cozyDensity .Node-self {
padding-top: 0px;
padding-bottom: 0px;
}
.is-desktop .is-comfortableDensity .Node-self {
padding-top: 0px;
padding-bottom: 0px;
}
/* Fixing the horizontal scrollbar in the desktop version. */
/* Due to a Dynalist bug, a horizontal scrollbar will appear when disabling the advanced setting "Document Border". */
.is-desktop .Document {
width: calc(100% - 67px);
}
/* Narrow content area in main content due to change in horizontal scrollbar*/
.DocumentBreadcrumb {
width: calc(100% - 87px);
}
/******************************************/
/* EDIT HERE TO HIGHLIGHT YOUR OWN STUFF */
/* Adapt the selectors below with your name as used on Dynalist.
You'll have to do this after every update of this Stylish library stylesheet.
Alternatively copy&paste this to a new stylesheet applied on dynalist.io. */
/* tasks I am assigned to */
.node-tag[title~="#username"] {
background: #fe7a15 !important; /* heatmap-high color from Discourse */
color: black !important;
}
/* tasks I created */
.node-tag[title~="#by-username"] {
background: #dcc8b2 !important; /* similar to heatmap-low color #9b764f from Discourse */
}
/* own mentions */
.node-tag[title~="@username"] {
background: #dcc8b2 !important; /* similar to heatmap-low color #9b764f from Discourse */
}
/******************************************/
/* #tags and @tags mouse-over highlighting */
.node-tag:hover {
background-color: #363636 !important;
color: white !important;
}
} /* end @-moz-document */