-
Notifications
You must be signed in to change notification settings - Fork 6
/
theme.css
503 lines (341 loc) · 12.1 KB
/
theme.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
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
/*Fonts*/
:root {
/*
If the font isn't installed in the system,
it will go down the list until it finds on that is.
*/
--default-font: "Inter", sans-serif; /*Note and Settings Text*/
--font-monospace: "Source Code Pro", monospace; /*Code block text*/
/*
var(--variableName); is a variable,
so you can use what you set over and over without having
to rewrite it multiple times.
*/
}
/*Dark Theme Variables*/
.theme-dark {
--background-modifier-cover: rgba(0, 0, 0, 0.8); /*Obsidian Title Bar Bg*/
--background-primary: #202020; /*Note background*/
--background-primary-alt: #1a1a1a; /*Note Title background active*/
--background-secondary: #161616; /*Sidebar background*/
--background-secondary-alt: #000000; /*Sidebar Title background*/
--background-modifier-border: #333; /*Border outline of quotes, tables, line breaks*/
--text-normal: #dcddde; /*Text body of note*/
--text-muted: ; /*Text darker for sidebar, toggles, inactive, tags, etc*/
--text-accent: #7f6df2; /*Links*/
--text-accent-hover: #8875ff; /*Links hover*/
--text-faint: #666; /*Link brackets color & Gutter Numbers*/
--text-highlight-bg: rgba(255, 255, 0, 0.4); /*Search Matches*/
--text-highlight-bg-active: rgba(255, 128, 0, 0.4); /*Active Search Match (Preview Mode)*/
--text-selection: rgba(23, 48, 77, 0.99); /*Text Selections*/
--interactive-normal: #2a2a2a; /*Button Color*/
--interactive-hover: #303030; /*Button Hovered Color*/
--interactive-accent: #483699; /*Workspace Note Title Underline*/
--interactive-accent-hover: #4d3ca6; /*Menu Button Hover*/
--scrollbar-bg: rgba(255, 255, 255, 0.05); /*Scrollbar Gutter Background*/
--scrollbar-thumb-bg: rgba(255, 255, 255, 0.1); /*Scrollbar Color*/
--scrollbar-active-thumb-bg: rgba(255, 255, 255, 0.2); /*Scrollbar Dragged Color*/
}
.theme-light {
--background-primary: #ffffff; /*Note background*/
--background-primary-alt: #f5f6f8; /*Note Title background active*/
--background-secondary: #f2f3f5; /*Sidebar background*/
--background-secondary-alt: #e3e5e8; /*Sidebar Title background*/
--background-modifier-border: #ddd; /*Border outline of quotes, tables, line breaks*/
--text-normal: #2e3338; /*Text body of note*/
--text-muted: #888888; /*Text darker for sidebar, toggles, inactive, tags, etc*/
--text-accent: #705dcf; /*Links*/
--text-accent-hover: #7a6ae6; /*Links hover*/
--text-faint: #999999; /*Link brackets color*/
--text-highlight-bg: rgba(255, 255, 0, 0.4); /*Search Matches*/
--text-highlight-bg-active:rgba(255, 128, 0, 0.4); /*Active Search Match (Preview Mode)*/
--text-selection: rgba(23, 48, 77, 0.99); /*Text Selections*/
--interactive-normal: #f2f3f5; /*Button background Color*/
--interactive-hover:#e9e9e9; /*Button Hovered Color*/
--interactive-accent: #7b6cd9; /*Workspace Note Title Underline*/
--interactive-accent-hover: #8273e6; /*Menu Button Hover*/
--scrollbar-bg: rgba(0, 0, 0, 0.05); /*Scrollbar Gutter Background*/
--scrollbar-thumb-bg: rgba(0, 0, 0, 0.1); /*Scrollbar Color*/
--scrollbar-active-thumb-bg: rgba(0, 0, 0, 0.2); /*Scrollbar Dragged Color*/
}
/*Box Sizing Reset - this makes it easier to set any ::before and ::after pseudo-elements' dimensions,
since it includes any border and padding into the height and width values you set.
*,
*::before,
*::after {
box-sizing: border-box;
}*/
/*----Startup Progress Bar Screen----*/
/*Startup Progress Bar Window*/
.progress-bar {}
/*Startup Text*/
.progress-bar .progress-bar-message {}
/*Startup Progress Bar Background*/
.progress-bar-indicator .progress-bar-line {}
/*Startup Progress Bar Moving Line*/
.progress-bar-indicator .progress-bar-subline {}
/*----Settings----*/
/*All Popup Windows: Settings*/
.modal {}
/*Command Palette & Quick Switcher*/
.prompt {}
/*The notifications in the top right*/
.notice {}
/*Context Menu (Right CLick sth)*/
.menu {}
/*Setting Dropdown*/
.dropdown {}
/*Community Themes Browser*/
.community-theme {}
/*Community Plugins Browser*/
.community-plugin {}
/*--Extras--*/
/*Tooltip Popup*/
.tooltip {}
/*----Workspace----*/
/* ribbons, the thin vertical bars to the far left/right */
.workspace-ribbon {}
/*Side Panels*/
.workspace-tabs {}
/*Side Panel: Icons*/
.workspace-tab-header-inner-icon {}
/*--File Explorer--*/
/*Nav Top: Create Note, Sort, Create Folder*/
.nav-header {}
/*Folder*/
.nav-folder {}
.nav-folder-title {}
/*Files*/
.nav-file {}
.nav-file-title {}
/* (also applies to many plugins displaying file lists in the side bar) */
/*Status Bar*/
.status-bar {}
/*--Title Bar--*/
/*Title Bar*/
.titlebar {}
/*Navigation Button - Back */
.mod-back {}
/*Navigation Button - Forward*/
.mod-forward {}
/*Window Control- Minimize*/
.mod-minimize {}
/*Window Control- Minimize*/
.mod-maximize {}
/*Window Control- Close*/
.mod-close {}
/*Buttons*/
/*Default Buttons*/
button {}
/*Settings Buttons*/
button.mod-cta {}
/*Warning Buttons*/
button.mod-warning{}
/*--Workspace: Notes--*/
/*Note Title Bar*/
.workspace-leaf .view-header {}
/*Inactive Note Titlebar*/
/*Note Title Bar: Text*/
.view-header-title {}
/*Note Title Bar: Note Icon*/
.view-header-icon {}
/*Note Title Bar: Settings Icons*/
.view-action {}
/*Active Note Titlebar*/
/*Note Title Bar: Text*/
.workspace-leaf.mod-active .view-header-title {}
/*Note Title Bar: Note Icon*/
.workspace-leaf.mod-active .view-header-icon {}
/*Note Title Bar: Settings Icons*/
.workspace-leaf.mod-active .view-action {}
/*----Notes----*/
.cm-s-obsidian:not(.is-live-preview) {} /*Source Mode*/
.markdown-source-view {} /*Source Mode*/
.cm-s-obsidian.is-live-preview {} /*Live Preview Mode*/
.markdown-preview-view {} /*Reading Mode*/
/*--Emphasis--*/
/*Bold*/
strong {} /*Reading View*/
.cm-s-obsidian .cm-strong {} /*Editing View*/
/*Italic/Emphasis*/
em {} /*Reading View*/
.cm-em {} /*Editing View*/
/*Highlight*/
.markdown-preview-view mark {} /*Reading View*/
.cm-s-obsidian .cm-highlight {} /*Editing View*/
.cm-s-obsidian .cm-formatting-highlight {} /*Editing View highlight symbols/syntax*/
/*Strikethrough*/
.cm-strikethrough {} /*Editing View*/
del {} /*Reading View*/
/*--Headers/Headings--*/
h1 {} /*Reading Mode*/
h2 {} /*Reading Mode*/
h3 {} /*Reading Mode*/
h4 {} /*Reading Mode*/
h5 {} /*Reading Mode*/
h6 {} /*Reading Mode*/
.cm-header-1 {} /*Source Mode*/
.cm-header-2 {} /*Source Mode*/
.cm-header-3 {} /*Source Mode*/
.cm-header-4 {} /*Source Mode*/
.cm-header-5 {} /*Source Mode*/
.cm-header-6 {} /*Source Mode*/
.cm-header {} /* applies to all source mode headings */
/*--Horizontal Line--*/
hr {} /*Reading Mode*/
.hr.cm-line {} /*Source Mode*/
.HyperMD-hr-bg {} /*Source Mode*/
/*HR Line Text*/
.cm-s-obsidian pre.HyperMD-hr {} /*Source Mode*/
/*--Comments--*/
/* html comments and obsidian style comments */
.cm-comment {}
/*--Code--*/
code {}
/*Inline Code*/
.cm-s-obsidian span.cm-inline-code {} /*Source Mode*/
.markdown-preview-view code {} /*Reading Mode*/
/*Codeblock (no language specified) */
.markdown-preview-view pre {} /*Reading Mode*/
.cm-s-obsidian pre.HyperMD-codeblock {} /*Source Mode*/
/*Codeblock: Language Specified: ```js*/
.markdown-preview-view pre[class*=language-] {} /*Reading Mode*/
.markdown-preview-view code[class*=language-] {} /*Reading Mode*/
/*--Links--*/
.cm-s-obsidian span.cm-hmd-internal-link {} /*Source Mode*/
/*Wiki Links*/
a.internal-link {} /*Reading Mode*/
/*Markdown Links*/
a.external-link {} /*Reading Mode*/
/*Link to No Page*/
a.internal-link.is-unresolved {} /*Reading Mode*/
/*--Lists--*/
.cm-s-obsidian .HyperMD-list-line {} /*Source Mode*/
/*List Bullet/Number/Formatting*/
li::marker {} /*Reading Mode*/
span.cm-formatting-list-ul {} /*Source Mode*/
span.cm-formatting-list-ol {} /*Source Mode*/
/*Bullet Lists*/
ul {} /*Reading Mode*/
/*Bullet List Text*/
ul li {} /*Reading Mode*/
/*Bullet List Symbol*/
ul li::marker {} /*Reading Mode*/
/*Numbered Lists*/
ol {} /*Reading Mode*/
/*Numbered List Text*/
ol li {} /*Reading Mode*/
/*Numbered List Number*/
ol li::marker {} /*Reading Mode*/
/*Checkbox List*/
li.task-list-item {} /*Reading Mode*/
input[type=checkbox i] {} /*Reading Mode*/
/*Checked Checkbox*/
.markdown-preview-view .task-list-item-checkbox:checked {} /*Reading Mode*/
input[type=checkbox]:checked {} /*Reading Mode*/
/*--Blockquotes--*/
.markdown-preview-view blockquote {}
/*--Tables--*/
table {} /*Reading Mode*/
/*Table Headers*/
table th {} /*Reading Mode*/
/*Table Column*/
table td {} /*Reading Mode*/
/*Table Row*/
table tr {} /*Reading Mode*/
.cm-s-obsidian .HyperMD-table-row {} /*Source Mode*/
/*--Tags--*/
a.tag {} /*Reading Mode*/
.cm-s-obsidian span.cm-hashtag {} /*Source Mode*/
/*--Frontmatter/Metadata/Yaml--*/
.frontmatter-container {} /*Reading Mode*/
.CodeMirror-line .cm-s-obsidian .cm-hmd-frontmatter {} /*Source Mode*/
/*Frontmatter Tag*/
.frontmatter-container .frontmatter-alias {} /*Reading Mode*/
/*--Embeds--*/
.markdown-preview-view .markdown-embed {} /*Reading Mode*/
.internal-embed.is-loaded:not(.image-embed) {} /*Reading Mode*/
.markdown-source-view.mod-cm6 .cm-embed-block {} /*Live Preview Mode*/
.markdown-source-view .markdown-embed:not(.mod-empty) {} /*Live Preview Mode*/
/*File Embed*/
.markdown-preview-view .file-embed {} /*Reading Mode*/
.markdown-source-view .file-embed:not(.mod-empty) {} /*Live Preview Mode*/
/*Empty/No Embed Found*/
.markdown-source-view .markdown-embed.mod-empty {} /*Live Preview Mode*/
.markdown-source-view .file-embed.mod-empty {} /*Live Preview Mode*/
/*Embed Titles*/
.markdown-embed-title {} /*Reading Mode*/
.file-embed-title {} /*Reading Mode*/
/*Embed Link*/
.markdown-embed-link {}
.file-embed-link {}
/*--Footnotes--*/
/*Footnote link in note*/
.markdown-preview-view a.footnote-link {} /*Reading View*/
/*Reference Number in text*/
.cm-s-obsidian span.cm-footref {} /*Editing View*/
/*Footnotes section at the bottom of the note*/
.markdown-preview-view .footnotes {} /*Reading View*/
/*Footnote back ref (arrow) at the bottom of the note*/
.footnote-backref {} /*Reading View*/
/*--Graph--*/
.graph-view.color-fill {
color: var(--text-muted); /*color of nodes*/
}
.graph-view.color-fill-focused { /*color of focused node/note*/
color: #ffdd00;
}
.theme-dark .graph-view.color-fill-tag { /*dark mode tag color*/
color: #704214;
}
.theme-light .graph-view.color-fill-tag { /*light mode tag color*/
color: #E0D3AF;
}
.theme-dark .graph-view.color-fill-attachment { /*dark mode attachment color*/
color: #1a356b;
}
.theme-light .graph-view.color-fill-attachment { /*light mode attachment color*/
color: #83D4F4;
}
.graph-view.color-fill-unresolved { /*unresolved(not created yet) notes*/
color: var(--text-muted);
opacity: 0.4;
}
.graph-view.color-arrow { /*arrow color*/
color: var(--text-normal);
opacity: 0.5;
}
.graph-view.color-circle { /*focused node border color*/
color: var(--text-normal);
}
.graph-view.color-line { /*link color*/
color: var(--background-modifier-border);
}
.graph-view.color-text { /*text color*/
color: var(--text-normal);
}
.graph-view.color-fill-highlight { /*focused node color*/
color: var(--interactive-accent);
}
.graph-view.color-line-highlight { /*focused node connections*/
color: var(--interactive-accent);
}
.graph-controls {} /*Graph Menu*/
/* Cursor */
.cm-cursorLayer .cm-cursor {
/* border-left: ... */
}
/* animation of the blinking */
.cm-cursorLayer {
/* deactivate built-in animation from CodeMirror */
animation-name: none !important; /* important needed */
}
@keyframes phase-blink {
15% { opacity: 1 }
50% { opacity: 0 }
85% { opacity: 1 }
}
.cm-cursorLayer .cm-cursor {
animation-duration: 2200ms;
animation-name: phase-blink;
}