-
-
Notifications
You must be signed in to change notification settings - Fork 334
Expand file tree
/
Copy pathapp.css
More file actions
1022 lines (884 loc) · 22.6 KB
/
app.css
File metadata and controls
1022 lines (884 loc) · 22.6 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
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@import 'tailwindcss';
@plugin "@tailwindcss/typography";
@custom-variant dark (&:is(.dark, .dark *));
@custom-variant light (&:is(.light, .light *));
@custom-variant auto (&:is(.auto, .auto *));
@custom-variant aria-current (&[aria-current="location"]);
@theme {
/* Breakpoints */
--breakpoint-xs: 480px;
/* Fonts */
--font-sans:
'Inter', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
'Segoe UI Emoji', Segoe UI Symbol, 'Noto Color Emoji';
/* Shadows */
--shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
--shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
--shadow-md:
0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
--shadow-lg:
0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
--shadow-xl:
0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
--shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
--shadow-3xl: 0 35px 60px -15px rgba(0, 0, 0, 0.25);
--shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.04);
/* Colors */
--color-twine-50: #f8f5ee;
--color-twine-100: #eee6d3;
--color-twine-200: #dfcda9;
--color-twine-300: #cdac77;
--color-twine-400: #bd9051;
--color-twine-500: #ae7d44;
--color-twine-600: #956339;
--color-twine-700: #784b30;
--color-twine-800: #653f2e;
--color-twine-900: #58362b;
--color-twine-950: #321c16;
--color-discord: #536bbd;
/* Neutral gray scale (no blue tint) */
--color-gray-50: #fafafa;
--color-gray-100: #f5f5f5;
--color-gray-200: #e5e5e5;
--color-gray-300: #d4d4d4;
--color-gray-400: #a3a3a3;
--color-gray-500: #737373;
--color-gray-600: #525252;
--color-gray-700: #404040;
--color-gray-800: #262626;
--color-gray-900: #171717;
--color-gray-950: #0a0a0a;
}
/* Safelist for dynamic colors */
@source inline('{bg-blue-{4,5,6}00,bg-emerald-500,bg-purple-500,bg-pink-500,bg-cyan-500,bg-slate-{4,5}00,bg-twine-700,bg-orange-{5,6,7}00,bg-yellow-500,bg-lime-700,bg-red-500,bg-green-500}/{20,30,40,80}');
@source inline('{hover:{bg-blue-{4,5,6}00,bg-emerald-500,bg-purple-500,bg-pink-500,bg-cyan-500,bg-slate-{4,5}00,bg-twine-700,bg-orange-{5,6,7}00,bg-yellow-500,bg-lime-700,bg-red-500,bg-green-500}/40}');
/* Black/gray-100 theme colors for ranger, config, devtools, mcp */
@source inline('dark:text-gray-100 dark:bg-gray-100 dark:border-gray-100/50 dark:from-gray-100 dark:via-gray-400/50 text-black bg-black border-black/50 from-black via-gray-600/50 to-gray-600 to-gray-400 dark:text-gray-900');
/* Accent colors for docs UI (sidebar, TOC, prev/next) */
@source inline('from-gray-700 to-gray-900 text-gray-700 dark:text-gray-300');
@layer base {
*,
::after,
::before,
::backdrop,
::file-selector-button {
border-color: var(--color-gray-200, currentcolor);
}
:root {
--navbar-height: 50px;
scroll-padding-top: var(--navbar-height);
}
}
button {
@apply cursor-pointer;
}
@layer base {
html,
body {
@apply text-gray-900 dark:text-gray-200;
background-color: #fdfdfd; /* 99% white */
}
html.dark,
html.dark body {
background-color: #0a0a0a; /* 96% black */
}
.using-mouse * {
outline: none !important;
}
* {
scrollbar-color: var(--color-gray-400) var(--color-gray-100);
}
*::-webkit-scrollbar,
* scrollbar {
width: 1rem;
height: 1rem;
}
*::-webkit-scrollbar-track,
* scrollbar-track {
background: var(--color-gray-100);
}
*::-webkit-scrollbar-thumb,
* scrollbar-thumb {
background: var(--color-gray-300);
border-radius: 0.5rem;
border: 3px solid var(--color-gray-100);
}
html.dark {
&,
* {
color-scheme: dark;
}
&,
* {
scrollbar-color: var(--color-gray-700) var(--color-gray-800);
}
&::-webkit-scrollbar,
*::-webkit-scrollbar,
* scrollbar {
width: 1rem;
height: 1rem;
}
& *::-webkit-scrollbar-track,
*::-webkit-scrollbar-track,
* scrollbar-track {
background: var(--color-gray-800);
}
&::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb,
* scrollbar-thumb {
background: var(--color-gray-600);
border-radius: 0.5rem;
border: 3px solid var(--color-gray-800);
}
}
[disabled] {
@apply opacity-50 pointer-events-none;
}
#docs-details summary::-webkit-details-marker {
display: none;
}
#docs-details .icon-close {
display: none;
}
#docs-details[open] .icon-close {
display: block;
}
#docs-details[open] .icon-open {
display: none;
}
#docs-details[open] > summary + * {
height: auto;
max-height: calc(100vh - 62px);
}
.anchor-heading {
text-decoration: none !important;
display: inline;
}
.anchor-heading > *:after {
content: '#';
@apply relative opacity-0 ml-2 transition duration-100;
}
.anchor-heading:hover > *:after {
@apply opacity-50;
}
:has(+ .anchor-heading) {
margin-bottom: 0 !important;
}
.anchor-heading + * {
margin-top: 0 !important;
}
}
/* ============================================================================
Design System Utilities
============================================================================ */
/* Buttons - base styles applied to all .btn-* classes */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-ghost,
.btn-icon {
@apply inline-flex items-center justify-center gap-2 font-medium transition-colors;
@apply disabled:opacity-50 disabled:cursor-not-allowed;
}
.btn-primary {
@apply px-4 py-2 rounded-lg;
@apply bg-blue-600 text-white hover:bg-blue-700;
}
.btn-secondary {
@apply px-4 py-2 rounded-lg;
@apply bg-gray-100 text-gray-700 hover:bg-gray-200;
@apply dark:bg-gray-800 dark:text-gray-300 dark:hover:bg-gray-700;
}
.btn-danger {
@apply px-4 py-2 rounded-lg;
@apply bg-red-600 text-white hover:bg-red-700;
}
.btn-ghost {
@apply px-3 py-2 rounded-lg;
@apply text-gray-600 hover:bg-gray-100;
@apply dark:text-gray-400 dark:hover:bg-gray-800;
}
.btn-icon {
@apply p-2 rounded-lg;
@apply text-gray-600 hover:bg-gray-100;
@apply dark:text-gray-400 dark:hover:bg-gray-700;
}
/* Form Inputs */
.input-base {
@apply w-full px-3 py-2 text-sm rounded-lg transition-colors;
@apply border border-gray-300 dark:border-gray-600;
@apply bg-white dark:bg-gray-800;
@apply text-gray-900 dark:text-white;
@apply placeholder:text-gray-400 dark:placeholder:text-gray-500;
@apply focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-transparent;
@apply disabled:opacity-50 disabled:cursor-not-allowed;
}
/* Cards */
.card {
@apply rounded-xl transition-all duration-200;
@apply bg-white dark:bg-gray-800;
@apply border border-gray-200 dark:border-gray-700;
}
.card-elevated {
@apply rounded-xl transition-all duration-200 shadow-md;
@apply bg-white/90 dark:bg-black/40 backdrop-blur-sm;
@apply border border-gray-200 dark:border-gray-700;
}
.card-interactive {
@apply rounded-xl transition-all duration-200 shadow-md cursor-pointer;
@apply bg-white/90 dark:bg-black/40 backdrop-blur-sm;
@apply border border-gray-200 dark:border-gray-700;
@apply hover:shadow-lg;
}
/* Dropdown/Menu Containers */
.dropdown-menu {
@apply rounded-lg shadow-md overflow-hidden;
@apply bg-white dark:bg-gray-800;
@apply border border-gray-200 dark:border-gray-700;
}
.dropdown-item {
@apply w-full px-4 py-2 text-left text-sm transition-colors;
@apply text-gray-700 dark:text-gray-300;
@apply hover:bg-gray-50 dark:hover:bg-gray-700;
}
.dropdown-item-active {
@apply bg-blue-50 text-blue-600 dark:bg-blue-900/30 dark:text-blue-400;
}
/* Badges - base styles applied to all .badge-* classes */
.badge-blue,
.badge-green,
.badge-red,
.badge-yellow,
.badge-gray {
@apply inline-flex items-center px-2 py-0.5 rounded-full text-xs font-medium;
}
.badge-blue {
@apply bg-blue-100 text-blue-800 dark:bg-blue-900/30 dark:text-blue-400;
}
.badge-green {
@apply bg-green-100 text-green-800 dark:bg-green-900/30 dark:text-green-400;
}
.badge-red {
@apply bg-red-100 text-red-800 dark:bg-red-900/30 dark:text-red-400;
}
.badge-yellow {
@apply bg-yellow-100 text-yellow-800 dark:bg-yellow-900/30 dark:text-yellow-400;
}
.badge-gray {
@apply bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300;
}
/* Text utilities */
.text-secondary {
@apply text-gray-600 dark:text-gray-400;
}
.text-tertiary {
@apply text-gray-500 dark:text-gray-500;
}
.text-link {
@apply text-blue-600 hover:text-blue-700 dark:text-blue-400 dark:hover:text-blue-300;
}
/* ============================================================================ */
/* https://github.com/shikijs/twoslash/tree/main/packages/remark-shiki-twoslash#plugin-setup */
pre {
/* All code samples get a grey border, twoslash ones get a different color */
@apply text-black overflow-x-auto relative leading-tight;
}
pre.shiki {
overflow-x: auto;
padding: 1rem;
@apply bg-white;
&.aurora-x {
@apply text-gray-400 bg-gray-950;
}
}
pre.shiki:hover .dim {
opacity: 1;
}
pre.shiki div.dim {
opacity: 0.5;
}
pre.shiki div.dim,
pre.shiki div.highlight {
margin: 0;
padding: 0;
}
pre.shiki div.highlight {
opacity: 1;
background-color: #f1f8ff;
}
pre.shiki div.line {
min-height: auto;
}
/** Don't show the language identifiers */
pre.shiki .language-id {
display: none;
}
span.line {
display: inline-block;
width: 100%;
}
pre.has-diff span.diff {
width: calc(100% + 20px);
margin-left: -10px;
padding-right: 20px;
padding-left: 10px;
padding-top: 4px;
padding-bottom: 4px;
}
pre.has-diff span.remove {
background-color: #f43f5e29;
}
pre.has-diff span.add {
background-color: #10b98129;
}
/* Visually differentiates twoslash code samples */
pre.twoslash {
border-color: #719af4;
}
/** When you mouse over the pre, show the underlines */
pre.twoslash:hover data-lsp {
border-color: #747474;
}
/** The tooltip-like which provides the LSP response */
pre.twoslash data-lsp:hover::before {
content: attr(lsp);
position: absolute;
transform: translate(0, 1rem);
color: #fff;
text-align: left;
padding: 5px 8px;
border-radius: 2px;
font-family:
'JetBrains Mono',
Menlo,
Monaco,
Consolas,
monospace,
Courier New;
font-size: 14px;
white-space: pre-wrap;
z-index: 100;
}
pre .code-container {
overflow: auto;
}
/* The try button */
pre .code-container > a {
position: absolute;
right: 8px;
bottom: 8px;
border-radius: 4px;
border: 1px solid #719af4;
padding: 0 8px;
color: #719af4;
text-decoration: none;
opacity: 0;
transition-timing-function: ease;
transition: opacity 0.3s;
}
/* Respect no animations */
@media (prefers-reduced-motion: reduce) {
pre .code-container > a {
transition: none;
}
}
pre .code-container > a:hover {
color: white;
background-color: #719af4;
}
pre .code-container:hover a {
opacity: 1;
}
pre code {
font-size: 12px;
font-family:
'JetBrains Mono',
Menlo,
Monaco,
Consolas,
monospace,
Courier New;
white-space: pre;
-webkit-overflow-scrolling: touch;
}
pre code a {
text-decoration: none;
}
pre data-err {
/* Extracted from VS Code */
background: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%206%203'%20enable-background%3D'new%200%200%206%203'%20height%3D'3'%20width%3D'6'%3E%3Cg%20fill%3D'%23c94824'%3E%3Cpolygon%20points%3D'5.5%2C0%202.5%2C3%201.1%2C3%204.1%2C0'%2F%3E%3Cpolygon%20points%3D'4%2C0%206%2C2%206%2C0.6%205.4%2C0'%2F%3E%3Cpolygon%20points%3D'0%2C2%201%2C3%202.4%2C3%200%2C0.6'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")
repeat-x bottom left;
padding-bottom: 3px;
}
pre .query {
margin-bottom: 10px;
color: #137998;
display: inline-block;
}
/* In order to have the 'popped out' style design and to not break the layout
/* we need to place a fake and un-selectable copy of the error which _isn't_ broken out
/* behind the actual error message.
/* This sections keeps both of those two in in sync */
pre .error,
pre .error-behind {
margin-left: -14px;
margin-top: 8px;
margin-bottom: 4px;
padding: 6px;
padding-left: 14px;
width: calc(100% - 20px);
white-space: pre-wrap;
display: block;
}
pre .error {
position: absolute;
background-color: #fee;
border-left: 2px solid #bf1818;
/* Give the space to the error code */
display: flex;
align-items: center;
color: black;
}
pre .error .code {
display: none;
}
pre .error-behind {
user-select: none;
visibility: transparent;
color: #fee;
}
/* Queries */
pre .arrow {
/* Transparent background */
background-color: #eee;
position: relative;
top: -7px;
margin-left: 0.1rem;
/* Edges */
border-left: 1px solid #eee;
border-top: 1px solid #eee;
transform: translateY(25%) rotate(45deg);
/* Size */
height: 8px;
width: 8px;
}
pre .popover {
margin-bottom: 10px;
background-color: #eee;
display: inline-block;
padding: 0 0.5rem 0.3rem;
margin-top: 10px;
border-radius: 3px;
}
/* Completion */
pre .inline-completions ul.dropdown {
display: inline-block;
position: absolute;
width: 240px;
background-color: gainsboro;
color: grey;
padding-top: 4px;
font-family: var(--code-font);
font-size: 0.8rem;
margin: 0;
padding: 0;
border-left: 4px solid #4b9edd;
}
pre .inline-completions ul.dropdown::before {
background-color: #4b9edd;
width: 2px;
position: absolute;
top: -1.2rem;
left: -3px;
content: ' ';
}
pre .inline-completions ul.dropdown li {
overflow-x: hidden;
padding-left: 4px;
margin-bottom: 4px;
}
pre .inline-completions ul.dropdown li.deprecated {
text-decoration: line-through;
}
pre .inline-completions ul.dropdown li span.result-found {
color: #4b9edd;
}
pre .inline-completions ul.dropdown li span.result {
width: 100px;
color: black;
display: inline-block;
}
.dark-theme .markdown pre {
background-color: #d8d8d8;
border-color: #ddd;
filter: invert(98%) hue-rotate(180deg);
}
data-lsp {
/* Ensures there's no 1px jump when the hover happens */
border-bottom: 1px dotted transparent;
/* Fades in unobtrusively */
transition-timing-function: ease;
transition: border-color 0.3s;
}
/* Respect people's wishes to not have animations */
@media (prefers-reduced-motion: reduce) {
data-lsp {
transition: none;
}
}
/** Annotations support, providing a tool for meta commentary */
.tag-container {
position: relative;
}
.tag-container .twoslash-annotation {
position: absolute;
font-family:
'JetBrains Mono',
Menlo,
Monaco,
Consolas,
monospace,
Courier New;
right: -10px;
/** Default annotation text to 200px */
width: 200px;
color: #187abf;
background-color: #fcf3d9 bb;
}
.tag-container .twoslash-annotation p {
text-align: left;
font-size: 0.8rem;
line-height: 0.9rem;
}
.tag-container .twoslash-annotation svg {
float: left;
margin-left: -44px;
}
.tag-container .twoslash-annotation.left {
right: auto;
left: -200px;
}
.tag-container .twoslash-annotation.left svg {
float: right;
margin-right: -5px;
}
/** Support for showing console log/warn/errors inline */
pre .logger {
display: flex;
align-items: center;
color: black;
padding: 6px;
padding-left: 8px;
width: calc(100% - 19px);
white-space: pre-wrap;
}
pre .logger svg {
margin-right: 9px;
}
pre .logger.error-log {
background-color: #fee;
border-left: 2px solid #bf1818;
}
pre .logger.warn-log {
background-color: #ffe;
border-left: 2px solid #eae662;
}
pre .logger.log-log {
background-color: #e9e9e9;
border-left: 2px solid #ababab;
}
pre .logger.log-log svg {
margin-left: 6px;
margin-right: 9px;
}
html:not(.dark) .shiki.aurora-x {
display: none;
}
html.dark .shiki.github-light {
display: none;
}
/* Improve comment contrast in dark mode */
html.dark .shiki.aurora-x .token.comment,
html.dark .shiki.aurora-x span[style*='color:#546E7A'],
html.dark .shiki.aurora-x span[style*='color:#546E7A'],
html.dark .shiki.aurora-x span[style*='color:#546E7A'],
html.dark .shiki.aurora-x span[style*='color:#546E7A'] {
color: #9099c0 !important;
}
/* TanStack Router Devtools */
.TanStackRouterDevtools > button {
@apply rotate-90 origin-top-right -translate-y-[50px] translate-x-2 rounded-t-none bg-white dark:bg-gray-900;
@apply border-t-0 border-gray-500/10 shadow-md text-gray-800;
}
/* Hubspot */
#hubspot-messages-iframe-container {
@apply translate-x-[10px] translate-y-[10px];
@apply dark:scheme-dark;
}
/* Markdown Alerts */
.not-prose .markdown-alert {
@apply pt-2 pb-4 px-3 flex flex-col gap-2;
p {
@apply my-2;
}
}
.markdown-alert {
@apply border-l-4 pl-4 py-1.5 my-2 bg-white dark:bg-gray-900 rounded-r-sm;
}
.markdown-alert > * {
@apply m-0;
}
.markdown-alert.markdown-alert-note {
@apply border-blue-500/90;
}
.markdown-alert.markdown-alert-note .markdown-alert-title svg {
@apply fill-blue-500/90;
}
.markdown-alert.markdown-alert-warning {
@apply border-yellow-500/90;
}
.markdown-alert.markdown-alert-warning .markdown-alert-title svg {
@apply fill-yellow-500/90;
}
.markdown-alert.markdown-alert-caution {
@apply border-red-500/90;
}
.markdown-alert.markdown-alert-caution .markdown-alert-title svg {
@apply fill-red-500/90;
}
.markdown-alert.markdown-alert-tip {
@apply border-green-500/90;
}
.markdown-alert.markdown-alert-tip .markdown-alert-title svg {
@apply fill-green-500/90;
}
.markdown-alert.markdown-alert-important {
@apply border-purple-500/90;
}
.markdown-alert.markdown-alert-important .markdown-alert-title svg {
@apply fill-purple-500/90;
}
.markdown-alert .markdown-alert-title {
@apply flex justify-start items-center font-medium;
}
.markdown-alert .markdown-alert-content {
@apply pr-5;
}
.bg-clip-text {
@apply print:text-gray-800;
}
[data-tab] {
@apply text-sm leading-normal;
}
[data-tab] a {
@apply underline font-[500];
}
[data-tab] .markdown-alert {
@apply bg-gray-100 dark:bg-gray-900;
}
[data-tab] > .markdown-alert [aria-label] svg {
@apply stroke-current fill-current;
}
mark {
@apply bg-yellow-400 rounded-md px-px mx-px;
}
.dark g[aria-label='tip'] > g > path {
@apply fill-gray-800/90 stroke-gray-500/20;
}
@font-face {
font-display: optional;
font-family: 'Inter';
font-style: normal;
font-weight: 100 900;
src: url('/fonts/Inter-latin-ext.woff2') format('woff2');
unicode-range:
U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
font-display: optional;
font-family: 'Inter';
font-style: normal;
font-weight: 100 900;
src: url('/fonts/Inter-latin.woff2') format('woff2');
unicode-range:
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
U+2215, U+FEFF, U+FFFD;
}
@keyframes fadeIn {
from {
opacity: 0;
filter: blur(4px);
transform: scale(0.97);
}
to {
opacity: 1;
filter: blur(0);
transform: scale(1);
}
}
@keyframes pulseScale {
0% {
transform: scale(1);
}
50% {
transform: scale(var(--scale-factor, 1.1));
}
100% {
transform: scale(1);
}
}
@property --ship-x {
syntax: '<length>';
inherits: true;
initial-value: 70px;
}
@property --ship-y {
syntax: '<length>';
inherits: true;
initial-value: 2.5rem;
}
@keyframes ship-peek {
0%,
100% {
transform: translateX(-50%) translateY(0) scale(1) scaleX(-1);
}
12% {
transform: translateX(calc(-50% - var(--ship-x)))
translateY(calc(-1 * var(--ship-y))) scale(1.15) scaleX(-1);
}
32% {
transform: translateX(calc(-50% - var(--ship-x)))
translateY(calc(-1 * var(--ship-y))) scale(1.15) scaleX(-1);
}
35% {
transform: translateX(-50%) translateY(0) scale(1) scaleX(-1);
}
}
@keyframes ship-pointer-events {
0%,
11%,
33%,
100% {
pointer-events: none;
}
12%,
32% {
pointer-events: auto;
}
}
.animate-ship-peek {
animation: ship-peek 10s ease-in-out infinite;
transform: translateX(-50%);
}
.animate-ship-peek-clickable {
animation:
ship-peek 10s ease-in-out infinite,
ship-pointer-events 10s ease-in-out infinite;
transform: translateX(-50%);
pointer-events: none;
}
/* Dropdown animations */
@keyframes dropdown-in {
from {
opacity: 0;
transform: scale(0.95) translateY(-4px);
}
to {
opacity: 1;
transform: scale(1) translateY(0);
}
}
@keyframes dropdown-out {
from {
opacity: 1;
transform: scale(1) translateY(0);
}
to {
opacity: 0;
transform: scale(0.95) translateY(-4px);
}
}
.dropdown-content {
animation: dropdown-in 150ms ease-out;
}
.dropdown-content[data-state='closed'] {
animation: dropdown-out 100ms ease-in;
}
/* Doc Feedback Styles */
.doc-feedback-block {
transition:
background-color 0.2s ease,
outline-color 0.2s ease;
outline: 1px solid transparent;
outline-offset: -1px;
}
.doc-feedback-block-highlighted {
background-color: rgba(59, 130, 246, 0.03);
outline-color: rgba(59, 130, 246, 0.2);
border-radius: 0.25rem;
}
.dark .doc-feedback-block-highlighted {
background-color: rgba(59, 130, 246, 0.05);
outline-color: rgba(59, 130, 246, 0.3);
}
/* Icons */
.lucide {
stroke-width: 2.25;
width: 1em;
height: 1em;
}
/* Consecutive code blocks - no gap when under headings */
[data-tab] .codeblock + .codeblock {
@apply mt-0 border-t-0 rounded-t-none;
}
[data-tab] .codeblock:has(+ .codeblock) {
@apply rounded-b-none;
}
/* File tabs variant - minimal code blocks with floating copy button */
.file-tabs-panel .codeblock {
@apply rounded-t-none border-t-0 my-0;
}
/* Hide the title bar but keep copy button accessible */
.file-tabs-panel .codeblock > div:first-child {
@apply absolute right-2 top-2 bg-transparent border-none p-0 z-10;
}
/* Hide the title text, keep only the button */
.file-tabs-panel .codeblock > div:first-child > div:first-child {
@apply hidden;
}
/* Package manager tabs - minimal code blocks with floating copy button */
.package-manager-tabs [data-tab] .codeblock {
@apply rounded-t-none border-t-0 my-0;
}
.package-manager-tabs [data-tab] .codeblock > div:first-child {
@apply absolute right-2 top-2 bg-transparent border-none p-0 z-10;
}
.package-manager-tabs .codeblock {
border: none;
}
.package-manager-tabs
[data-tab]
.codeblock
> div:first-child
> div:first-child {