-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathcustom.css
More file actions
722 lines (623 loc) Β· 25.4 KB
/
Copy pathcustom.css
File metadata and controls
722 lines (623 loc) Β· 25.4 KB
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
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&display=swap');
/* ==========================================================================
Dracula for Logseq
Structure of this file:
1. Dracula palette raw colours, the single source of truth
2. Dark theme tokens palette -> Logseq's four variable layers
3. Component overrides the UI that no variable reaches
The theme is dark-only (package.json: `"mode": "dark"`). Everything in
sections 2 and 3 is therefore scoped to `html[data-theme="dark"]` so that
nothing leaks into light mode. Logseq sets `data-theme` on <html> in every
supported version β 0.10.x (components/theme.cljs), og 1.x and 2.x β so one
prefix covers them all.
Do not convert these prefixes to native CSS nesting. Logseq 0.10.0-0.10.9
ship Electron 25/27 (Chromium 114/118), where a nested selector may not
begin with an element name; `i { }` inside a nesting block is a parse error
there and the rule is dropped silently.
========================================================================== */
/* ==========================================================================
1. Dracula palette
Namespaced on purpose. Logseq 2.x owns the bare names --background,
--foreground, --primary, --border, --accent, --muted, --card, --popover,
--input and --ring, and expects them to hold *HSL channel triples*
("231 15% 18%") that it feeds to hsl(). Assigning a hex to any of them
produces hsl(#282a36), which is invalid and silently drops the whole
declaration.
========================================================================== */
:root {
/* ---- Specification colours ------------------------------------------
The canonical Dracula palette (spec.draculatheme.com). Treat these as
fixed; anything that needs a different shade derives one below.
-------------------------------------------------------------------- */
--dracula-bg: #282a36;
--dracula-current-line: #44475a;
--dracula-fg: #f8f8f2;
--dracula-comment: #6272a4;
--dracula-cyan: #8be9fd;
--dracula-green: #50fa7b;
--dracula-orange: #ffb86c;
--dracula-pink: #ff79c6;
--dracula-purple: #bd93f9;
--dracula-red: #ff5555;
--dracula-yellow: #f1fa8c;
/* ---- Derived shades --------------------------------------------------
Not part of the specification. Surface steps around the background, and
50%-alpha variants used for hover and secondary text.
-------------------------------------------------------------------- */
--dracula-bg-light: #343746;
--dracula-bg-lighter: #424450;
--dracula-bg-dark: #21222c;
--dracula-bg-darker: #191a21;
--dracula-fg-dim: #f8f8f280;
--dracula-purple-dim: #bd93f980;
--dracula-cyan-dim: #8be9fd80;
--dracula-pink-dim: #ff79c680;
}
/* ==========================================================================
2. Dark theme tokens
Selector notes β these matter, the theme was invisible in Logseq 2.x
without them:
* Logseq always sets data-color on <html> (defaults to "logseq"), so its
own variables live at html[data-theme=dark][data-color=logseq], which is
specificity (0,2,1). A plain html[data-theme="dark"] block is (0,1,1)
and loses every declaration.
* For non-default accents Logseq writes the --lx-* tokens onto <body> via
html[data-color=X] body β (0,1,2). Hence the body-scoped selector below
at (0,2,2).
* The trailing `.dark-theme, html[data-theme="dark"]` keeps Logseq 0.10.x
working, where only the legacy --ls-* layer exists.
========================================================================== */
html[data-theme="dark"][data-color],
html[data-theme="dark"][data-color] body,
.dark-theme,
html[data-theme="dark"] {
/* ---- Typography & metrics ------------------------------------------- */
--ls-tag-text-opacity: 0.8;
--ls-tag-text-hover-opacity: 0.8;
--ls-page-text-size: 16px;
--ls-page-title-size: 36px;
--ls-font-family: "Fira Sans";
--ls-font-weight-light: 300;
--ls-font-weight-regular: 400;
--ls-font-weight-medium: 500;
--ls-font-letter-spacing: 0.002em;
--ls-font-line-height: 1.5;
--ls-border-radius-low: 3px;
--ls-border-radius-medium: 6px;
--radius: 6px;
/* ---- Radix-style semantic scale (Logseq 2.x) ------------------------
This is the layer the modern UI actually reads. Tailwind resolves
bg-gray-01 etc. to var(--lx-gray-01, var(--ls-*, var(--rx-gray-01))),
so the legacy --ls-* fallback never fires while Logseq defines --lx-*
itself. Steps run darkest surface (01) to highest-contrast text (12),
matching the Radix convention the components assume.
-------------------------------------------------------------------- */
--lx-gray-01: var(--dracula-bg);
--lx-gray-02: #2e313e;
--lx-gray-03: var(--dracula-bg-light);
--lx-gray-04: #3b3e4b;
--lx-gray-05: var(--dracula-bg-lighter);
--lx-gray-06: var(--dracula-current-line);
--lx-gray-07: #4e5573;
--lx-gray-08: #58648b;
--lx-gray-09: var(--dracula-comment);
--lx-gray-10: #8894b8;
--lx-gray-11: #b5bccf;
--lx-gray-12: var(--dracula-fg);
--lx-gray-01-alpha: rgba(248, 248, 242, 0);
--lx-gray-02-alpha: rgba(248, 248, 242, 0.03);
--lx-gray-03-alpha: rgba(248, 248, 242, 0.06);
--lx-gray-04-alpha: rgba(248, 248, 242, 0.09);
--lx-gray-05-alpha: rgba(248, 248, 242, 0.12);
--lx-gray-06-alpha: rgba(248, 248, 242, 0.16);
--lx-gray-07-alpha: rgba(248, 248, 242, 0.22);
--lx-gray-08-alpha: rgba(248, 248, 242, 0.31);
--lx-gray-09-alpha: rgba(98, 114, 164, 0.85);
--lx-gray-10-alpha: rgba(136, 148, 184, 0.9);
--lx-gray-11-alpha: rgba(181, 188, 207, 0.93);
--lx-gray-12-alpha: rgba(248, 248, 242, 0.96);
/* Accent runs pink β common.css reads --lx-accent-11/12 for link colors,
which is where Dracula's pink has always lived in this theme. */
--lx-accent-01: #35222c;
--lx-accent-02: #3f2733;
--lx-accent-03: #52303f;
--lx-accent-04: #66384c;
--lx-accent-05: #7a4159;
--lx-accent-06: #914b69;
--lx-accent-07: #ad577d;
--lx-accent-08: #d06795;
--lx-accent-09: var(--dracula-pink);
--lx-accent-10: #ff8ed0;
--lx-accent-11: var(--dracula-pink);
--lx-accent-12: #ffc3e4;
--lx-accent-01-alpha: rgba(255, 121, 198, 0.05);
--lx-accent-02-alpha: rgba(255, 121, 198, 0.09);
--lx-accent-03-alpha: rgba(255, 121, 198, 0.14);
--lx-accent-04-alpha: rgba(255, 121, 198, 0.19);
--lx-accent-05-alpha: rgba(255, 121, 198, 0.25);
--lx-accent-06-alpha: rgba(255, 121, 198, 0.32);
--lx-accent-07-alpha: rgba(255, 121, 198, 0.42);
--lx-accent-08-alpha: rgba(255, 121, 198, 0.56);
--lx-accent-09-alpha: rgba(255, 121, 198, 0.85);
--lx-accent-10-alpha: rgba(255, 142, 208, 0.9);
--lx-accent-11-alpha: rgba(255, 121, 198, 0.95);
--lx-accent-12-alpha: rgba(255, 195, 228, 0.96);
/* Undefined by default β an explicit theming hook for menus, popovers and
the modal shell (resources/css/shui.css). */
--lx-popover-bg: var(--dracula-bg-dark);
--lx-pdf-container-dark-bg: var(--dracula-bg-dark);
/* ---- shadcn / Tailwind tokens ---------------------------------------
Bare HSL channel triples, never colors. `html * { border-color:
hsl(var(--border)) }` in shui.css means --border governs every border
in the app, so it has to be right.
-------------------------------------------------------------------- */
--background: 231 15% 18%;
--foreground: 60 30% 96%;
--card: 232 14% 15%;
--card-foreground: 60 30% 96%;
--popover: 232 14% 15%;
--popover-foreground: 60 30% 96%;
--primary: 265 89% 78%;
--primary-foreground: 231 15% 18%;
--secondary: 230 15% 24%;
--secondary-foreground: 60 30% 96%;
--muted: 231 10% 29%;
--muted-foreground: 225 27% 65%;
/* Hover/active surface for menu rows and list items.
Logseq's own convention for this is the *grey* ladder β shui.css:36-45
declares `--accent: var(--rx-gray-04-hsl)` for menus, selects and the
calendar. The dark teal seen in stock builds is a branded override applied
only under [data-color=logseq]; it is the exception, not the rule.
229 12% 26% is --lx-gray-04 (#3b3e4b). Chrome highlights stay neutral;
the pink accent ladder is reserved for links, tags and indicators. */
--accent: 229 12% 26%;
--accent-foreground: 60 30% 96%;
--destructive: 0 100% 67%;
--destructive-foreground: 231 15% 18%;
--border: 232 14% 31%;
--input: 232 14% 31%;
--ring: 265 89% 78%;
/* ---- Legacy --ls-* layer (Logseq 0.10.x, and still widely read) ------ */
--ls-primary-background-color: var(--dracula-bg);
--ls-secondary-background-color: var(--dracula-bg-dark);
--ls-tertiary-background-color: var(--dracula-bg-light);
--ls-quaternary-background-color: var(--dracula-bg-light);
--ls-quinary-background-color: var(--dracula-bg-darker);
--ls-active-primary-color: var(--dracula-fg);
--ls-active-secondary-color: var(--dracula-fg);
--ls-primary-text-color: var(--dracula-fg);
--ls-secondary-text-color: var(--dracula-fg-dim);
--ls-search-background-color: var(--dracula-bg);
--ls-border-color: var(--dracula-comment);
--ls-secondary-border-color: var(--ls-border-color);
--ls-tertiary-border-color: rgba(98, 114, 164, 0.3);
--ls-menu-color: var(--dracula-bg-dark);
--ls-menu-hover-color: var(--dracula-bg-light);
--ls-table-tr-even-background-color: var(--dracula-bg-light);
--ls-head-text-color: var(--dracula-fg);
--ls-title-text-color: var(--dracula-fg);
--ls-link-text-color: var(--dracula-pink);
--ls-link-text-hover-color: var(--dracula-pink-dim);
--ls-link-ref-text-color: var(--dracula-pink);
--ls-link-ref-text-hover-color: var(--dracula-pink-dim);
--ls-block-ref-link-text-color: var(--ls-border-color);
--ls-tag-text-color: var(--dracula-purple);
--ls-tag-text-hover-color: var(--dracula-purple-dim);
--ls-block-bullet-border-color: var(--dracula-current-line);
--ls-block-bullet-color: var(--dracula-fg);
--ls-block-highlight-color: var(--dracula-current-line);
--ls-block-properties-background-color: var(--dracula-bg-light);
--ls-page-checkbox-color: transparent;
--ls-page-checkbox-border-color: var(--dracula-comment);
--ls-page-blockquote-color: var(--dracula-fg);
--ls-page-blockquote-bg-color: var(--dracula-bg-light);
--ls-page-blockquote-border-color: var(--dracula-yellow);
--ls-page-properties-background-color: var(--dracula-bg-light);
--ls-page-inline-code-color: var(--dracula-green);
--ls-page-inline-code-bg-color: var(--dracula-bg);
--ls-page-mark-color: var(--dracula-bg-darker);
--ls-page-mark-bg-color: var(--dracula-yellow);
--ls-scrollbar-background-color: var(--dracula-bg);
--ls-scrollbar-foreground-color: var(--dracula-bg-darker);
--ls-scrollbar-thumb-hover-color: var(--dracula-bg-light);
--ls-icon-color: var(--dracula-fg-dim);
--ls-search-icon-color: var(--dracula-fg-dim);
--ls-search-icon-hover-color: var(--dracula-fg);
--ls-a-chosen-bg: var(--dracula-bg-light);
--ls-right-sidebar-code-bg-color: var(--dracula-bg-light);
--ls-selection-background-color: var(--dracula-comment);
--ls-selection-text-color: var(--dracula-fg);
--ls-slide-background-color: var(--ls-primary-background-color);
--ls-guideline-color: var(--ls-border-color);
--ls-cloze-text-color: var(--dracula-cyan);
--ls-header-button-background: var(--dracula-bg-light);
--ls-left-sidebar-text-color: var(--dracula-fg);
--ls-focus-ring-color: rgba(189, 147, 249, 0.5);
--ls-button-background-hsl: 265 89% 78%;
--ls-button-background: hsl(var(--ls-button-background-hsl));
--ls-pie-bg-color: var(--dracula-bg-light);
--ls-pie-fg-color: var(--dracula-purple);
--color-level-1: var(--ls-secondary-background-color);
--color-level-2: var(--ls-primary-background-color);
--color-level-3: var(--ls-quaternary-background-color);
--color-level-4: var(--ls-tertiary-background-color);
--color-level-5: var(--ls-quinary-background-color);
--color-level-6: var(--dracula-current-line);
}
/* ==========================================================================
3. Component overrides
Rules for UI that section 2 cannot reach β hardcoded utility classes,
components that ignore the token layers, and elements needing structural
changes as well as colour.
Every selector here is prefixed `html[data-theme="dark"]`. Without it the
rules apply in light mode too: either painting Dracula colours over
Logseq's light theme, or β for rules that reference --ls-* tokens, which
only exist inside section 2's dark-scoped block β resolving to an
undefined variable and falling back to `inherit` rather than to Logseq's
own value.
========================================================================== */
/* ---- 3.1 Base typography & inline markup -------------------------------- */
html[data-theme="dark"],
html[data-theme="dark"] body {
font-weight: var(--ls-font-weight-light);
letter-spacing: var(--ls-font-letter-spacing);
line-height: var(--ls-font-line-height);
font-size: var(--ls-page-text-size);
}
html[data-theme="dark"] i {
color: var(--dracula-yellow);
}
html[data-theme="dark"] b {
color: var(--dracula-orange);
font-weight: var(--ls-font-weight-medium);
}
html[data-theme="dark"] :is(ol, ul) li::marker {
color: var(--dracula-cyan);
}
html[data-theme="dark"] mark {
background-color: var(--dracula-yellow);
color: var(--dracula-bg-darker);
}
/* Literal Tailwind utilities used by task/priority chips and badges. No
variable reaches these, so they are restated in Dracula hues. */
html[data-theme="dark"] .bg-orange-400 {
background-color: var(--dracula-orange);
}
html[data-theme="dark"] .bg-green-600 {
background-color: var(--dracula-green);
}
html[data-theme="dark"] .bg-red-500 {
background-color: var(--dracula-red);
}
/* ---- 3.2 Links, tags & references --------------------------------------- */
html[data-theme="dark"] .external-link {
color: var(--dracula-cyan);
text-decoration: none;
border-bottom: none;
}
html[data-theme="dark"] .external-link:hover {
color: var(--dracula-cyan-dim);
}
html[data-theme="dark"] .page-reference .bracket {
color: var(--ls-border-color);
opacity: 0.8;
}
html[data-theme="dark"] a.tag {
background: var(--dracula-pink);
border-radius: 3px 3px 3px 3px;
padding: 0px 3px;
color: var(--dracula-bg-dark);
font-weight: var(--ls-font-weight-regular);
}
html[data-theme="dark"] a.tag:hover {
background: transparent;
color: var(--dracula-pink-dim);
}
/* ---- 3.3 Headings & page titles ------------------------------------------
In 2.x the page title is `.ls-page-title-container`, coloured by
common.css:330 from --lx-gray-12 β i.e. the primary text colour, hence
white. Overriding it back to purple matches the headings below and the
repo screenshot. `h1.title` is the 0.10.x equivalent, kept for
compatibility. */
html[data-theme="dark"] :is(
h1.title,
h1.title input,
.ls-page-title-container,
.ls-block h1,
.ls-block h2,
.ls-block h3,
.ls-block h4,
.ls-block h5,
.ls-block h6
) {
color: var(--dracula-purple);
font-weight: var(--ls-font-weight-regular);
font-family: var(--ls-font-family),-apple-system,system-ui,sans-serif;
}
html[data-theme="dark"] :is(
.editor-inner .uniline-block:is(.h1, .h2),
.ls-block :is(h1, h2)
) {
border-bottom: none;
}
/* ---- 3.4 Blocks ---------------------------------------------------------- */
html[data-theme="dark"] .form-checkbox {
border: 1px solid var(--ls-page-checkbox-border-color) !important;
border-radius: var(--ls-border-radius-low) !important;
}
/* Indentation guides between bullets.
block.css:654 sets this from --lx-gray-04-alpha with !important, which is
far dimmer than the guideline colour this theme has always used. Same
specificity, declared later, so this wins. */
html[data-theme="dark"] .block-children {
border-left-color: var(--ls-guideline-color) !important;
}
/* Dim done/canceled tasks instead of a strike */
html[data-theme="dark"] :is(.canceled, .cancelled, .done) {
opacity: 0.5;
text-decoration: none;
}
/* Priority tag styling β the letter is hidden and redrawn as a coloured
badge through ::before. */
html[data-theme="dark"] .priority {
color: var(--ls-tag-text-color);
opacity: 1 !important;
font-size: 0px; /* Hide text */
}
html[data-theme="dark"] :is(.priority:hover, a.tooltip-priority:hover) {
color: var(--ls-tag-text-hover-color);
opacity: 0.5;
}
html[data-theme="dark"] a.priority[href="#/page/A"]:before {
content: "A";
background: var(--dracula-red);
}
html[data-theme="dark"] a.priority[href="#/page/B"]:before {
content: "B";
background: var(--dracula-yellow);
}
html[data-theme="dark"] a.priority[href="#/page/C"]:before {
content: "C";
background: var(--dracula-green);
}
html[data-theme="dark"] a.priority:before {
font-size: 0.9rem;
font-weight: var(--ls-font-weight-regular);
padding: 1px 4px 0px 3px;
margin: 0px 2px 0px 0px;
border-radius: var(--ls-border-radius-low);
color: var(--ls-primary-background-color);
}
html[data-theme="dark"] a.tooltip-priority {
color: var(--ls-tag-text-color);
}
/* ---- 3.5 App chrome: icons, sidebar, menus ------------------------------- */
/* Changes all icons to the same color */
html[data-theme="dark"] .ti {
color: var(--ls-icon-color);
}
/* Changes sidebar link colors to the same color as the icons */
html[data-theme="dark"] .left-sidebar-inner a.item > span {
color: var(--ls-icon-color);
}
/* Menu and dropdown styling */
html[data-theme="dark"] :is(.menu-links-wrapper, .menu-link) {
background-color: var(--ls-menu-color);
}
html[data-theme="dark"] :is(.menu-link:hover, .menu-link.chosen) {
background-color: var(--ls-menu-hover-color);
}
/* Dropdown border. Kept on --ls-border-color, the value introduced by the
menu/dropdown styling work in c2af500. */
html[data-theme="dark"] .dropdown-wrapper {
border: 1px solid;
border-color: var(--ls-border-color);
}
/* Highlighted row in menus, selects, context menus and the calendar.
These components carry `focus:bg-accent`, and shui.css re-declares --accent
*on the popup container itself* for the default preset β teal, at
`html[data-theme=dark][data-color=logseq] div[data-radix-menu-content]`.
Setting --accent at the root has no effect here: a variable set on a nearer
ancestor always wins for its descendants. The override has to land on the
same containers, at matching specificity.
The Radix selectors cover 2.x; .ui__dropdown-menu-content and
.ui__context-menu-content are the 0.10.x/og equivalents. */
html[data-theme="dark"][data-color] div[data-radix-menu-content],
html[data-theme="dark"][data-color] div[data-radix-popper-content-wrapper],
html[data-theme="dark"][data-color] .ui__dropdown-menu-content,
html[data-theme="dark"][data-color] .ui__context-menu-content,
html[data-theme="dark"][data-color] .ui__select-content,
html[data-theme="dark"][data-color] .ui__calendar {
--accent: 229 12% 26%; /* --lx-gray-04, #3b3e4b */
--accent-foreground: 60 30% 96%;
--muted: 231 10% 29%; /* --lx-gray-05, matching shui.css:39 */
}
/* Outline buttons sit one step darker than menus in Logseq's own scale
(`--accent: 192 100% 12%` vs `190 100% 15%`), so this tracks --lx-gray-03. */
html[data-theme="dark"][data-color] .ui__button.as-outline {
--accent: 230 15% 24%; /* --lx-gray-03, #343746 */
}
/* Chrome surfaces that read the *accent* ladder directly rather than --accent.
`bg-accent-01` is not a shadcn token: tailwind.config.js resolves it to
var(--lx-accent-01, β¦), so overriding --accent alone never reaches these.
With a pink accent ladder they render as an isolated maroon against
otherwise neutral chrome β Logseq gets away with it only because its own
accent is a near-neutral teal used consistently across the whole UI.
Surfaces stay on the grey ladder; the accent ladder is kept for links, tags
and selection indicators. Selectors match shui.css at equal specificity and
are declared later, so they win. */
html[data-theme="dark"][data-color] .ui__button.as-ghost:hover,
html[data-theme="dark"][data-color] .cp__themes-installed .it:hover,
html[data-theme="dark"][data-color] .cp__themes-installed .it.is-active,
html[data-theme="dark"][data-color] .tl-button:hover {
background-color: var(--lx-gray-04);
}
/* ---- 3.6 Widgets --------------------------------------------------------- */
/* Changes the look of the progress bar */
html[data-theme="dark"] progress {
vertical-align: middle;
border-radius: 8px;
height: 0.7em;
border: 1px solid var(--ls-border-color);
overflow: hidden;
}
html[data-theme="dark"] progress::-webkit-progress-bar {
background: var(--ls-tertiary-background-color);
}
html[data-theme="dark"] progress::-webkit-progress-value {
background: var(--dracula-green);
}
/* Fixes logseq calculator mode to line up with our spacing */
html[data-theme="dark"] .extensions__code-calc {
padding: 28px 0 0.25em;
background: var(--dracula-bg-light);
line-height: 1.2;
}
html[data-theme="dark"] .extensions__code-calc-output-line {
height: 16.8px !important;
padding-right: 5px;
}
/* ---- 3.7 CodeMirror -------------------------------------------------------
Name: Dracula for CodeMirror
Author: Michael Kaminsky (http://github.com/mkaminsky11)
Adapted by: Sly Bouhafs
Original dracula color scheme by Zeno Rocha (https://github.com/zenorocha/dracula-theme)
Adapted for logseq
-------------------------------------------------------------------------- */
html[data-theme="dark"] .CodeMirror {
font-family: "FiraCode Nerd Font", "Fira Code", monospace;
line-height: 1.2;
background: var(--dracula-bg);
box-shadow: none;
-webkit-box-shadow: none;
color: var(--dracula-fg);
}
html[data-theme="dark"] .cm-s-default .CodeMirror,
html[data-theme="dark"] .CodeMirror .CodeMirror-gutters {
background-color: transparent;
color: var(--dracula-fg) !important;
border: none;
}
html[data-theme="dark"] .extensions__code-lang {
background: var(--dracula-bg-light);
}
html[data-theme="dark"] #main-content-container code {
background: var(--dracula-bg-darker);
}
html[data-theme="dark"] #main-content-container .selected code {
background: var(--dracula-bg);
}
html[data-theme="dark"] #right-sidebar-container code {
background: var(--dracula-bg-light);
}
html[data-theme="dark"] #right-sidebar-container .selected code {
background: var(--dracula-bg);
}
html[data-theme="dark"] .CodeMirror {
border: 5px solid var(--dracula-bg-light);
}
html[data-theme="dark"] .CodeMirror .CodeMirror-gutters {
color: var(--dracula-bg);
}
html[data-theme="dark"] .CodeMirror .CodeMirror-cursor {
border-left: solid thin var(--dracula-fg);
}
html[data-theme="dark"] .CodeMirror .CodeMirror-linenumber {
color: var(--dracula-comment);
}
html[data-theme="dark"] .CodeMirror .CodeMirror-activeline .CodeMirror-linenumber {
/* Color of line number where the cursor is present */
color: var(--dracula-comment);
filter: brightness(1.4);
}
html[data-theme="dark"] .CodeMirror .CodeMirror-gutter {
/* Background color for the line numbers displayed on the left */
background: var(--dracula-bg);
}
html[data-theme="dark"] .CodeMirror .CodeMirror-hscrollbar {
margin: 4px;
}
html[data-theme="dark"] .CodeMirror .CodeMirror-selected {
background: rgba(255, 255, 255, 0.1);
}
html[data-theme="dark"] .CodeMirror .CodeMirror-line {
box-shadow: none;
}
html[data-theme="dark"] .CodeMirror .CodeMirror-line::selection,
html[data-theme="dark"] .CodeMirror .CodeMirror-line > span::selection,
html[data-theme="dark"]
.cm-s-default
.CodeMirror-line
> span
> span::selection {
background: rgba(255, 255, 255, 0.1);
}
html[data-theme="dark"] .CodeMirror .CodeMirror-line::-moz-selection,
html[data-theme="dark"] .CodeMirror .CodeMirror-line > span::-moz-selection,
html[data-theme="dark"]
.cm-s-default
.CodeMirror-line
> span
> span::-moz-selection {
background: rgba(255, 255, 255, 0.1);
}
html[data-theme="dark"] .CodeMirror span.cm-comment {
color: var(--dracula-comment);
}
html[data-theme="dark"] .CodeMirror span.cm-string,
html[data-theme="dark"] .CodeMirror span.cm-string-2 {
color: var(--dracula-yellow);
}
html[data-theme="dark"] .CodeMirror span.cm-number {
color: var(--dracula-purple);
}
html[data-theme="dark"] .CodeMirror span.cm-variable {
color: var(--dracula-green);
}
html[data-theme="dark"] .CodeMirror span.cm-variable-2 {
color: var(--dracula-fg);
}
html[data-theme="dark"] .CodeMirror span.cm-def {
color: var(--dracula-green);
}
html[data-theme="dark"] .CodeMirror span.cm-operator {
color: var(--dracula-pink);
}
html[data-theme="dark"] .CodeMirror span.cm-keyword {
color: var(--dracula-pink);
}
html[data-theme="dark"] .CodeMirror span.cm-atom {
color: var(--dracula-purple);
}
html[data-theme="dark"] .CodeMirror span.cm-meta {
color: var(--dracula-fg);
}
html[data-theme="dark"] .CodeMirror span.cm-tag {
color: var(--dracula-pink);
}
html[data-theme="dark"] .CodeMirror span.cm-attribute {
color: var(--dracula-green);
}
html[data-theme="dark"] .CodeMirror span.cm-qualifier {
color: var(--dracula-green);
}
html[data-theme="dark"] .CodeMirror span.cm-property {
color: var(--dracula-cyan);
}
html[data-theme="dark"] .CodeMirror span.cm-builtin {
color: var(--dracula-green);
}
html[data-theme="dark"] .CodeMirror span.cm-variable-3,
html[data-theme="dark"] .CodeMirror span.cm-type {
color: var(--dracula-orange);
}
html[data-theme="dark"] .CodeMirror .CodeMirror-activeline-background {
background: rgba(255, 255, 255, 0.1);
}
html[data-theme="dark"] .CodeMirror .CodeMirror-matchingbracket {
text-decoration: underline;
color: var(--dracula-fg) !important;
}
html[data-theme="dark"] #right-sidebar pre.CodeMirror-line {
background: transparent;
}