forked from langfuse/langfuse-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
309 lines (264 loc) · 7.46 KB
/
style.css
File metadata and controls
309 lines (264 loc) · 7.46 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
/* Tailwind CSS v4 entry point */
@import "tailwindcss";
/* fumadocs-ui: neutral theme colors (defines --color-fd-* variables in @theme) */
@import "fumadocs-ui/css/neutral.css";
/* fumadocs-ui: component styles and utilities (depends on neutral.css colors) */
@import "fumadocs-ui/css/preset.css";
/* Dark mode via class on <html> element */
@variant dark (&:is(.dark *));
/* Custom theme tokens */
@theme {
--font-sans:
var(--font-geist-sans), ui-sans-serif, system-ui, sans-serif,
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--font-mono:
var(--font-geist-mono), ui-monospace, SFMono-Regular, Menlo, Monaco,
Consolas, "Liberation Mono", "Courier New", monospace;
/* Semantic color tokens (resolved from CSS custom properties at runtime) */
--color-border: hsl(var(--border));
--color-input: hsl(var(--input));
--color-ring: hsl(var(--ring));
--color-background: hsl(var(--background));
--color-foreground: hsl(var(--foreground));
--color-primary: hsl(var(--primary));
--color-primary-foreground: hsl(var(--primary-foreground));
--color-secondary: hsl(var(--secondary));
--color-secondary-foreground: hsl(var(--secondary-foreground));
--color-destructive: hsl(var(--destructive));
--color-destructive-foreground: hsl(var(--destructive-foreground));
--color-muted: hsl(var(--muted));
--color-muted-foreground: hsl(var(--muted-foreground));
--color-accent: hsl(var(--accent));
--color-accent-foreground: hsl(var(--accent-foreground));
--color-popover: hsl(var(--popover));
--color-popover-foreground: hsl(var(--popover-foreground));
--color-card: hsl(var(--card));
--color-card-foreground: hsl(var(--card-foreground));
--color-muted-green: hsl(var(--muted-green));
--color-muted-blue: hsl(var(--muted-blue));
--color-muted-magenta: hsl(var(--muted-magenta));
/* Border radius */
--radius-lg: var(--radius);
--radius-md: calc(var(--radius) - 2px);
--radius-sm: calc(var(--radius) - 4px);
/* Container: use Tailwind default so max-w-2xl stays 42rem (672px). Use max-w-[1400px] or a custom var for wide layout. */
--container-2xl: 42rem;
/* Large display headings: line-height 1 (restore pre-upgrade behavior) */
--text-5xl--line-height: 1;
--text-6xl--line-height: 1;
--text-7xl--line-height: 1;
--text-8xl--line-height: 1;
--text-9xl--line-height: 1;
/* Animations */
--animate-accordion-down: accordion-down 0.2s ease-out;
--animate-accordion-up: accordion-up 0.2s ease-out;
--animate-border-beam: border-beam calc(var(--duration) * 1s) infinite linear;
--animate-meteor: meteor 5s linear infinite;
--animate-spin-custom: spin-custom calc(var(--speed) * 2) infinite linear;
--animate-slide: slide var(--speed) ease-in-out infinite alternate;
--animate-gradient: gradient 6s linear infinite;
--animate-marquee: marquee var(--duration) linear infinite;
--animate-grid: grid 20s linear infinite;
--animate-marquee-vertical: marquee-vertical var(--duration) linear infinite;
--animate-fall: fall 1.5s linear forwards;
@keyframes accordion-down {
from {
height: 0;
}
to {
height: var(--radix-accordion-content-height);
}
}
@keyframes accordion-up {
from {
height: var(--radix-accordion-content-height);
}
to {
height: 0;
}
}
@keyframes border-beam {
100% {
offset-distance: 100%;
}
}
@keyframes grid {
0% {
transform: translateY(-50%);
}
100% {
transform: translateY(0);
}
}
@keyframes meteor {
0% {
transform: rotate(215deg) translateX(0);
opacity: 1;
}
70% {
opacity: 1;
}
100% {
transform: rotate(215deg) translateX(-500px);
opacity: 0;
}
}
@keyframes marquee {
from {
transform: translateX(0);
}
to {
transform: translateX(calc(-100% - var(--gap)));
}
}
@keyframes marquee-vertical {
from {
transform: translateY(0);
}
to {
transform: translateY(calc(-100% - var(--gap)));
}
}
@keyframes gradient {
to {
background-position: 200% center;
}
}
@keyframes spin-custom {
0% {
rotate: 0deg;
}
15%,
35% {
rotate: 90deg;
}
65%,
85% {
rotate: 270deg;
}
100% {
rotate: 360deg;
}
}
@keyframes slide {
to {
transform: translate(calc(100cqw - 100%), 0);
}
}
@keyframes fall {
0% {
transform: translateY(0px) rotate(0deg);
opacity: 1;
}
100% {
transform: translateY(250px) rotate(360deg);
opacity: 0;
}
}
}
/* CSS custom properties for shadcn/ui color system */
@layer base {
:root {
--background: 0 0% 99%;
--foreground: 222.2 84% 4.9%;
--muted: 214 32% 91%;
--muted-foreground: 215.4 16.3% 46.9%;
--popover: 0 0% 100%;
--popover-foreground: 222.2 84% 4.9%;
--card: 0 0% 100%;
--card-foreground: 222.2 84% 4.9%;
--ring: 214 32% 91%;
--border: 214 32% 91%;
--input: 214 32% 91%;
--primary: 222.2 47.4% 11.2%;
--primary-foreground: 210 40% 98%;
--secondary: 214 32% 91%;
--secondary-foreground: 222.2 47.4% 11.2%;
--accent: 214 32% 91%;
--accent-foreground: ;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 210 40% 98%;
--radius: 0.5rem;
--muted-green: 84 81% 44%;
--muted-magenta: 330 90% 70%;
--muted-blue: 239 84% 67%;
}
:root[class~="dark"] {
--background: 0 0% 6.7%;
--foreground: 210 40% 98%;
--muted: 0 0% 18%;
--muted-foreground: 215 20.2% 65.1%;
--popover: 222.2 14% 4.9%;
--popover-foreground: 210 40% 98%;
--card: 0 0% 0%;
--card-foreground: 210 40% 98%;
--ring: 0 0% 18%;
--border: 0 0% 18%;
--input: 0 0% 18%;
--primary: 210 40% 98%;
--primary-foreground: 222.2 47.4% 11.2%;
--secondary: 0 0% 18%;
--secondary-foreground: 210 40% 98%;
--accent: 0 0% 18%;
--accent-foreground: ;
--destructive: 0 62.8% 30.6%;
--destructive-foreground: 0 85.7% 97.3%;
}
* {
@apply border-border;
}
body {
@apply bg-background! text-foreground!;
font-feature-settings:
"rlig" 1,
"calt" 1;
}
footer {
@apply bg-background! text-foreground!;
}
h1 {
@apply tracking-tight font-mono;
}
h2 {
@apply tracking-tight;
}
/* Style headers in Markdown tables */
th {
@apply bg-muted text-left p-4 font-mono;
}
}
/* Body content area inside <details> — adds horizontal padding so text
doesn't run flush against the border. */
@layer base {
details > *:not(summary) {
padding-left: 1rem;
padding-right: 1rem;
}
details > *:last-child:not(summary) {
padding-bottom: 0.75rem;
}
}
/* Override the Tailwind v4 auto-generated animation utilities that use
animation: var(--animate-*). The nested var() chain (--animate-foo
contains var(--speed) / var(--duration)) can be silently invalid in
some browsers. Explicit shorthand values are unambiguous and reliable. */
@layer utilities {
.animate-slide {
animation: slide var(--speed) ease-in-out infinite alternate;
}
.animate-spin-custom {
animation: spin-custom calc(var(--speed) * 2) infinite linear;
}
.animate-marquee {
animation: marquee var(--duration) linear infinite;
}
.animate-marquee-vertical {
animation: marquee-vertical var(--duration) linear infinite;
}
.animate-border-beam {
animation: border-beam calc(var(--duration) * 1s) infinite linear;
}
.animate-grid {
animation: grid 20s linear infinite;
}
}