Spaces:
Sleeping
Sleeping
File size: 6,848 Bytes
102c540 c8a9031 102c540 47bd0d6 c8a9031 102c540 c8a9031 47bd0d6 c8a9031 47bd0d6 102c540 2dde49f c8a9031 2dde49f c8a9031 2dde49f c8a9031 2dde49f c8a9031 2dde49f c8a9031 2dde49f c8a9031 2dde49f c8a9031 2dde49f 24bbad4 8ae8586 ac3613d 102c540 | 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 | @tailwind base;
@tailwind components;
@tailwind utilities;
@layer base {
:root {
--background: 0 0% 100%;
--foreground: 222.2 84% 4.9%;
--card: 0 0% 100%;
--card-foreground: 222.2 84% 4.9%;
--popover: 0 0% 100%;
--popover-foreground: 222.2 84% 4.9%;
--primary: 222.2 47.4% 11.2%;
--primary-foreground: 210 40% 98%;
--secondary: 210 40% 96.1%;
--secondary-foreground: 222.2 47.4% 11.2%;
--muted: 210 40% 96.1%;
--muted-foreground: 215.4 16.3% 46.9%;
--accent: 210 40% 96.1%;
--accent-foreground: 222.2 47.4% 11.2%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 210 40% 98%;
--border: 214.3 31.8% 91.4%;
--input: 214.3 31.8% 91.4%;
--ring: 222.2 84% 4.9%;
--radius: 0.5rem;
/* Font size variables */
--font-size-xs: 0.8125rem; /* 13px */
--font-size-sm: 0.9375rem; /* 15px */
--font-size-base: 1.0625rem; /* 17px */
--font-size-lg: 1.1875rem; /* 19px */
--font-size-xl: 1.375rem; /* 22px */
--font-size-2xl: 1.625rem; /* 26px */
/* Line height variables */
--line-height-tight: 1.3;
--line-height-normal: 1.5;
--line-height-relaxed: 1.7;
}
.dark {
--background: 222.2 84% 4.9%;
--foreground: 210 40% 98%;
--card: 222.2 84% 4.9%;
--card-foreground: 210 40% 98%;
--popover: 222.2 84% 4.9%;
--popover-foreground: 210 40% 98%;
--primary: 210 40% 98%;
--primary-foreground: 222.2 47.4% 11.2%;
--secondary: 217.2 32.6% 17.5%;
--secondary-foreground: 210 40% 98%;
--muted: 217.2 32.6% 17.5%;
--muted-foreground: 215 20.2% 65.1%;
--accent: 217.2 32.6% 17.5%;
--accent-foreground: 210 40% 98%;
--destructive: 0 62.8% 30.6%;
--destructive-foreground: 210 40% 98%;
--border: 217.2 32.6% 17.5%;
--input: 217.2 32.6% 17.5%;
--ring: 212.7 26.8% 83.9%;
}
}
@layer base {
* {
@apply border-border;
}
html {
font-size: 16px; /* Base font size */
}
body {
@apply bg-background text-foreground;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
font-size: var(--font-size-base);
line-height: var(--line-height-normal);
transition: background-color 0.3s ease, color 0.3s ease;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-rendering: optimizeLegibility;
}
/* Custom scrollbar styles */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
@apply bg-secondary/50 rounded-full;
}
::-webkit-scrollbar-thumb {
@apply bg-primary/40 rounded-full transition-colors duration-300;
}
::-webkit-scrollbar-thumb:hover {
@apply bg-primary/60;
}
/* Additional transitions for theme elements */
button, a, input, textarea, select {
transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
/* Animation for the loading dots */
@keyframes loading {
0%, 100% {
transform: translateY(0);
}
50% {
transform: translateY(-5px);
}
}
.animate-loading {
animation: loading 1s infinite ease-in-out;
}
/* Markdown content styles */
.markdown-content {
font-size: var(--font-size-base);
line-height: var(--line-height-relaxed);
letter-spacing: 0.01em;
}
.markdown-content pre {
position: relative;
margin: 1.25rem 0;
}
.markdown-content code {
font-family: 'SF Mono', 'Roboto Mono', Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
font-size: var(--font-size-sm);
}
/* Syntax highlighting for code blocks */
.markdown-content pre code {
display: block;
padding: 1rem;
overflow-x: auto;
border-radius: 0.375rem;
line-height: 1.5;
}
/* Specific element styles */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
font-weight: 600;
line-height: var(--line-height-tight);
margin-top: 1.5em;
margin-bottom: 0.75em;
}
.markdown-content h1 {
font-size: var(--font-size-2xl);
}
.markdown-content h2 {
font-size: var(--font-size-xl);
}
.markdown-content h3 {
font-size: var(--font-size-lg);
}
.markdown-content h4 {
font-size: var(--font-size-base);
}
.markdown-content p {
margin-bottom: 1.25rem;
}
.markdown-content ul,
.markdown-content ol {
margin-bottom: 1.25rem;
padding-left: 1.5rem;
}
.markdown-content li {
margin-bottom: 0.5rem;
}
.markdown-content strong {
font-weight: 600;
}
.markdown-content hr {
@apply my-4 border-t border-border;
}
.markdown-content a {
@apply text-primary font-medium hover:underline;
}
.markdown-content table {
width: 100%;
table-layout: fixed;
overflow: hidden;
margin-bottom: 1.25rem;
}
.markdown-content img {
max-width: 100%;
height: auto;
margin: 1.25rem 0;
}
}
/* Thin scrollbar style */
.scrollbar-thin::-webkit-scrollbar {
width: 4px;
height: 4px;
}
.scrollbar-thin::-webkit-scrollbar-track {
@apply bg-secondary/30 rounded-full;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
@apply bg-primary/30 rounded-full transition-colors duration-300;
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
@apply bg-primary/50;
}
/* Make all scrollable areas use the thin scrollbar */
.overflow-y-auto,
.overflow-x-auto {
@apply scrollbar-thin;
}
/* Additional content height limits */
.line-clamp-3 {
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
overflow: hidden;
}
/* Fix layout shifts with transitions */
.max-w-md,
.max-w-4xl,
.container {
width: 100%;
}
/* Ensure fixed layout for markdown content */
.markdown-content img,
.markdown-content pre,
.markdown-content table {
max-width: 100%;
width: auto !important;
overflow-x: auto;
}
/* Prevent layout shifts when switching files */
button, a {
backface-visibility: hidden;
transform: translateZ(0);
}
/* Word Cloud Styles */
.word-cloud-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
text-align: center;
}
.word-cloud-container span {
display: inline-block;
padding: 4px 8px;
margin: 4px;
border-radius: 4px;
transition: all 0.2s ease;
}
.word-cloud-container span:hover {
color: hsl(var(--primary));
transform: scale(1.1);
z-index: 1;
}
/* Add a darker header background for dark mode */
.dark .markdown-content h1,
.dark .markdown-content h2,
.dark .markdown-content h3,
.dark .markdown-content h4 {
background-color: hsl(var(--primary));
color: hsl(var(--primary-foreground));
} |