Add citation.py module for document citation tracking and management. Configure Biome and Ruff for consistent code formatting across TypeScript and Python. Update webui with improved component organization, API client refactoring, and enhanced user interface patterns. Add formatting configs and dependency updates for build toolchain optimization.
219 lines
5.8 KiB
CSS
219 lines
5.8 KiB
CSS
@import "tailwindcss";
|
|
|
|
@plugin 'tailwindcss-animate';
|
|
@plugin 'tailwind-scrollbar';
|
|
|
|
@source '../index.html';
|
|
@source './**/*.{ts,tsx}';
|
|
|
|
@custom-variant dark (&:is(.dark *));
|
|
|
|
:root {
|
|
--background: hsl(0 0% 100%);
|
|
--foreground: hsl(240 10% 3.9%);
|
|
--card: hsl(0 0% 100%);
|
|
--card-foreground: hsl(240 10% 3.9%);
|
|
--popover: hsl(0 0% 100%);
|
|
--popover-foreground: hsl(240 10% 3.9%);
|
|
--primary: hsl(240 5.9% 10%);
|
|
--primary-foreground: hsl(0 0% 98%);
|
|
--secondary: hsl(240 4.8% 95.9%);
|
|
--secondary-foreground: hsl(240 5.9% 10%);
|
|
--muted: hsl(240 4.8% 95.9%);
|
|
--muted-foreground: hsl(240 3.8% 46.1%);
|
|
--accent: hsl(240 4.8% 95.9%);
|
|
--accent-foreground: hsl(240 5.9% 10%);
|
|
--destructive: hsl(0 84.2% 60.2%);
|
|
--destructive-foreground: hsl(0 0% 98%);
|
|
--border: hsl(240 5.9% 90%);
|
|
--input: hsl(240 5.9% 90%);
|
|
--ring: hsl(240 10% 3.9%);
|
|
--chart-1: hsl(12 76% 61%);
|
|
--chart-2: hsl(173 58% 39%);
|
|
--chart-3: hsl(197 37% 24%);
|
|
--chart-4: hsl(43 74% 66%);
|
|
--chart-5: hsl(27 87% 67%);
|
|
--plum: #734079;
|
|
--plum-foreground: hsl(0 0% 98%);
|
|
--radius: 0.6rem;
|
|
--sidebar-background: hsl(0 0% 98%);
|
|
--sidebar-foreground: hsl(240 5.3% 26.1%);
|
|
--sidebar-primary: hsl(240 5.9% 10%);
|
|
--sidebar-primary-foreground: hsl(0 0% 98%);
|
|
--sidebar-accent: hsl(240 4.8% 95.9%);
|
|
--sidebar-accent-foreground: hsl(240 5.9% 10%);
|
|
--sidebar-border: hsl(220 13% 91%);
|
|
--sidebar-ring: hsl(217.2 91.2% 59.8%);
|
|
}
|
|
|
|
.dark {
|
|
--background: hsl(220 8% 12%);
|
|
--foreground: hsl(0 0% 95%);
|
|
--card: hsl(220 8% 16%);
|
|
--card-foreground: hsl(0 0% 96%);
|
|
--popover: hsl(220 8% 16%);
|
|
--popover-foreground: hsl(0 0% 96%);
|
|
--primary: hsl(0 0% 96%);
|
|
--primary-foreground: hsl(220 8% 14%);
|
|
--secondary: hsl(220 7% 22%);
|
|
--secondary-foreground: hsl(0 0% 96%);
|
|
--muted: hsl(220 6% 26%);
|
|
--muted-foreground: hsl(220 12% 72%);
|
|
--accent: hsl(220 7% 24%);
|
|
--accent-foreground: hsl(0 0% 96%);
|
|
--destructive: hsl(0 65% 52%);
|
|
--destructive-foreground: hsl(0 0% 96%);
|
|
--border: hsl(220 6% 30%);
|
|
--input: hsl(220 6% 30%);
|
|
--ring: hsl(220 15% 65%);
|
|
--chart-1: hsl(220 70% 50%);
|
|
--chart-2: hsl(160 60% 45%);
|
|
--chart-3: hsl(30 80% 55%);
|
|
--chart-4: hsl(280 65% 60%);
|
|
--chart-5: hsl(340 75% 55%);
|
|
--plum: #b06ab6;
|
|
--plum-foreground: hsl(0 0% 96%);
|
|
--sidebar-background: hsl(220 8% 13%);
|
|
--sidebar-foreground: hsl(0 0% 94%);
|
|
--sidebar-primary: hsl(224.3 70% 62%);
|
|
--sidebar-primary-foreground: hsl(0 0% 98%);
|
|
--sidebar-accent: hsl(220 7% 21%);
|
|
--sidebar-accent-foreground: hsl(0 0% 94%);
|
|
--sidebar-border: hsl(220 7% 28%);
|
|
--sidebar-ring: hsl(220 15% 62%);
|
|
}
|
|
|
|
@theme inline {
|
|
--color-background: var(--background);
|
|
--color-foreground: var(--foreground);
|
|
--color-card: var(--card);
|
|
--color-card-foreground: var(--card-foreground);
|
|
--color-popover: var(--popover);
|
|
--color-popover-foreground: var(--popover-foreground);
|
|
--color-primary: var(--primary);
|
|
--color-primary-foreground: var(--primary-foreground);
|
|
--color-secondary: var(--secondary);
|
|
--color-secondary-foreground: var(--secondary-foreground);
|
|
--color-muted: var(--muted);
|
|
--color-muted-foreground: var(--muted-foreground);
|
|
--color-accent: var(--accent);
|
|
--color-accent-foreground: var(--accent-foreground);
|
|
--color-destructive: var(--destructive);
|
|
--color-destructive-foreground: var(--destructive-foreground);
|
|
--color-border: var(--border);
|
|
--color-input: var(--input);
|
|
--color-ring: var(--ring);
|
|
--color-chart-1: var(--chart-1);
|
|
--color-chart-2: var(--chart-2);
|
|
--color-chart-3: var(--chart-3);
|
|
--color-chart-4: var(--chart-4);
|
|
--color-chart-5: var(--chart-5);
|
|
--color-plum: var(--plum);
|
|
--color-plum-foreground: var(--plum-foreground);
|
|
--radius-sm: calc(var(--radius) - 4px);
|
|
--radius-md: calc(var(--radius) - 2px);
|
|
--radius-lg: var(--radius);
|
|
--radius-xl: calc(var(--radius) + 4px);
|
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
--color-sidebar-border: var(--sidebar-border);
|
|
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
--color-sidebar-accent: var(--sidebar-accent);
|
|
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
--color-sidebar-primary: var(--sidebar-primary);
|
|
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
--color-sidebar: var(--sidebar-background);
|
|
--animate-accordion-down: accordion-down 0.2s ease-out;
|
|
--animate-accordion-up: accordion-up 0.2s ease-out;
|
|
}
|
|
|
|
@layer base {
|
|
* {
|
|
@apply border-border outline-ring/50;
|
|
}
|
|
body {
|
|
@apply bg-background text-foreground;
|
|
}
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 10px;
|
|
height: 10px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background-color: hsl(0 0% 80%);
|
|
border-radius: 5px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background-color: hsl(0 0% 95%);
|
|
}
|
|
|
|
.dark {
|
|
::-webkit-scrollbar-thumb {
|
|
background-color: hsl(0 0% 70%);
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background-color: hsl(220 8% 18%);
|
|
}
|
|
}
|
|
|
|
/* KaTeX Math Formula Styles */
|
|
.katex-display-wrapper {
|
|
text-align: center;
|
|
position: relative;
|
|
}
|
|
|
|
.katex-display-wrapper .katex-display {
|
|
margin: 0.5em 0;
|
|
text-align: center;
|
|
}
|
|
|
|
.katex-inline-wrapper .katex {
|
|
font-size: inherit;
|
|
line-height: inherit;
|
|
}
|
|
|
|
/* Ensure KaTeX formulas inherit color properly */
|
|
.katex .base {
|
|
color: inherit;
|
|
}
|
|
|
|
/* Improve KaTeX display for different themes */
|
|
.katex .mord,
|
|
.katex .mop,
|
|
.katex .mbin,
|
|
.katex .mrel,
|
|
.katex .mpunct,
|
|
.katex .mopen,
|
|
.katex .mclose,
|
|
.katex .minner {
|
|
color: inherit;
|
|
}
|
|
|
|
/* Fix KaTeX display overflow issues */
|
|
.katex-display {
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.katex-display > .katex {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Improve KaTeX error display */
|
|
.katex .katex-error {
|
|
background-color: rgba(255, 0, 0, 0.1);
|
|
border: 1px solid rgba(255, 0, 0, 0.3);
|
|
border-radius: 4px;
|
|
padding: 2px 4px;
|
|
color: #dc2626;
|
|
}
|
|
|
|
.dark .katex .katex-error {
|
|
background-color: rgba(255, 0, 0, 0.2);
|
|
border-color: rgba(255, 0, 0, 0.4);
|
|
color: #ef4444;
|
|
}
|