@usecross/docs 0.8.2 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/styles.css +213 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usecross/docs",
3
- "version": "0.8.2",
3
+ "version": "0.9.0",
4
4
  "description": "Documentation framework built on Cross-Inertia",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
package/src/styles.css CHANGED
@@ -195,6 +195,46 @@
195
195
  --tw-prose-th-borders: theme(colors.gray.600);
196
196
  --tw-prose-td-borders: theme(colors.gray.700);
197
197
  }
198
+
199
+ /* Blockquote styling - matches alert block aesthetic */
200
+ .prose blockquote {
201
+ @apply my-6 border-l-[3px] py-4 px-5 rounded-r-lg;
202
+ @apply not-italic;
203
+ font-style: normal;
204
+ quotes: none;
205
+ background-color: rgb(241 245 249 / 0.8);
206
+ border-left-color: rgb(148 163 184);
207
+ }
208
+
209
+ .prose blockquote p {
210
+ @apply text-gray-600 leading-relaxed;
211
+ }
212
+
213
+ .prose blockquote p:first-child {
214
+ @apply mt-0;
215
+ }
216
+
217
+ .prose blockquote p:last-child {
218
+ @apply mb-0;
219
+ }
220
+
221
+ /* Dark mode blockquote */
222
+ .dark .prose blockquote {
223
+ background-color: rgb(51 65 85 / 0.15);
224
+ border-left-color: rgb(100 116 139);
225
+ }
226
+
227
+ .dark .prose blockquote p {
228
+ @apply text-gray-300;
229
+ }
230
+
231
+ .dark .prose blockquote strong {
232
+ @apply text-white;
233
+ }
234
+
235
+ .dark .prose blockquote code {
236
+ @apply bg-slate-700/50 text-slate-200;
237
+ }
198
238
  }
199
239
 
200
240
  /* Syntax highlighting - rounded corners like Starlight */
@@ -234,6 +274,179 @@
234
274
  @apply bg-gray-600;
235
275
  }
236
276
 
277
+ /* GitHub-style alerts - refined for Cross aesthetic */
278
+ .markdown-alert {
279
+ @apply my-6 border-l-[3px] pt-2 pb-4 px-5 rounded-r-lg;
280
+ background-color: var(--alert-bg);
281
+ }
282
+
283
+ .markdown-alert > p {
284
+ @apply text-gray-600 dark:text-gray-300 leading-relaxed;
285
+ }
286
+
287
+ .markdown-alert > p:last-child {
288
+ @apply mb-0;
289
+ }
290
+
291
+ .markdown-alert-title {
292
+ @apply mb-3 flex items-center gap-2.5 text-sm font-semibold tracking-wide uppercase;
293
+ }
294
+
295
+ .markdown-alert-title svg {
296
+ @apply h-[18px] w-[18px] flex-shrink-0;
297
+ color: currentColor;
298
+ fill: currentColor;
299
+ }
300
+
301
+ /* Note alert - muted slate blue */
302
+ .markdown-alert-note {
303
+ --alert-bg: rgb(241 245 249 / 0.8);
304
+ @apply border-slate-400;
305
+ }
306
+
307
+ .dark .markdown-alert-note {
308
+ --alert-bg: rgb(51 65 85 / 0.15);
309
+ @apply border-slate-500;
310
+ }
311
+
312
+ .markdown-alert-note .markdown-alert-title {
313
+ @apply text-slate-600 dark:text-slate-400;
314
+ }
315
+
316
+ /* Tip alert - muted sage/olive green (matches site accent) */
317
+ .markdown-alert-tip {
318
+ --alert-bg: rgb(236 243 230 / 0.8);
319
+ @apply border-[#7b8c64];
320
+ }
321
+
322
+ .dark .markdown-alert-tip {
323
+ --alert-bg: rgb(107 124 79 / 0.1);
324
+ @apply border-[#8a9b72];
325
+ }
326
+
327
+ .markdown-alert-tip .markdown-alert-title {
328
+ @apply text-[#5c6b4a] dark:text-[#a3b38f];
329
+ }
330
+
331
+ /* Important alert - muted indigo/violet */
332
+ .markdown-alert-important {
333
+ --alert-bg: rgb(243 242 252 / 0.8);
334
+ @apply border-indigo-400;
335
+ }
336
+
337
+ .dark .markdown-alert-important {
338
+ --alert-bg: rgb(99 102 241 / 0.08);
339
+ @apply border-indigo-500;
340
+ }
341
+
342
+ .markdown-alert-important .markdown-alert-title {
343
+ @apply text-indigo-600 dark:text-indigo-400;
344
+ }
345
+
346
+ /* Warning alert - muted ochre/amber */
347
+ .markdown-alert-warning {
348
+ --alert-bg: rgb(254 249 236 / 0.9);
349
+ @apply border-amber-500/80;
350
+ }
351
+
352
+ .dark .markdown-alert-warning {
353
+ --alert-bg: rgb(245 158 11 / 0.08);
354
+ @apply border-amber-500/60;
355
+ }
356
+
357
+ .markdown-alert-warning .markdown-alert-title {
358
+ @apply text-amber-700 dark:text-amber-400;
359
+ }
360
+
361
+ /* Caution alert - muted terracotta/rust */
362
+ .markdown-alert-caution {
363
+ --alert-bg: rgb(254 242 239 / 0.9);
364
+ @apply border-rose-400;
365
+ }
366
+
367
+ .dark .markdown-alert-caution {
368
+ --alert-bg: rgb(244 63 94 / 0.08);
369
+ @apply border-rose-500/70;
370
+ }
371
+
372
+ .markdown-alert-caution .markdown-alert-title {
373
+ @apply text-rose-600 dark:text-rose-400;
374
+ }
375
+
376
+ /* Task list styling */
377
+ .contains-task-list {
378
+ @apply list-none pl-0;
379
+ }
380
+
381
+ .task-list-item {
382
+ @apply flex items-center gap-2 list-none;
383
+ }
384
+
385
+ .task-list-item input[type="checkbox"] {
386
+ @apply h-4 w-4 flex-shrink-0;
387
+ }
388
+
389
+ /* Footnote reference styling */
390
+ .footnote-ref {
391
+ @apply text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300;
392
+ @apply text-sm font-medium no-underline;
393
+ }
394
+
395
+ .footnote-ref::before {
396
+ content: '[';
397
+ }
398
+
399
+ .footnote-ref::after {
400
+ content: ']';
401
+ }
402
+
403
+ /* Footnote back reference */
404
+ .footnote-backref {
405
+ @apply ml-1 text-primary-600 hover:text-primary-700 dark:text-primary-400 dark:hover:text-primary-300;
406
+ @apply no-underline;
407
+ }
408
+
409
+ /* Footnote anchor targets - account for fixed header */
410
+ [id^="user-content-fn-"],
411
+ [id^="user-content-fnref-"] {
412
+ scroll-margin-top: 6rem;
413
+ }
414
+
415
+ /* Target highlight animation for footnotes */
416
+ [id^="user-content-fn-"]:target,
417
+ [id^="user-content-fnref-"]:target {
418
+ animation: target-highlight 2s ease-out;
419
+ }
420
+
421
+ @keyframes target-highlight {
422
+ 0% {
423
+ background-color: rgb(251 191 36 / 0.4);
424
+ border-radius: 0.25rem;
425
+ box-shadow: 0 0 0 4px rgb(251 191 36 / 0.4);
426
+ }
427
+ 100% {
428
+ background-color: transparent;
429
+ box-shadow: 0 0 0 4px transparent;
430
+ }
431
+ }
432
+
433
+ .dark [id^="user-content-fn-"]:target,
434
+ .dark [id^="user-content-fnref-"]:target {
435
+ animation: target-highlight-dark 2s ease-out;
436
+ }
437
+
438
+ @keyframes target-highlight-dark {
439
+ 0% {
440
+ background-color: rgb(251 191 36 / 0.3);
441
+ border-radius: 0.25rem;
442
+ box-shadow: 0 0 0 4px rgb(251 191 36 / 0.3);
443
+ }
444
+ 100% {
445
+ background-color: transparent;
446
+ box-shadow: 0 0 0 4px transparent;
447
+ }
448
+ }
449
+
237
450
  /* Emoji confetti animation */
238
451
  @keyframes emojiConfettiBurst {
239
452
  0% {